setup.py: allow dirty packages

This commit is contained in:
Benjamin Dauvergne 2013-05-28 14:18:42 +02:00
parent 061646596c
commit 7b0a8d292e
1 changed files with 0 additions and 1 deletions

View File

@ -69,7 +69,6 @@ def get_version():
result = p.communicate()[0]
assert p.returncode == 0, 'git returned non-zero'
new_version = result.split()[0][1:]
assert not new_version.endswith('-dirty'), 'git workdir is not clean'
assert new_version.split('-')[0] == version, '__version__ must match the last git annotated tag'
version = new_version.replace('-', '.')
return version