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