Skip to content

Commit

Permalink
Test _dunamai.get_version()
Browse files Browse the repository at this point in the history
Also uses Version.from_any_vcs instead of Version.from_git()
  • Loading branch information
tomaroberts committed Feb 20, 2024
1 parent 45d37a5 commit afdb564
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion nii2dcm/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
import dunamai as _dunamai
from dunamai import Version, Style

Check warning on line 2 in nii2dcm/_version.py

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, 3.9)

F401 'dunamai.Version' imported but unused
__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)

Check warning on line 5 in nii2dcm/_version.py

View workflow job for this annotation

GitHub Actions / Build (ubuntu-latest, 3.9)

W292 no newline at end of file
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)

0 comments on commit afdb564

Please sign in to comment.