From 17ff82e0b07456b6cb77480e71f822176e9cdecb Mon Sep 17 00:00:00 2001 From: Michael Marchetti Date: Fri, 3 Aug 2018 16:16:59 +0200 Subject: [PATCH] Restrict git describe to tags matching v* Signed-off-by: Michael Marchetti --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4fa32736..97d7b4b7 100755 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ _requirements = [ ] setup(name=_name, - version_command=('git describe', 'pep440-git'), + version_command=('git describe --match v*', 'pep440-git'), description = _description, long_description = open('README.rst').read(), author = _author, -- 2.17.1