aboutsummaryrefslogtreecommitdiff
path: root/svg-flatten/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'svg-flatten/setup.py')
-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: