Comply with pep440
pep440 indicates that development releases should mark themselves with the devN specifier. http://www.python.org/dev/peps/pep-0440/#developmental-releases Instead of using aN as we are currently doing for automatically generated versions, we should use the pep440 compliant devN form. Change-Id: Ieeb5149f8b013e76621112593e0a5c0a64817e1f
This commit is contained in:
parent
ae25b565d3
commit
3fdedcf69e
|
@ -757,7 +757,7 @@ def _get_version_from_git(pre_version):
|
|||
except Exception:
|
||||
sha = _run_git_command(
|
||||
['log', '-n1', '--pretty=format:%h'], git_dir)
|
||||
return "%s.a%s.g%s" % (pre_version, _get_revno(git_dir), sha)
|
||||
return "%s.dev%s.g%s" % (pre_version, _get_revno(git_dir), sha)
|
||||
else:
|
||||
return _run_git_command(
|
||||
['describe', '--always'], git_dir).replace('-', '.')
|
||||
|
|
Loading…
Reference in New Issue