setup.py: use tag which begins by v
This commit is contained in:
parent
b60530da58
commit
119cc70748
6
setup.py
6
setup.py
|
@ -31,9 +31,11 @@ def get_version():
|
|||
version_file.close()
|
||||
return version
|
||||
if os.path.exists('.git'):
|
||||
p = subprocess.Popen(['git','describe','--long'], stdout=subprocess.PIPE)
|
||||
p = subprocess.Popen(['git','describe','--match=v*'],
|
||||
stdout=subprocess.PIPE)
|
||||
result = p.communicate()[0]
|
||||
return result.split()[0].replace('-','.')
|
||||
version = result.split()[0][1:]
|
||||
return version.replace('-','.')
|
||||
import mandaye
|
||||
return mandaye.VERSION
|
||||
|
||||
|
|
Reference in New Issue