summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2015-09-22 08:46:37 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2015-09-22 08:46:51 (GMT)
commitcf1dbe505f80630ce36d72cc5a1dbd71605968c8 (patch)
tree57a52e9facf3eec90ac3b7ba144c963fe7b5cbb1
parentc48789dad1985bbdf248b5854c49f1c2d028136a (diff)
downloadeopayment-cf1dbe505f80630ce36d72cc5a1dbd71605968c8.zip
eopayment-cf1dbe505f80630ce36d72cc5a1dbd71605968c8.tar.gz
eopayment-cf1dbe505f80630ce36d72cc5a1dbd71605968c8.tar.bz2
setup.py: sync get_version with other projects (no + in version name)v1.1
-rwxr-xr-xsetup.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/setup.py b/setup.py
index 3da60f1..971c4c5 100755
--- a/setup.py
+++ b/setup.py
@@ -72,11 +72,9 @@ def get_version():
stderr=subprocess.PIPE)
result = p.communicate()[0]
if p.returncode == 0:
- return result.split()[0][1:].replace('-', '.').replace('.g', '+g')
- else:
- return '0.0.0+%s' % len(
- subprocess.check_output(
- ['git', 'rev-list', 'HEAD']).splitlines())
+ version = result.split()[0][1:]
+ version = version.replace('-', '.')
+ return version
return '0.0.0'
setuptools.setup(