Skip to content

Commit

Permalink
deduce pacakge version from git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Georg Schramm committed Jul 8, 2021
1 parent afcfd0e commit 7fd4a5e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git_archival.txt export-subst
7 changes: 6 additions & 1 deletion pynemaiqpet/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
__version__ = '0.3.1'
from pkg_resources import get_distribution, DistributionNotFound
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
# package is not installed
pass
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

setuptools.setup(
name="pynemaiqpet",
version="0.3.1",
use_scm_version={'fallback_version':'unkown'},
setup_requires=['setuptools_scm','setuptools_scm_git_archive'],
author="Georg Schramm",
author_email="georg.schramm@kuleuven.be",
description="Analysis of PET NEMA IQ phantom scans",
Expand Down

0 comments on commit 7fd4a5e

Please sign in to comment.