Skip to content

Commit 3b13764

Browse files
committed
Use manylinux_2_28 as default manylinux image (revert me)
1 parent 56d60ee commit 3b13764

File tree

6 files changed

+32
-14
lines changed

6 files changed

+32
-14
lines changed

cibuildwheel/resources/defaults.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ before-test = ""
1919
test-requires = []
2020
test-extras = []
2121

22-
manylinux-x86_64-image = "manylinux2014"
22+
manylinux-x86_64-image = "manylinux_2_28"
2323
manylinux-i686-image = "manylinux2014"
24-
manylinux-aarch64-image = "manylinux2014"
25-
manylinux-ppc64le-image = "manylinux2014"
24+
manylinux-aarch64-image = "manylinux_2_28"
25+
manylinux-ppc64le-image = "manylinux_2_28"
2626
manylinux-s390x-image = "manylinux2014"
27-
manylinux-pypy_x86_64-image = "manylinux2014"
27+
manylinux-pypy_x86_64-image = "manylinux_2_28"
2828
manylinux-pypy_i686-image = "manylinux2014"
29-
manylinux-pypy_aarch64-image = "manylinux2014"
29+
manylinux-pypy_aarch64-image = "manylinux_2_28"
3030

3131
musllinux-x86_64-image = "musllinux_1_1"
3232
musllinux-i686-image = "musllinux_1_1"

test/test_docker_images.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
def test(tmp_path):
2525
if utils.platform != "linux":
2626
pytest.skip("the test is only relevant to the linux build")
27-
if platform.machine() not in ["x86_64", "i686"]:
27+
if platform.machine() not in ["i686"]:
2828
pytest.skip(
2929
"this test is currently only possible on x86_64/i686 due to availability of alternative images"
3030
)

test/utils.py

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,22 @@ def expected_wheels(
121121
if manylinux_versions is None:
122122
if machine_arch == "x86_64":
123123
manylinux_versions = [
124+
"manylinux_2_5",
125+
"manylinux1",
126+
"manylinux_2_28",
127+
]
128+
manylinux_versions_i686 = [
124129
"manylinux_2_5",
125130
"manylinux1",
126131
"manylinux_2_17",
127132
"manylinux2014",
128133
]
129-
else:
134+
elif machine_arch == "s390x":
130135
manylinux_versions = ["manylinux_2_17", "manylinux2014"]
136+
else:
137+
manylinux_versions = ["manylinux_2_17", "manylinux2014", "manylinux_2_28"]
138+
else:
139+
manylinux_versions_i686 = manylinux_versions
131140

132141
if musllinux_versions is None:
133142
musllinux_versions = ["musllinux_1_1"]
@@ -149,16 +158,25 @@ def expected_wheels(
149158
if platform == "linux":
150159
architectures = [machine_arch]
151160

152-
if machine_arch == "x86_64":
153-
architectures.append("i686")
154-
155161
platform_tags = [
156162
".".join(
157163
f"{manylinux_version}_{architecture}"
158164
for manylinux_version in manylinux_versions
159165
)
160166
for architecture in architectures
161167
]
168+
if machine_arch == "x86_64":
169+
architectures.append("i686")
170+
171+
platform_tags.extend(
172+
[
173+
".".join(
174+
f"{manylinux_version}_i686"
175+
for manylinux_version in manylinux_versions_i686
176+
)
177+
]
178+
)
179+
162180
if len(musllinux_versions) > 0 and not python_abi_tag.startswith("pp"):
163181
platform_tags.extend(
164182
[

unit_test/main_tests/main_options_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_empty_selector(platform, intercepted_build_args, monkeypatch):
7171
@pytest.mark.parametrize(
7272
"architecture, image, full_image",
7373
[
74-
("x86_64", None, "quay.io/pypa/manylinux2014_x86_64:*"),
74+
("x86_64", None, "quay.io/pypa/manylinux_2_28_poc_x86_64:*"),
7575
("x86_64", "manylinux1", "quay.io/pypa/manylinux1_x86_64:*"),
7676
("x86_64", "manylinux2010", "quay.io/pypa/manylinux2010_x86_64:*"),
7777
("x86_64", "manylinux2014", "quay.io/pypa/manylinux2014_x86_64:*"),
@@ -84,7 +84,7 @@ def test_empty_selector(platform, intercepted_build_args, monkeypatch):
8484
("i686", "manylinux2014", "quay.io/pypa/manylinux2014_i686:*"),
8585
("i686", "manylinux_2_24", "quay.io/pypa/manylinux_2_24_i686:*"),
8686
("i686", "custom_image", "custom_image"),
87-
("pypy_x86_64", None, "quay.io/pypa/manylinux2014_x86_64:*"),
87+
("pypy_x86_64", None, "quay.io/pypa/manylinux_2_28_poc_x86_64:*"),
8888
("pypy_x86_64", "manylinux1", "manylinux1"), # Does not exist
8989
("pypy_x86_64", "manylinux2010", "quay.io/pypa/manylinux2010_x86_64:*"),
9090
("pypy_x86_64", "manylinux2014", "quay.io/pypa/manylinux2014_x86_64:*"),

unit_test/option_prepare_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def test_build_default_launches(mock_build_docker, fake_package_dir, monkeypatch
5252

5353
# In Python 3.8+, this can be simplified to [0].kwargs
5454
kwargs = build_on_docker.call_args_list[0][1]
55-
assert "quay.io/pypa/manylinux2014_x86_64" in kwargs["docker"]["docker_image"]
55+
assert "quay.io/pypa/manylinux_2_28_poc_x86_64" in kwargs["docker"]["docker_image"]
5656
assert kwargs["docker"]["cwd"] == Path("/project")
5757
assert not kwargs["docker"]["simulate_32_bit"]
5858

unit_test/options_toml_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def test_environment_override_empty(tmp_path, monkeypatch):
222222
assert options_reader.get("manylinux-i686-image") == ""
223223
assert options_reader.get("manylinux-aarch64-image") == "manylinux1"
224224

225-
assert options_reader.get("manylinux-x86_64-image", ignore_empty=True) == "manylinux2014"
225+
assert options_reader.get("manylinux-x86_64-image", ignore_empty=True) == "manylinux_2_28"
226226
assert options_reader.get("manylinux-i686-image", ignore_empty=True) == "manylinux1"
227227
assert options_reader.get("manylinux-aarch64-image", ignore_empty=True) == "manylinux1"
228228

0 commit comments

Comments
 (0)