Changed version_command in setup.py to add match v* 32/6632/2 v4.0
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 5 Oct 2018 13:04:10 +0000 (15:04 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Fri, 5 Oct 2018 13:12:55 +0000 (15:12 +0200)
Change-Id: Iaf4552f274c84d7aab84ccff1415df6b0f1ab672
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
setup.py
setup_lite.py

index 4d4073a..a30048b 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -52,7 +52,7 @@ __scripts__ = ['openflow',
                'osm_openvim/scripts/get_dhcp_lease.sh']
 
 setup(name=__name,
-      version_command=('git describe', 'pep440-git'),
+      version_command=('git describe --tags --long --dirty --match v*', 'pep440-git-full'),
       description=__description,
       long_description=__description,
       author=__author,
index 7bb1c79..a17ab7a 100755 (executable)
@@ -41,7 +41,7 @@ _req = [
 __scripts__ = ['openflow-lib']
 
 setup(name=__name,
-      version_command=('git describe', 'pep440-git'),
+      version_command=('git describe --tags --long --dirty --match v*', 'pep440-git-full'),
       description=__description,
       long_description=__description,
       author=__author,