Build cp311 without setting prerelease_pythons
This commit is contained in:
@@ -37,7 +37,7 @@ What does it do?
|
|||||||
<sup>¹ PyPy is only supported for manylinux wheels.</sup><br>
|
<sup>¹ PyPy is only supported for manylinux wheels.</sup><br>
|
||||||
<sup>² Windows arm64 support is experimental.</sup><br>
|
<sup>² Windows arm64 support is experimental.</sup><br>
|
||||||
<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>
|
<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>
|
||||||
<sup>⁴ CPython 3.11 is available using the [CIBW_PRERELEASE_PYTHONS](https://cibuildwheel.readthedocs.io/en/stable/options/#prerelease-pythons) option.</sup><br>
|
<sup>⁴ CPython 3.11 is built by default using Python 3.11.0rc1, starting with cibuildwheel 2.9.</sup><br>
|
||||||
|
|
||||||
- Builds manylinux, musllinux, macOS 10.9+, and Windows wheels for CPython and PyPy
|
- Builds manylinux, musllinux, macOS 10.9+, and Windows wheels for CPython and PyPy
|
||||||
- Works on GitHub Actions, Azure Pipelines, Travis CI, AppVeyor, CircleCI, and GitLab CI
|
- Works on GitHub Actions, Azure Pipelines, Travis CI, AppVeyor, CircleCI, and GitLab CI
|
||||||
|
|||||||
@@ -242,7 +242,7 @@ class BuildSelector:
|
|||||||
requires_python: SpecifierSet | None = None
|
requires_python: SpecifierSet | None = None
|
||||||
|
|
||||||
# a pattern that skips prerelease versions, when include_prereleases is False.
|
# a pattern that skips prerelease versions, when include_prereleases is False.
|
||||||
PRERELEASE_SKIP: ClassVar[str] = "cp311-*"
|
PRERELEASE_SKIP: ClassVar[str] = ""
|
||||||
prerelease_pythons: bool = False
|
prerelease_pythons: bool = False
|
||||||
|
|
||||||
def __call__(self, build_id: str) -> bool:
|
def __call__(self, build_id: str) -> bool:
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ def test_build():
|
|||||||
assert build_selector("cp36-manylinux_x86_64")
|
assert build_selector("cp36-manylinux_x86_64")
|
||||||
assert build_selector("cp37-manylinux_x86_64")
|
assert build_selector("cp37-manylinux_x86_64")
|
||||||
assert build_selector("cp310-manylinux_x86_64")
|
assert build_selector("cp310-manylinux_x86_64")
|
||||||
assert not build_selector("cp311-manylinux_x86_64")
|
assert build_selector("cp311-manylinux_x86_64")
|
||||||
assert build_selector("pp36-manylinux_x86_64")
|
assert build_selector("pp36-manylinux_x86_64")
|
||||||
assert build_selector("pp37-manylinux_x86_64")
|
assert build_selector("pp37-manylinux_x86_64")
|
||||||
assert build_selector("cp36-manylinux_i686")
|
assert build_selector("cp36-manylinux_i686")
|
||||||
@@ -30,7 +30,7 @@ def test_build():
|
|||||||
assert build_selector("cp36-win_amd64")
|
assert build_selector("cp36-win_amd64")
|
||||||
assert build_selector("cp37-win_amd64")
|
assert build_selector("cp37-win_amd64")
|
||||||
assert build_selector("cp310-win_amd64")
|
assert build_selector("cp310-win_amd64")
|
||||||
assert not build_selector("cp311-win_amd64")
|
assert build_selector("cp311-win_amd64")
|
||||||
assert not build_selector("pp36-win_amd64")
|
assert not build_selector("pp36-win_amd64")
|
||||||
assert not build_selector("pp37-win_amd64")
|
assert not build_selector("pp37-win_amd64")
|
||||||
|
|
||||||
|
|||||||
@@ -60,8 +60,12 @@ def test_linux_container_split(tmp_path: Path, monkeypatch):
|
|||||||
pprint(build_steps)
|
pprint(build_steps)
|
||||||
|
|
||||||
assert build_steps[0].container_image == "normal_container_image"
|
assert build_steps[0].container_image == "normal_container_image"
|
||||||
assert identifiers(build_steps[0]) == ["cp36-manylinux_x86_64", "cp37-manylinux_x86_64"]
|
assert identifiers(build_steps[0]) == [
|
||||||
assert before_alls(build_steps[0]) == ["", ""]
|
"cp36-manylinux_x86_64",
|
||||||
|
"cp37-manylinux_x86_64",
|
||||||
|
"cp311-manylinux_x86_64",
|
||||||
|
]
|
||||||
|
assert before_alls(build_steps[0]) == ["", "", ""]
|
||||||
|
|
||||||
assert build_steps[1].container_image == "other_container_image"
|
assert build_steps[1].container_image == "other_container_image"
|
||||||
assert identifiers(build_steps[1]) == ["cp38-manylinux_x86_64", "cp310-manylinux_x86_64"]
|
assert identifiers(build_steps[1]) == ["cp38-manylinux_x86_64", "cp310-manylinux_x86_64"]
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import pytest
|
|||||||
from cibuildwheel import linux, util
|
from cibuildwheel import linux, util
|
||||||
from cibuildwheel.__main__ import main
|
from cibuildwheel.__main__ import main
|
||||||
|
|
||||||
ALL_IDS = {"cp36", "cp37", "cp38", "cp39", "cp310", "pp37", "pp38", "pp39"}
|
ALL_IDS = {"cp36", "cp37", "cp38", "cp39", "cp310", "cp311", "pp37", "pp38", "pp39"}
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
@@ -137,7 +137,8 @@ before-all = "true"
|
|||||||
|
|
||||||
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
||||||
assert identifiers == {
|
assert identifiers == {
|
||||||
f"{x}-manylinux_x86_64" for x in ALL_IDS - {"cp36", "cp310", "pp37", "pp38", "pp39"}
|
f"{x}-manylinux_x86_64"
|
||||||
|
for x in ALL_IDS - {"cp36", "cp310", "cp311", "pp37", "pp38", "pp39"}
|
||||||
}
|
}
|
||||||
assert kwargs["options"].build_options("cp37-manylinux_x86_64").before_all == ""
|
assert kwargs["options"].build_options("cp37-manylinux_x86_64").before_all == ""
|
||||||
|
|
||||||
@@ -147,10 +148,7 @@ before-all = "true"
|
|||||||
assert not kwargs["container"]["simulate_32_bit"]
|
assert not kwargs["container"]["simulate_32_bit"]
|
||||||
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
identifiers = {x.identifier for x in kwargs["platform_configs"]}
|
||||||
assert identifiers == {
|
assert identifiers == {
|
||||||
"cp310-manylinux_x86_64",
|
f"{x}-manylinux_x86_64" for x in {"cp310", "cp311", "pp37", "pp38", "pp39"}
|
||||||
"pp37-manylinux_x86_64",
|
|
||||||
"pp38-manylinux_x86_64",
|
|
||||||
"pp39-manylinux_x86_64",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
kwargs = build_in_container.call_args_list[3][1]
|
kwargs = build_in_container.call_args_list[3][1]
|
||||||
|
|||||||
Reference in New Issue
Block a user