Skip to content

Commit

Permalink
chore: add python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Nov 19, 2022
1 parent 99e5367 commit 2d55d16
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 11 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ concurrency:
jobs:
pre-commit:
name: Pre-commit checks (Black, Flake8, MyPy, ...)
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand All @@ -22,7 +22,7 @@ jobs:
test-dist:
name: Test SDist & wheel
needs: pre-commit
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -37,7 +37,7 @@ jobs:
test:
name: CPython ${{ matrix.python }}
needs: test-dist
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
Expand All @@ -46,6 +46,7 @@ jobs:
- python: "3.8"
- python: "3.9"
- python: "3.10"
- python: "3.11"
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/asottile/pyupgrade
rev: v3.1.0
rev: v3.2.2
hooks:
- id: pyupgrade
args: ["--py37-plus"]
Expand All @@ -46,7 +46,7 @@ repos:
- id: flake8

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.982
rev: v0.991
hooks:
- id: mypy
exclude: ^tests/integration/.*/.*$
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
os: linux
dist: focal
language: python
python: "3.8"
python: "3.9"
arch: arm64-graviton2

jobs:
Expand All @@ -24,7 +24,7 @@ install:
- pip install nox

script:
- nox -s tests-3.8
- nox -s tests-3.9

cache:
directories:
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

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

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


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
# enable version inference

[tool.black]
target-version = ["py37", "py38", "py39", "py310"]
target-version = ["py37", "py38", "py39", "py310", "py311"]
extend-exclude = "src/auditwheel/_vendor"

[tool.isort]
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ classifier =
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3 :: Only
Topic :: Software Development
Topic :: Software Development :: Build Tools
Expand Down
11 changes: 9 additions & 2 deletions tests/integration/test_manylinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"38": "1.19.2",
"39": "1.19.2",
"310": "1.21.4",
"311": "1.23.4",
}
NUMPY_VERSION = NUMPY_VERSION_MAP[PYTHON_ABI_MAJ_MIN]
ORIGINAL_NUMPY_WHEEL = f"numpy-{NUMPY_VERSION}-{PYTHON_ABI}-linux_{PLATFORM}.whl"
Expand Down Expand Up @@ -806,8 +807,14 @@ 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 not in {"37", "38", "39"}:
pytest.skip(f"manylinux_2_5 images do not support cp{PYTHON_ABI_MAJ_MIN}")
support_check_map = {
"manylinux_2_5": {"37", "38", "39"},
"manylinux_2_12": {"37", "38", "39", "310"},
}
check_set = support_check_map.get(policy, None)
if check_set and PYTHON_ABI_MAJ_MIN not in check_set:
pytest.skip(f"{policy} 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 2d55d16

Please sign in to comment.