Skip to content

Commit 3b26567

Browse files
mayeutauvipy
authored andcommitted
chore: add python 3.11
1 parent 99e5367 commit 3b26567

File tree

7 files changed

+20
-11
lines changed

7 files changed

+20
-11
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111
jobs:
1212
pre-commit:
1313
name: Pre-commit checks (Black, Flake8, MyPy, ...)
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v3
1717
- uses: actions/setup-python@v4
@@ -22,7 +22,7 @@ jobs:
2222
test-dist:
2323
name: Test SDist & wheel
2424
needs: pre-commit
25-
runs-on: ubuntu-20.04
25+
runs-on: ubuntu-latest
2626
steps:
2727
- name: Checkout
2828
uses: actions/checkout@v3
@@ -37,7 +37,7 @@ jobs:
3737
test:
3838
name: CPython ${{ matrix.python }}
3939
needs: test-dist
40-
runs-on: ubuntu-20.04
40+
runs-on: ubuntu-latest
4141
strategy:
4242
fail-fast: false
4343
matrix:
@@ -46,6 +46,7 @@ jobs:
4646
- python: "3.8"
4747
- python: "3.9"
4848
- python: "3.10"
49+
- python: "3.11"
4950
steps:
5051
- name: Checkout
5152
uses: actions/checkout@v3

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repos:
2323
- id: trailing-whitespace
2424

2525
- repo: https://github.com/asottile/pyupgrade
26-
rev: v3.1.0
26+
rev: v3.2.2
2727
hooks:
2828
- id: pyupgrade
2929
args: ["--py37-plus"]
@@ -46,7 +46,7 @@ repos:
4646
- id: flake8
4747

4848
- repo: https://github.com/pre-commit/mirrors-mypy
49-
rev: v0.982
49+
rev: v0.991
5050
hooks:
5151
- id: mypy
5252
exclude: ^tests/integration/.*/.*$

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
os: linux
22
dist: focal
33
language: python
4-
python: "3.8"
4+
python: "3.9"
55
arch: arm64-graviton2
66

77
jobs:
@@ -24,7 +24,7 @@ install:
2424
- pip install nox
2525

2626
script:
27-
- nox -s tests-3.8
27+
- nox -s tests-3.9
2828

2929
cache:
3030
directories:

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

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

11-
PYTHON_ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10"]
11+
PYTHON_ALL_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11"]
1212
RUNNING_CI = "TRAVIS" in os.environ or "GITHUB_ACTIONS" in os.environ
1313

1414

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66
# enable version inference
77

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

1212
[tool.isort]

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ classifier =
1818
Programming Language :: Python :: 3.8
1919
Programming Language :: Python :: 3.9
2020
Programming Language :: Python :: 3.10
21+
Programming Language :: Python :: 3.11
2122
Programming Language :: Python :: 3 :: Only
2223
Topic :: Software Development
2324
Topic :: Software Development :: Build Tools

tests/integration/test_manylinux.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
"38": "1.19.2",
8787
"39": "1.19.2",
8888
"310": "1.21.4",
89+
"311": "1.23.4",
8990
}
9091
NUMPY_VERSION = NUMPY_VERSION_MAP[PYTHON_ABI_MAJ_MIN]
9192
ORIGINAL_NUMPY_WHEEL = f"numpy-{NUMPY_VERSION}-{PYTHON_ABI}-linux_{PLATFORM}.whl"
@@ -806,8 +807,14 @@ def any_manylinux_img(self, request):
806807
Plus up-to-date pip, setuptools and pytest-cov
807808
"""
808809
policy = request.param
809-
if policy == "manylinux_2_5" and PYTHON_ABI_MAJ_MIN not in {"37", "38", "39"}:
810-
pytest.skip(f"manylinux_2_5 images do not support cp{PYTHON_ABI_MAJ_MIN}")
810+
support_check_map = {
811+
"manylinux_2_5": {"37", "38", "39"},
812+
"manylinux_2_12": {"37", "38", "39", "310"},
813+
}
814+
check_set = support_check_map.get(policy, None)
815+
if check_set and PYTHON_ABI_MAJ_MIN not in check_set:
816+
pytest.skip(f"{policy} images do not support cp{PYTHON_ABI_MAJ_MIN}")
817+
811818
base = MANYLINUX_IMAGES[policy]
812819
env = {"PATH": PATH[policy]}
813820
with tmp_docker_image(

0 commit comments

Comments
 (0)