1414from cibuildwheel .__main__ import main
1515from cibuildwheel .oci_container import OCIPlatform
1616
17- ALL_IDS = {
18- "cp36" ,
19- "cp37" ,
20- "cp38" ,
21- "cp39" ,
22- "cp310" ,
23- "cp311" ,
24- "cp312" ,
25- "cp313" ,
26- "pp37" ,
27- "pp38" ,
28- "pp39" ,
29- "pp310" ,
30- }
17+ DEFAULT_IDS = {"cp36" , "cp37" , "cp38" , "cp39" , "cp310" , "cp311" , "cp312" , "cp313" }
18+ ALL_IDS = DEFAULT_IDS | {"cp313t" , "pp37" , "pp38" , "pp39" , "pp310" }
3119
3220
3321@pytest .fixture
@@ -77,33 +65,31 @@ def test_build_default_launches(monkeypatch):
7765 assert kwargs ["container" ]["oci_platform" ] == OCIPlatform .AMD64
7866
7967 identifiers = {x .identifier for x in kwargs ["platform_configs" ]}
80- assert identifiers == {f"{ x } -manylinux_x86_64" for x in ALL_IDS }
68+ assert identifiers == {f"{ x } -manylinux_x86_64" for x in DEFAULT_IDS }
8169
8270 kwargs = build_in_container .call_args_list [1 ][1 ]
8371 assert "quay.io/pypa/manylinux2014_i686" in kwargs ["container" ]["image" ]
8472 assert kwargs ["container" ]["cwd" ] == PurePosixPath ("/project" )
8573 assert kwargs ["container" ]["oci_platform" ] == OCIPlatform .i386
8674
8775 identifiers = {x .identifier for x in kwargs ["platform_configs" ]}
88- assert identifiers == {f"{ x } -manylinux_i686" for x in ALL_IDS }
76+ assert identifiers == {f"{ x } -manylinux_i686" for x in DEFAULT_IDS }
8977
9078 kwargs = build_in_container .call_args_list [2 ][1 ]
9179 assert "quay.io/pypa/musllinux_1_2_x86_64" in kwargs ["container" ]["image" ]
9280 assert kwargs ["container" ]["cwd" ] == PurePosixPath ("/project" )
9381 assert kwargs ["container" ]["oci_platform" ] == OCIPlatform .AMD64
9482
9583 identifiers = {x .identifier for x in kwargs ["platform_configs" ]}
96- assert identifiers == {
97- f"{ x } -musllinux_x86_64" for x in ALL_IDS for x in ALL_IDS if "pp" not in x
98- }
84+ assert identifiers == {f"{ x } -musllinux_x86_64" for x in DEFAULT_IDS }
9985
10086 kwargs = build_in_container .call_args_list [3 ][1 ]
10187 assert "quay.io/pypa/musllinux_1_2_i686" in kwargs ["container" ]["image" ]
10288 assert kwargs ["container" ]["cwd" ] == PurePosixPath ("/project" )
10389 assert kwargs ["container" ]["oci_platform" ] == OCIPlatform .i386
10490
10591 identifiers = {x .identifier for x in kwargs ["platform_configs" ]}
106- assert identifiers == {f"{ x } -musllinux_i686" for x in ALL_IDS if "pp" not in x }
92+ assert identifiers == {f"{ x } -musllinux_i686" for x in DEFAULT_IDS }
10793
10894
10995@pytest .mark .usefixtures ("mock_build_container" )
@@ -117,6 +103,7 @@ def test_build_with_override_launches(monkeypatch, tmp_path):
117103[tool.cibuildwheel]
118104manylinux-x86_64-image = "manylinux_2_28"
119105musllinux-x86_64-image = "musllinux_1_2"
106+ enable = ["pypy", "cpython-freethreading"]
120107
121108# Before Python 3.10, use manylinux2014, musllinux_1_1
122109[[tool.cibuildwheel.overrides]]
@@ -158,7 +145,7 @@ def test_build_with_override_launches(monkeypatch, tmp_path):
158145 assert identifiers == {
159146 f"{ x } -manylinux_x86_64"
160147 for x in ALL_IDS
161- - {"cp36" , "cp310" , "cp311" , "cp312" , "cp313" , "pp37" , "pp38" , "pp39" , "pp310" }
148+ - {"cp36" , "cp310" , "cp311" , "cp312" , "cp313" , "cp313t" , " pp37" , "pp38" , "pp39" , "pp310" }
162149 }
163150 assert kwargs ["options" ].build_options ("cp37-manylinux_x86_64" ).before_all == ""
164151
@@ -169,7 +156,7 @@ def test_build_with_override_launches(monkeypatch, tmp_path):
169156 identifiers = {x .identifier for x in kwargs ["platform_configs" ]}
170157 assert identifiers == {
171158 f"{ x } -manylinux_x86_64"
172- for x in ["cp310" , "cp311" , "cp312" , "cp313" , "pp37" , "pp38" , "pp39" , "pp310" ]
159+ for x in ["cp310" , "cp311" , "cp312" , "cp313" , "cp313t" , " pp37" , "pp38" , "pp39" , "pp310" ]
173160 }
174161
175162 kwargs = build_in_container .call_args_list [3 ][1 ]
0 commit comments