Merge tag '0.1.2' into devel

0.1.2
This commit is contained in:
Sylvain Tricot 2022-03-07 15:40:05 +01:00
commit 20b7716f4a
1 changed files with 5 additions and 4 deletions

View File

@ -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