Merge branch 'hotfix/0.1.2'
This commit is contained in:
commit
d510806ece
|
@ -35,10 +35,11 @@ try:
|
|||
from setuptools_scm import get_version
|
||||
v = get_version(root='../../../', relative_to=__file__, version_scheme="post-release")
|
||||
v = parse_version(v)
|
||||
if v._version.post[-1] == 0:
|
||||
__version__ = v.base_version
|
||||
else:
|
||||
__version__ = v.public
|
||||
__version__ = v.base_version
|
||||
# if v._version.post[-1] == 0:
|
||||
# __version__ = v.base_version
|
||||
# else:
|
||||
# __version__ = v.public
|
||||
except Exception as err:
|
||||
try:
|
||||
__version__ = get_distribution(__name__.strip('.version')).version
|
||||
|
|
Loading…
Reference in New Issue