diff options
author | Marc Bonnici <marc.bonnici@arm.com> | 2018-06-27 10:32:42 +0100 |
---|---|---|
committer | setrofim <setrofim@gmail.com> | 2018-06-27 11:41:24 +0100 |
commit | 98de37807de0f0883af80489b4c997bed2a5ea5e (patch) | |
tree | c24cf2d477c26084e97c4711cdd3e4769140874f | |
parent | d3872716ed2bc71e3f095208dea956c3a4030f7a (diff) |
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
-rw-r--r-- | wa/framework/version.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wa/framework/version.py b/wa/framework/version.py index 54ac57e7..0ed5e7c3 100644 --- a/wa/framework/version.py +++ b/wa/framework/version.py @@ -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 |