From be3400b79ec15b84cd13a3ba30da289cdd98b878 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Tue, 11 Oct 2022 07:45:32 +0800 Subject: fix version replacement in `setup.py` (#1500) It would fail to perform the replacement, but unfortunately wouldn't stop the release process. The latter could be done, but isn't implemented either as it's hard to test given everything is runtime. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 5494cf48..daad454d 100755 --- a/setup.py +++ b/setup.py @@ -47,7 +47,7 @@ def _stamp_version(filename: str) -> None: with open(filename, "r") as f: for line in f: if "__version__ =" in line: - line = line.replace("'git'", "'%s'" % VERSION) + line = line.replace("\"git\"", "'%s'" % VERSION) found = True out.append(line) except OSError: -- cgit v1.2.1