diff --git a/merlin/systems/_version.py b/merlin/systems/_version.py index 310470163..50b8e11d7 100644 --- a/merlin/systems/_version.py +++ b/merlin/systems/_version.py @@ -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 diff --git a/setup.cfg b/setup.cfg index 91579cd26..20b2ebaaa 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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- diff --git a/tests/unit/test_version.py b/tests/unit/test_version.py index bf89179aa..65cefe2bd 100644 --- a/tests/unit/test_version.py +++ b/tests/unit/test_version.py @@ -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")