From c360380b63ad958588eb2bbb2d617da7ef827875 Mon Sep 17 00:00:00 2001 From: Matthew Planchard Date: Wed, 23 Sep 2020 17:58:00 -0500 Subject: [PATCH] FIX: revert accidental hard-coding of version in setup.py --- setup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 6013413..f9d9711 100644 --- a/setup.py +++ b/setup.py @@ -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,) @@ -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, @@ -153,5 +156,5 @@ setup_requires=SETUP_DEPENDENCIES, tests_require=TEST_DEPENDENCIES, url=URL, - version="0.0.0", + version=__version__, )