Restrict git describe to tags matching v*
[osm/IM.git] / 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(),
-    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(),