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