fix: enable all shall not enable cpython-experimental-riscv64 (#2528)

This commit is contained in:
Matthieu Darbois
2025-07-27 23:18:35 -06:00
committed by GitHub
parent 36c5079ce5
commit b887417e0e
3 changed files with 20 additions and 2 deletions
+1 -1
View File
@@ -665,7 +665,7 @@ class Options:
build_config = args.only
skip_config = ""
architectures = Architecture.all_archs(self.platform)
enable |= set(EnableGroup) - {EnableGroup.CPythonExperimentalRiscV64}
enable |= EnableGroup.all_groups()
build_selector = BuildSelector(
build_config=build_config,
+1 -1
View File
@@ -39,7 +39,7 @@ class EnableGroup(StrEnum):
@classmethod
def all_groups(cls) -> frozenset["EnableGroup"]:
return frozenset(cls)
return frozenset(set(cls) - {cls.CPythonExperimentalRiscV64})
@classmethod
def parse_option_value(cls, value: str) -> frozenset["EnableGroup"]:
+18
View File
@@ -188,6 +188,24 @@ def test_riscv64_no_warning(monkeypatch, capsys, tmp_path):
assert "'cpython-experimental-riscv64' enable is deprecated" not in err
@pytest.mark.usefixtures("platform", "intercepted_build_args")
def test_riscv64_no_warning2(monkeypatch, capsys, tmp_path):
local_path = tmp_path / "tmp_project"
os.mkdir(local_path) # noqa:PTH102 Path.mkdir has been monkeypatched already
local_path.joinpath("setup.py").touch()
monkeypatch.setattr(
sys, "argv", ["cibuildwheel", "--only", "cp313-manylinux_riscv64", str(local_path)]
)
monkeypatch.setenv("CIBW_ENABLE", "all")
main()
_, err = capsys.readouterr()
print(err)
assert "'cpython-experimental-riscv64' enable is deprecated" not in err
@pytest.mark.parametrize(
("architecture", "image", "full_image"),
[