summaryrefslogtreecommitdiffstats
path: root/setup.py
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)
commitdb6680cdec663b9b494cee57c7eca4506641f803 (patch)
treefb67ed290300c892d48f1e360dda895a13c6de10 /setup.py
parent51970afe48f74e0e743ebf92366fbe7343a0cfaa (diff)
downloadeopayment-db6680cdec663b9b494cee57c7eca4506641f803.zip
eopayment-db6680cdec663b9b494cee57c7eca4506641f803.tar.gz
eopayment-db6680cdec663b9b494cee57c7eca4506641f803.tar.bz2
setup.py: sync get_version with other projects (no + in version name)
Diffstat (limited to 'setup.py')
-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(