Skip to content

Commit

Permalink
FIX: revert accidental hard-coding of version in setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mplanchard committed Sep 23, 2020
1 parent 3fa8ccb commit c360380
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
REQ_FILE = join(PACKAGE_DIR, "requirements_unfrozen.txt")
if exists(REQ_FILE):
with open(join(PACKAGE_DIR, "requirements.txt")) as reqfile:
for ln in (line.strip() for line in reqfile):
for ln in (l.strip() for l in reqfile): # noqa
if ln and not ln.startswith("#"):
PACKAGE_DEPENDENCIES += (ln,)

Expand All @@ -134,6 +134,9 @@
# This will set __version__ and __version_info__ variables locally
if line.startswith("__version"):
exec(line)
break
else:
raise RuntimeError("Could not parse version!")

setup(
author_email=EMAIL,
Expand All @@ -153,5 +156,5 @@
setup_requires=SETUP_DEPENDENCIES,
tests_require=TEST_DEPENDENCIES,
url=URL,
version="0.0.0",
version=__version__,
)

0 comments on commit c360380

Please sign in to comment.