Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix versioneer to get accurate version numbers #198

Merged
merged 1 commit into from
Sep 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion merlin/systems/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get_config():
cfg = VersioneerConfig()
cfg.VCS = "git"
cfg.style = "pep440"
cfg.tag_prefix = ""
cfg.tag_prefix = "v"
cfg.parentdir_prefix = "merlin-systems-"
cfg.versionfile_source = "merlin/systems/_version.py"
cfg.verbose = False
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ VCS = git
style = pep440
versionfile_source = merlin/systems/_version.py
versionfile_build = merlin/systems/_version.py
tag_prefix =
tag_prefix = v
parentdir_prefix = merlin-systems-
3 changes: 2 additions & 1 deletion tests/unit/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from packaging.version import Version

import merlin.systems


def test_version():
"""test to get back version of library"""
assert merlin.systems.__version__ is not None
assert Version(merlin.systems.__version__) >= Version("0.5.0")