Skip to content

Commit 2fb4558

Browse files
committed
mark CPython 3.11 as pre-release
1 parent bced43e commit 2fb4558

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

.github/workflows/update-dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v3
1515
- uses: actions/setup-python@v3
1616
with:
17-
python-version: "3.11"
17+
python-version: "3.11-dev"
1818
- uses: excitedleigh/[email protected]
1919

2020
- name: "Run update: dependencies"

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@ What does it do?
2929
| CPython 3.8 ||||| N/A ||||||
3030
| CPython 3.9 ||||| ✅² | ✅³ |||||
3131
| CPython 3.10 ||||| ✅² ||||||
32-
| CPython 3.11 ||||| ✅² ||||||
32+
| CPython 3.11 ||||| ✅² ||||||
3333
| PyPy 3.7 v7.3 || N/A || N/A | N/A | ✅¹ | ✅¹ | ✅¹ | N/A | N/A |
3434
| PyPy 3.8 v7.3 || N/A || N/A | N/A | ✅¹ | ✅¹ | ✅¹ | N/A | N/A |
3535
| PyPy 3.9 v7.3 || N/A || N/A | N/A | ✅¹ | ✅¹ | ✅¹ | N/A | N/A |
3636

3737
<sup>¹ PyPy is only supported for manylinux wheels.</sup><br>
3838
<sup>² Windows arm64 support is experimental.</sup><br>
3939
<sup>³ Alpine 3.14 and very briefly 3.15's default python3 [was not able to load](https://github.com/pypa/cibuildwheel/issues/934) musllinux wheels. This has been fixed; please upgrade the python package if using Alpine from before the fix.</sup><br>
40+
<sup>⁴ CPython 3.11 is available using the [CIBW_PRERELEASE_PYTHONS](https://cibuildwheel.readthedocs.io/en/stable/options/#prerelease-pythons) option.</sup><br>
4041

4142
- Builds manylinux, musllinux, macOS 10.9+, and Windows wheels for CPython and PyPy
4243
- Works on GitHub Actions, Azure Pipelines, Travis CI, AppVeyor, CircleCI, and GitLab CI

cibuildwheel/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ class IdentifierSelector:
244244
"""
245245

246246
# a pattern that skips prerelease versions, when include_prereleases is False.
247-
PRERELEASE_SKIP: ClassVar[str] = ""
247+
PRERELEASE_SKIP: ClassVar[str] = "cp311-*"
248248

249249
skip_config: str
250250
build_config: str

unit_test/build_selector_test.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import pytest
21
from packaging.specifiers import SpecifierSet
32

43
from cibuildwheel.util import BuildSelector
@@ -10,7 +9,7 @@ def test_build():
109
assert build_selector("cp36-manylinux_x86_64")
1110
assert build_selector("cp37-manylinux_x86_64")
1211
assert build_selector("cp310-manylinux_x86_64")
13-
assert build_selector("cp311-manylinux_x86_64")
12+
assert not build_selector("cp311-manylinux_x86_64")
1413
assert build_selector("pp36-manylinux_x86_64")
1514
assert build_selector("pp37-manylinux_x86_64")
1615
assert build_selector("cp36-manylinux_i686")
@@ -29,12 +28,11 @@ def test_build():
2928
assert build_selector("cp36-win_amd64")
3029
assert build_selector("cp37-win_amd64")
3130
assert build_selector("cp310-win_amd64")
32-
assert build_selector("cp311-win_amd64")
31+
assert not build_selector("cp311-win_amd64")
3332
assert not build_selector("pp36-win_amd64")
3433
assert not build_selector("pp37-win_amd64")
3534

3635

37-
@pytest.mark.skip("this test only makes sense when we have a prerelease python to test with")
3836
def test_build_filter_pre():
3937
build_selector = BuildSelector(
4038
build_config="cp3*-* *-manylinux*",

0 commit comments

Comments
 (0)