From 98de37807de0f0883af80489b4c997bed2a5ea5e Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Wed, 27 Jun 2018 10:32:42 +0100 Subject: [PATCH] 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 `[+]` so update the version to conform. https://www.python.org/dev/peps/pep-0440/#local-version-identifiers --- wa/framework/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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