diff --git a/.travis.yml b/.travis.yml index c351667f..0c5fe0e6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,5 @@ os: linux -dist: bionic +dist: focal language: python jobs: @@ -7,13 +7,16 @@ jobs: - python: "3.6" - python: "3.7" - python: "3.8" - - python: "3.7" - arch: arm64 - - python: "3.7" + - python: "3.9" + - python: "3.8" + arch: arm64-graviton2 + virt: vm + group: edge + - python: "3.8" arch: ppc64le - - python: "3.7" + - python: "3.8" arch: s390x - - python: "3.7" + - python: "3.8" env: LINTER=1 services: diff --git a/setup.cfg b/setup.cfg index 705b12f4..bc81b446 100644 --- a/setup.cfg +++ b/setup.cfg @@ -17,6 +17,7 @@ classifier = Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 + Programming Language :: Python :: 3.9 Programming Language :: Python :: 3 :: Only Topic :: Software Development Topic :: Software Development :: Build Tools diff --git a/tests/integration/test_manylinux.py b/tests/integration/test_manylinux.py index 7cb2e298..d6ffeb59 100644 --- a/tests/integration/test_manylinux.py +++ b/tests/integration/test_manylinux.py @@ -57,7 +57,8 @@ PATH = {k: ':'.join(PATH_DIRS).format(devtoolset=v) for k, v in DEVTOOLSET.items()} WHEEL_CACHE_FOLDER = op.expanduser('~/.cache/auditwheel_tests') -ORIGINAL_NUMPY_WHEEL = f'numpy-1.16.5-{PYTHON_ABI}-linux_{PLATFORM}.whl' +NUMPY_VERSION = '1.19.2' +ORIGINAL_NUMPY_WHEEL = f'numpy-{NUMPY_VERSION}-{PYTHON_ABI}-linux_{PLATFORM}.whl' ORIGINAL_SIX_WHEEL = 'six-1.11.0-py2.py3-none-any.whl' @@ -202,8 +203,10 @@ def test_build_repair_numpy(any_manylinux_container, docker_python, io_folder): # and put the result in the cache folder to speed-up future build. # This part of the build is independent of the auditwheel code-base # so it's safe to put it in cache. - docker_exec(manylinux_ctr, - 'pip wheel -w /io --no-binary=:all: numpy==1.16.5') + docker_exec( + manylinux_ctr, + f'pip wheel -w /io --no-binary=:all: numpy=={NUMPY_VERSION}' + ) os.makedirs(op.join(WHEEL_CACHE_FOLDER, policy), exist_ok=True) shutil.copy2(op.join(io_folder, ORIGINAL_NUMPY_WHEEL), 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): assert len(filenames) == 2 repaired_wheels = [fn for fn in filenames if 'manylinux' in fn] - assert repaired_wheels == [f'numpy-1.16.5-{PYTHON_ABI}-{policy}.whl'] + assert repaired_wheels == [ + f'numpy-{NUMPY_VERSION}-{PYTHON_ABI}-{policy}.whl' + ] repaired_wheel = repaired_wheels[0] output = docker_exec(manylinux_ctr, 'auditwheel show /io/' + repaired_wheel) assert ( - f'numpy-1.16.5-{PYTHON_ABI}-{policy}.whl is consistent' + f'numpy-{NUMPY_VERSION}-{PYTHON_ABI}-{policy}.whl is consistent' f' with the following platform tag: "{policy}"' ) in output.replace('\n', ' ') diff --git a/tox.ini b/tox.ini index 1b7e5939..5f25cf3c 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [tox] minversion = 1.6 skipsdist = True -envlist = py36,py37,py38,lint,cov +envlist = py36,py37,py38,py39,lint,cov [testenv] deps = .