We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8e7db79 + 882b2c6 commit 5f9b76dCopy full SHA for 5f9b76d
1 file changed
src/kegg_pull/__init__.py
@@ -13,4 +13,14 @@
13
14
``kegg_url``
15
"""
16
-__version__ = '3.1.0'
+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