From: Michael Marchetti Date: Fri, 3 Aug 2018 14:16:59 +0000 (+0200) Subject: Restrict git describe to tags matching v* X-Git-Tag: BUILD_v4.0.1_2^0 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=commitdiff_plain;h=17ff82e0b07456b6cb77480e71f822176e9cdecb;hp=e72710b0ac189586e822a71a611f87fdce6a917d Restrict git describe to tags matching v* Signed-off-by: Michael Marchetti --- 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,