5757PATH = {k : ':' .join (PATH_DIRS ).format (devtoolset = v )
5858 for k , v in DEVTOOLSET .items ()}
5959WHEEL_CACHE_FOLDER = op .expanduser ('~/.cache/auditwheel_tests' )
60- ORIGINAL_NUMPY_WHEEL = f'numpy-1.16.5-{ PYTHON_ABI } -linux_{ PLATFORM } .whl'
60+ NUMPY_VERSION = '1.19.2'
61+ ORIGINAL_NUMPY_WHEEL = f'numpy-{ NUMPY_VERSION } -{ PYTHON_ABI } -linux_{ PLATFORM } .whl'
6162ORIGINAL_SIX_WHEEL = 'six-1.11.0-py2.py3-none-any.whl'
6263
6364
@@ -202,8 +203,10 @@ def test_build_repair_numpy(any_manylinux_container, docker_python, io_folder):
202203 # and put the result in the cache folder to speed-up future build.
203204 # This part of the build is independent of the auditwheel code-base
204205 # so it's safe to put it in cache.
205- docker_exec (manylinux_ctr ,
206- 'pip wheel -w /io --no-binary=:all: numpy==1.16.5' )
206+ docker_exec (
207+ manylinux_ctr ,
208+ f'pip wheel -w /io --no-binary=:all: numpy=={ NUMPY_VERSION } '
209+ )
207210 os .makedirs (op .join (WHEEL_CACHE_FOLDER , policy ), exist_ok = True )
208211 shutil .copy2 (op .join (io_folder , ORIGINAL_NUMPY_WHEEL ),
209212 op .join (WHEEL_CACHE_FOLDER , policy , ORIGINAL_NUMPY_WHEEL ))
@@ -219,11 +222,13 @@ def test_build_repair_numpy(any_manylinux_container, docker_python, io_folder):
219222
220223 assert len (filenames ) == 2
221224 repaired_wheels = [fn for fn in filenames if 'manylinux' in fn ]
222- assert repaired_wheels == [f'numpy-1.16.5-{ PYTHON_ABI } -{ policy } .whl' ]
225+ assert repaired_wheels == [
226+ f'numpy-{ NUMPY_VERSION } -{ PYTHON_ABI } -{ policy } .whl'
227+ ]
223228 repaired_wheel = repaired_wheels [0 ]
224229 output = docker_exec (manylinux_ctr , 'auditwheel show /io/' + repaired_wheel )
225230 assert (
226- f'numpy-1.16.5 -{ PYTHON_ABI } -{ policy } .whl is consistent'
231+ f'numpy-{ NUMPY_VERSION } -{ PYTHON_ABI } -{ policy } .whl is consistent'
227232 f' with the following platform tag: "{ policy } "'
228233 ) in output .replace ('\n ' , ' ' )
229234
0 commit comments