We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a352404 commit 415a8ebCopy full SHA for 415a8eb
setup.py
@@ -8,8 +8,8 @@
8
import os
9
import sys
10
11
-with open(os.path.join(os.path.dirname(__file__), "VERSION")) as v:
12
- VERSION = v.readline().strip()
+with open(os.path.join(os.path.dirname(__file__), "VERSION")) as ver_file:
+ VERSION = ver_file.readline().strip()
13
14
with open("requirements.txt") as reqs_file:
15
requirements = reqs_file.read().splitlines()
@@ -49,7 +49,7 @@ def _stamp_version(filename: str) -> None:
49
with open(filename) as f:
50
for line in f:
51
if "__version__ =" in line:
52
- line = line.replace("\"git\"", "'%s'" % VERSION)
+ line = line.replace('"git"', "'%s'" % VERSION)
53
found = True
54
out.append(line)
55
except OSError:
0 commit comments