1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 02:01:16 +00:00

fw/version: Change format of version to conform with PEP440

When installing from source WA attempts to include the commit ID in the
version of the installed pacakge however this caused issues with package
managers like pip. PEP440 specifies that local identifiers must be in the
form `<public version identifier>[+<localversion label>]` so update the
version to conform.

https://www.python.org/dev/peps/pep-0440/#local-version-identifiers
This commit is contained in:
Marc Bonnici 2018-06-27 10:32:42 +01:00 committed by setrofim
parent d3872716ed
commit 98de37807d

View File

@ -34,7 +34,7 @@ def get_wa_version_with_commit():
version_string = get_wa_version()
commit = get_commit()
if commit:
return '{}-{}'.format(version_string, commit)
return '{}+{}'.format(version_string, commit)
else:
return version_string