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:
Roberto Abdelkader Martínez Pérez
2020-12-24 16:41:16 +01:00
parent 100b41f482
commit c71cadea60
+1 -1
View File
@@ -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'