Fix svg-flatten versioning logic

This commit is contained in:
jaseg 2021-09-29 17:35:56 +02:00
parent a3cf9e6845
commit 2184f3b1f5

View file

@ -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: