Skip to content

Commit

Permalink
chore: test with python 3.10 (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut authored Nov 20, 2021
1 parent b1d354a commit da34a03
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
- python: "3.7"
- python: "3.8"
- python: "3.9"
- python: "3.10"
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -54,7 +55,7 @@ jobs:
- name: Install CPython ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
python-version: "${{ matrix.python }}"
architecture: x64
- name: Run tests
run: pipx run nox -s tests-${{ matrix.python }}
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

nox.options.sessions = ["lint", "test-dist"]

PYTHON_ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9"]
PYTHON_ALL_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10"]
RUNNING_CI = "TRAVIS" in os.environ or "GITHUB_ACTIONS" in os.environ


Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ classifier =
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3 :: Only
Topic :: Software Development
Topic :: Software Development :: Build Tools
Expand Down
11 changes: 10 additions & 1 deletion tests/integration/test_manylinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,14 @@
]
PATH = {k: ":".join(PATH_DIRS).format(devtoolset=v) for k, v in DEVTOOLSET.items()}
WHEEL_CACHE_FOLDER = op.expanduser("~/.cache/auditwheel_tests")
NUMPY_VERSION = "1.19.2"
NUMPY_VERSION_MAP = {
"36": "1.19.2",
"37": "1.19.2",
"38": "1.19.2",
"39": "1.19.2",
"310": "1.21.4",
}
NUMPY_VERSION = NUMPY_VERSION_MAP[PYTHON_ABI_MAJ_MIN]
ORIGINAL_NUMPY_WHEEL = f"numpy-{NUMPY_VERSION}-{PYTHON_ABI}-linux_{PLATFORM}.whl"
ORIGINAL_SIX_WHEEL = "six-1.11.0-py2.py3-none-any.whl"
SHOW_RE = re.compile(
Expand Down Expand Up @@ -698,6 +705,8 @@ def any_manylinux_img(self, request):
Plus up-to-date pip, setuptools and pytest-cov
"""
policy = request.param
if policy == "manylinux_2_5" and PYTHON_ABI_MAJ_MIN in {"310"}:
pytest.skip(f"manylinux_2_5 images do not support cp{PYTHON_ABI_MAJ_MIN}")
base = MANYLINUX_IMAGES[policy]
env = {"PATH": PATH[policy]}
with tmp_docker_image(
Expand Down

0 comments on commit da34a03

Please sign in to comment.