From 141ac5cdb938e2547e3959dbe8de3c81426227c3 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 7 Aug 2023 12:15:30 -0400 Subject: [PATCH 1/2] fix: --only shouldn't require prerelease pythons setting Signed-off-by: Henry Schreiner --- cibuildwheel/options.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cibuildwheel/options.py b/cibuildwheel/options.py index fd6fabfe1..581e576b8 100644 --- a/cibuildwheel/options.py +++ b/cibuildwheel/options.py @@ -450,6 +450,7 @@ def globals(self) -> GlobalOptions: build_config = args.only skip_config = "" architectures = Architecture.all_archs(self.platform) + prerelease_pythons = True build_selector = BuildSelector( build_config=build_config, From 42f1ee76c5abf24ee0c31a978b7dc0ee613adae0 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Wed, 9 Aug 2023 09:00:09 +0100 Subject: [PATCH 2/2] Add test --- unit_test/main_tests/main_platform_test.py | 1 + 1 file changed, 1 insertion(+) diff --git a/unit_test/main_tests/main_platform_test.py b/unit_test/main_tests/main_platform_test.py index 79424821c..782b32520 100644 --- a/unit_test/main_tests/main_platform_test.py +++ b/unit_test/main_tests/main_platform_test.py @@ -214,6 +214,7 @@ def test_only_argument(intercepted_build_args, monkeypatch, only, plat): assert options.globals.build_selector.skip_config == "" assert options.platform == plat assert options.globals.architectures == Architecture.all_archs(plat) + assert options.globals.build_selector.prerelease_pythons is True @pytest.mark.parametrize("only", ("cp311-manylxinux_x86_64", "some_linux_thing"))