setup.py: don't use tag prefix with v and set version to 1.0.99
This commit is contained in:
parent
92aecf935f
commit
87293100b0
|
@ -1 +1 @@
|
|||
__version__ = "0.8"
|
||||
__version__ = "1.0.99"
|
||||
|
|
4
setup.py
4
setup.py
|
@ -23,11 +23,11 @@ def get_version():
|
|||
assert version is not None
|
||||
if os.path.exists('.git'):
|
||||
import subprocess
|
||||
p = subprocess.Popen(['git','describe','--dirty','--match=v*'],
|
||||
p = subprocess.Popen(['git','describe','--dirty'],
|
||||
stdout=subprocess.PIPE)
|
||||
result = p.communicate()[0]
|
||||
assert p.returncode == 0, 'git returned non-zero'
|
||||
new_version = result.split()[0][1:]
|
||||
new_version = result.split()[0]
|
||||
assert new_version.split('-')[0] == version, '__version__ must match the last git annotated tag'
|
||||
version = new_version.replace('-', '.')
|
||||
return version
|
||||
|
|
Reference in New Issue