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:
Monty Taylor 2013-09-17 12:22:05 -05:00
parent ae25b565d3
commit 3fdedcf69e
1 changed files with 1 additions and 1 deletions

View File

@ -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('-', '.')