From 2184f3b1f50ec8fa9e19fad741319652664f1047 Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 29 Sep 2021 17:35:56 +0200 Subject: Fix svg-flatten versioning logic --- svg-flatten/setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'svg-flatten/setup.py') 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: -- cgit