change get_version to adhere to PEP 440
This commit is contained in:
parent
567e2c930b
commit
3555dc97c9
|
@ -8,7 +8,7 @@ __version__ = "2.8.2"
|
|||
|
||||
def get_version():
|
||||
try:
|
||||
return __version__ + '.dev9999+git.' + str(subprocess.check_output(['git', 'rev-parse', 'HEAD']).strip())
|
||||
return __version__ + 'b' + subprocess.check_output(['git', 'rev-list', '--count', __version__ + '..HEAD']).strip().decode()
|
||||
except Exception:
|
||||
print_exc()
|
||||
return __version__
|
||||
|
|
Loading…
Reference in New Issue