Skip to content

Commit ce71f44

Browse files
henryiiijoerick
andauthored
fix: --only shouldn't require prerelease pythons setting (#1564)
* fix: --only shouldn't require prerelease pythons setting Signed-off-by: Henry Schreiner <[email protected]> * Add test --------- Signed-off-by: Henry Schreiner <[email protected]> Co-authored-by: Joe Rickerby <[email protected]>
1 parent 12d5488 commit ce71f44

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cibuildwheel/options.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,7 @@ def globals(self) -> GlobalOptions:
450450
build_config = args.only
451451
skip_config = ""
452452
architectures = Architecture.all_archs(self.platform)
453+
prerelease_pythons = True
453454

454455
build_selector = BuildSelector(
455456
build_config=build_config,

unit_test/main_tests/main_platform_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ def test_only_argument(intercepted_build_args, monkeypatch, only, plat):
214214
assert options.globals.build_selector.skip_config == ""
215215
assert options.platform == plat
216216
assert options.globals.architectures == Architecture.all_archs(plat)
217+
assert options.globals.build_selector.prerelease_pythons is True
217218

218219

219220
@pytest.mark.parametrize("only", ("cp311-manylxinux_x86_64", "some_linux_thing"))

0 commit comments

Comments
 (0)