Restrict git describe to tags matching v* 03/6403/1 BUILD_v4.0.1_2
authorMichael Marchetti <mmarchetti@sandvine.com>
Fri, 3 Aug 2018 14:16:59 +0000 (16:16 +0200)
committerMichael Marchetti <mmarchetti@sandvine.com>
Fri, 3 Aug 2018 14:16:59 +0000 (16:16 +0200)
Signed-off-by: Michael Marchetti <mmarchetti@sandvine.com>
setup.py

index 4fa3273..97d7b4b 100755 (executable)
--- 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,