File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 122
122
REQ_FILE = join (PACKAGE_DIR , "requirements_unfrozen.txt" )
123
123
if exists (REQ_FILE ):
124
124
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
126
126
if ln and not ln .startswith ("#" ):
127
127
PACKAGE_DEPENDENCIES += (ln ,)
128
128
134
134
# This will set __version__ and __version_info__ variables locally
135
135
if line .startswith ("__version" ):
136
136
exec (line )
137
+ break
138
+ else :
139
+ raise RuntimeError ("Could not parse version!" )
137
140
138
141
setup (
139
142
author_email = EMAIL ,
153
156
setup_requires = SETUP_DEPENDENCIES ,
154
157
tests_require = TEST_DEPENDENCIES ,
155
158
url = URL ,
156
- version = "0.0.0" ,
159
+ version = __version__ ,
157
160
)
You can’t perform that action at this time.
0 commit comments