From fec08687345938433d992bab43c48980d73389ae Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Wed, 27 Jun 2018 10:44:14 +0100 Subject: [PATCH] setup.py: Change format of version to conform with PEP440 When installing from source devlib 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 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2109d58..99e6bac 100644 --- a/setup.py +++ b/setup.py @@ -55,7 +55,7 @@ with open(os.path.join(devlib_dir, '__init__.py')) as fh: version_helper = imp.load_source('version_helper', vh_path) commit = version_helper.get_commit() if commit: - __version__ = '{}-{}'.format(__version__, commit) + __version__ = '{}+{}'.format(__version__, commit) packages = []