From afdb564f12788aa49acc0e3fa69b9b43dd697afd Mon Sep 17 00:00:00 2001 From: Tom Roberts Date: Tue, 20 Feb 2024 11:23:34 +0000 Subject: [PATCH] Test _dunamai.get_version() Also uses Version.from_any_vcs instead of Version.from_git() --- nii2dcm/_version.py | 5 ++++- setup.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/nii2dcm/_version.py b/nii2dcm/_version.py index b8bebde..b4c4465 100644 --- a/nii2dcm/_version.py +++ b/nii2dcm/_version.py @@ -1,2 +1,5 @@ +import dunamai as _dunamai from dunamai import Version, Style -__version__ = Version.from_git().serialize(metadata=False, style=Style.SemVer) +__version__ = _dunamai.get_version( + "nii2dcm", third_choice=_dunamai.Version.from_any_vcs +).serialize(metadata=False, style=Style.SemVer) \ No newline at end of file diff --git a/setup.py b/setup.py index ce87831..9f8c9e7 100644 --- a/setup.py +++ b/setup.py @@ -3,5 +3,5 @@ setup( name="nii2dcm", - version=Version.from_git().serialize(metadata=False, style=Style.SemVer), + version=Version.from_any_vcs().serialize(metadata=False, style=Style.SemVer), ) \ No newline at end of file