Skip to content

Commit 5f9b76d

Browse files
authored
Merge pull request #227 from MoseleyBioinformaticsLab/releasae
Fixes version
2 parents 8e7db79 + 882b2c6 commit 5f9b76d

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/kegg_pull/__init__.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,14 @@
1313
1414
``kegg_url``
1515
"""
16-
__version__ = '3.1.0'
16+
try:
17+
# -- Distribution mode --
18+
# import from _version.py generated by setuptools_scm during release
19+
from ._version import version as __version__
20+
except ImportError:
21+
# -- Source mode --
22+
# use setuptools_scm to get the current version from src using git
23+
from setuptools_scm import get_version as _gv
24+
from os import path as _path
25+
__version__ = _gv(_path.join(_path.dirname(__file__), _path.pardir))
26+

0 commit comments

Comments
 (0)