Skip to content

Commit

Permalink
fix version replacement in setup.py (#1500)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Byron committed Oct 10, 2022
1 parent dc140c0 commit be3400b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -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:
Expand Down

0 comments on commit be3400b

Please sign in to comment.