Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add python 3.9 tests & advertise python 3.9 support #265

Merged
merged 4 commits into from
Oct 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
os: linux
dist: bionic
dist: focal
language: python

jobs:
include:
- 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:
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 10 additions & 5 deletions tests/integration/test_manylinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'


Expand Down Expand Up @@ -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))
Expand All @@ -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', ' ')

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -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 = .
Expand Down