setup: also consider lightweight tags to create version number
This commit is contained in:
parent
76f2058c33
commit
d05d6603ff
2
setup.py
2
setup.py
|
@ -17,7 +17,7 @@ def get_version():
|
|||
with open('VERSION', 'r') as v:
|
||||
return v.read()
|
||||
if os.path.exists('.git'):
|
||||
p = subprocess.Popen(['git', 'describe', '--dirty', '--match=v*'], stdout=subprocess.PIPE,
|
||||
p = subprocess.Popen(['git', 'describe', '--dirty', '--tags', '--match=v*'], stdout=subprocess.PIPE,
|
||||
stderr=subprocess.PIPE)
|
||||
result = p.communicate()[0]
|
||||
if p.returncode == 0:
|
||||
|
|
Loading…
Reference in New Issue