Gitlab CI test
Some checks failed
Some checks failed
This commit is contained in:
parent
b1be792c52
commit
89f3aeeac7
1 changed files with 7 additions and 3 deletions
10
setup.py
10
setup.py
|
|
@ -5,9 +5,13 @@ from setuptools import setup, find_packages
|
|||
import subprocess
|
||||
|
||||
def version():
|
||||
res = subprocess.run(['git', 'describe', '--tags', '--match', 'v*'], capture_output=True, check=True, text=True)
|
||||
version, _, _rest = res.stdout.strip()[1:].partition('-')
|
||||
return version
|
||||
try:
|
||||
res = subprocess.run(['git', 'describe', '--tags', '--match', 'v*'], capture_output=True, check=True, text=True)
|
||||
version, _, _rest = res.stdout.strip()[1:].partition('-')
|
||||
return version
|
||||
except:
|
||||
subprocess.run(['git', 'describe', '--tags', '--match', 'v*'])
|
||||
raise
|
||||
|
||||
setup(
|
||||
name='gerbonara',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue