Add dev version number support

This commit is contained in:
André Apitzsch 2017-09-07 23:24:43 +02:00
parent 5375965f87
commit 77014f09c6
1 changed files with 11 additions and 0 deletions

View File

@ -1 +1,12 @@
import subprocess
__version__ = "0.16.11"
try:
node = subprocess.Popen('git rev-parse --short=12 HEAD', shell=True,
stdout=subprocess.PIPE).communicate()[0]
if node:
__version__ += '-' + node.decode('utf-8').strip()
except Exception:
pass