Skip to content

Commit c360380

Browse files
committed
FIX: revert accidental hard-coding of version in setup.py
1 parent 3fa8ccb commit c360380

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

setup.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
REQ_FILE = join(PACKAGE_DIR, "requirements_unfrozen.txt")
123123
if exists(REQ_FILE):
124124
with open(join(PACKAGE_DIR, "requirements.txt")) as reqfile:
125-
for ln in (line.strip() for line in reqfile):
125+
for ln in (l.strip() for l in reqfile): # noqa
126126
if ln and not ln.startswith("#"):
127127
PACKAGE_DEPENDENCIES += (ln,)
128128

@@ -134,6 +134,9 @@
134134
# This will set __version__ and __version_info__ variables locally
135135
if line.startswith("__version"):
136136
exec(line)
137+
break
138+
else:
139+
raise RuntimeError("Could not parse version!")
137140

138141
setup(
139142
author_email=EMAIL,
@@ -153,5 +156,5 @@
153156
setup_requires=SETUP_DEPENDENCIES,
154157
tests_require=TEST_DEPENDENCIES,
155158
url=URL,
156-
version="0.0.0",
159+
version=__version__,
157160
)

0 commit comments

Comments
 (0)