Skip to content
Snippets Groups Projects
Commit 05c93a11 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

Merge branch 'f-no-import-at-build' into 'dev'

No import during build

See merge request !117
parents 65247769 2e3d8a21
No related branches found
No related tags found
2 merge requests!123TEST: xfail for issue 111,!117No import during build
Pipeline #42329 failed
......@@ -97,6 +97,7 @@ def get_version_info():
FULLVERSION = VERSION
# Magic which is only really needed in the pipelines. Therefore: a lot of dark pipeline magic.
GIT_REVISION = "Unknown"
if os.path.exists('.git'):
GIT_REVISION = git_version()
elif os.path.exists('linkahead_pylib_commit'):
......@@ -105,14 +106,12 @@ def get_version_info():
elif os.path.exists('src/linkahead/version.py'):
# must be a source distribution, use existing version file
with open('src/linkahead/version.py') as fi:
rev_pattern = re.compile(r"^git_revision = '(?P<rev>.*)'$")
for line in fi.readlines():
match = re.match(r"^git_revision = (?P<rev>.*)$", line)
match = rev_pattern.match(line)
if match is not None:
GIT_REVISION = match.group('rev')
else:
GIT_REVISION = "Unknown"
break
if not ISRELEASED:
FULLVERSION += '.dev0+' + GIT_REVISION[:7]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment