aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-09-29 17:35:56 +0200
committerjaseg <git@jaseg.de>2021-09-29 17:35:56 +0200
commit2184f3b1f50ec8fa9e19fad741319652664f1047 (patch)
tree6505f2be645b232112d0e46dd7972d1c2c603e19 /svg-flatten
parenta3cf9e68458de3cac9454bed9192549d955c8f56 (diff)
downloadgerbolyze-2184f3b1f50ec8fa9e19fad741319652664f1047.tar.gz
gerbolyze-2184f3b1f50ec8fa9e19fad741319652664f1047.tar.bz2
gerbolyze-2184f3b1f50ec8fa9e19fad741319652664f1047.zip
Fix svg-flatten versioning logicv2.2.0
Diffstat (limited to 'svg-flatten')
-rw-r--r--svg-flatten/setup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/svg-flatten/setup.py b/svg-flatten/setup.py
index 9c88ea2..276ed5d 100644
--- a/svg-flatten/setup.py
+++ b/svg-flatten/setup.py
@@ -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: