From 119cc7074833e6cba0ae248388ebda62598c3047 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Schneider?= Date: Mon, 3 Mar 2014 18:30:37 +0100 Subject: [PATCH] setup.py: use tag which begins by v --- setup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 5082bcb..4d91f65 100644 --- a/setup.py +++ b/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