Skip to content

Commit 25dea29

Browse files
author
Georg Schramm
committed
deduce version from git tags
1 parent 710bfb8 commit 25dea29

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.git_archival.txt export-subst

pymirc/__init__.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,9 @@
33
from . import metrics
44
from . import viewer
55

6-
__version__ = '0.23.0'
6+
from pkg_resources import get_distribution, DistributionNotFound
7+
try:
8+
__version__ = get_distribution(__name__).version
9+
except DistributionNotFound:
10+
# package is not installed
11+
pass

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
setuptools.setup(
44
name="pymirc",
5-
version="0.24.0",
5+
use_scm_version={'fallback_version':'unkown'},
6+
setup_requires=['setuptools_scm','setuptools_scm_git_archive'],
67
author="Georg Schramm, Tom Eelbode, Jeroen Bertels",
78
author_email="[email protected]",
89
description="Python imaging utilities developed in the medical imaging research center of KU Leuven",

0 commit comments

Comments
 (0)