Skip to content

Commit

Permalink
Small clarity improvements in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
EliahKagan committed Sep 10, 2023
1 parent a352404 commit 415a8eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import os
import sys

with open(os.path.join(os.path.dirname(__file__), "VERSION")) as v:
VERSION = v.readline().strip()
with open(os.path.join(os.path.dirname(__file__), "VERSION")) as ver_file:
VERSION = ver_file.readline().strip()

with open("requirements.txt") as reqs_file:
requirements = reqs_file.read().splitlines()
Expand Down Expand Up @@ -49,7 +49,7 @@ def _stamp_version(filename: str) -> None:
with open(filename) 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 415a8eb

Please sign in to comment.