chore: use 'git describe --tags' to deduce the version for current build
Co-authored-by: pancho horrillo <pancho.horrillo@bbva.com>
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ author = 'BBVA Innovation Labs'
|
|||||||
|
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
try:
|
try:
|
||||||
release = re.sub('^v', '', os.popen('git describe').read().strip())
|
release = re.sub('^v', '', os.popen('git describe --tags').read().strip())
|
||||||
except:
|
except:
|
||||||
release = 'unknown'
|
release = 'unknown'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user