Restrict git describe to tags matching v* 02/6402/1 BUILD_v4.0.1_2
authorMichael Marchetti <mmarchetti@sandvine.com>
Fri, 3 Aug 2018 13:54:11 +0000 (15:54 +0200)
committerMichael Marchetti <mmarchetti@sandvine.com>
Fri, 3 Aug 2018 13:54:11 +0000 (15:54 +0200)
Signed-off-by: Michael Marchetti <mmarchetti@sandvine.com>
setup.py

index 6cfe17b..cdccff9 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ setup(
     name='osm_im',
     description='OSM Information Model',
     long_description = open('README.rst').read(),
     name='osm_im',
     description='OSM Information Model',
     long_description = open('README.rst').read(),
-    version_command=('git describe --tags --long --dirty', 'pep440-git'),
+    version_command=('git describe --tags --long --dirty --match v*', 'pep440-git'),
     author='Mike Marchetti',
     author_email='mmarchetti@sandvine.com',
     packages=find_packages(),
     author='Mike Marchetti',
     author_email='mmarchetti@sandvine.com',
     packages=find_packages(),