Fix svg-flatten versioning logic
This commit is contained in:
parent
a3cf9e6845
commit
2184f3b1f5
1 changed files with 2 additions and 1 deletions
|
|
@ -6,7 +6,8 @@ import shutil
|
|||
|
||||
def version():
|
||||
res = subprocess.run(['git', 'describe', '--tags', '--match', 'v*'], capture_output=True, check=True, text=True)
|
||||
version, _, _rest = res.stdout.strip()[1:].rpartition('-')
|
||||
version, _, _rest = res.stdout.strip()[1:].partition('-')
|
||||
return version
|
||||
|
||||
def long_description():
|
||||
with open("README.rst") as f:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue