Skip to content
Snippets Groups Projects
Commit 394c3f42 authored by Mikkel Friis-Møller's avatar Mikkel Friis-Møller Committed by David Verelst
Browse files

small updated due to changed behavior of newer version of git_utils.py

parent 696832df
No related branches found
No related tags found
No related merge requests found
Pipeline #9381 failed
......@@ -97,7 +97,9 @@ def write_vers(vers_file='wetb/__init__.py', repo=None, skip_chars=1):
if len(verel) > 2 and nr_commits > 0:
# first character on the hash is always a g (not part of the hash)
version += '-' + verel[2][1:]
# if "-HEAD" is added to the version, which pypi does not like:
if version.endswith('-HEAD'):
version = version[:-5]
print(version_long)
print('Writing version: {} in {}'.format(version, vers_file))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment