Skip to content

Commit

Permalink
Make the version number PEP-440 compliant
Browse files Browse the repository at this point in the history
Shuts up this warning:

  .../setuptools/dist.py:294: UserWarning: The version specified ('0.9.8dev (git a58d795)') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details.
  • Loading branch information
mgedmin committed Nov 21, 2015
1 parent a58d795 commit 8908389
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyspacewar/version.py
Expand Up @@ -2,7 +2,7 @@
PySpaceWar version number tracker.
"""

version = "0.9.8dev"
version = "0.9.8.dev0"


def get_git_revision(unknown='', format=' (git %s)'):
Expand All @@ -21,5 +21,5 @@ def get_git_revision(unknown='', format=' (git %s)'):


if 'dev' in version:
version += get_git_revision()
version += get_git_revision(format='+git.%s')

0 comments on commit 8908389

Please sign in to comment.