Fixed bug about version naming.

The version was not read since setuptools_scm was
not installed (neither required).
This commit is contained in:
Sylvain Tricot 2022-03-07 15:21:18 +01:00
parent ad9ba151a4
commit 16e5b865f1
3 changed files with 4 additions and 2 deletions

View File

@ -280,7 +280,7 @@ pypkg: python/dist/$(PYTHON_PKG_NAME)-$(VERSION).tar.gz
required_python_packages:
@$(PIP) install numpy matplotlib click-man
@$(PIP) install -r python/pip.freeze
python/VERSION:

View File

@ -33,7 +33,7 @@ from pkg_resources import parse_version
try:
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)
if v._version.post[-1] == 0:
__version__ = v.base_version

View File

@ -1,3 +1,5 @@
setuptools_scm
matplotlib
numpy
click
click-man