Permalink
Browse files

[version] Improved get_version to follow PEP440

  • Loading branch information...
nemesisdesign committed May 18, 2017
1 parent 4d18ae5 commit 845ed835cb0e59584e39957c79ab61dec5220880
Showing with 5 additions and 1 deletion.
  1. +5 −1 netjsonconfig/version.py
@@ -10,5 +10,9 @@ def get_version():
version = '%s pre-alpha' % version
else:
if VERSION[3] != 'final':
version = '%s %s' % (version, VERSION[3])
try:
rev = VERSION[4]
except IndexError:
rev = 0
version = '%s%s%s' % (version, VERSION[3][0:1], rev)
return version

0 comments on commit 845ed83

Please sign in to comment.