Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit be3400b

Browse files
committedOct 10, 2022
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.
1 parent dc140c0 commit be3400b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def _stamp_version(filename: str) -> None:
4747
with open(filename, "r") as f:
4848
for line in f:
4949
if "__version__ =" in line:
50-
line = line.replace("'git'", "'%s'" % VERSION)
50+
line = line.replace("\"git\"", "'%s'" % VERSION)
5151
found = True
5252
out.append(line)
5353
except OSError:

0 commit comments

Comments
 (0)
Please sign in to comment.