From 97c536978f655a59d029eaef7dba2e73988a7462 Mon Sep 17 00:00:00 2001 From: mayeut Date: Sun, 20 Jul 2025 09:39:48 +0200 Subject: [PATCH] Allow manylinux/musllinux riscv64 wheel upload (PEP 600/656) fix #18243 All mainstream distros support the `RVA20U64` profile (which defines the ABI) targeting the `RV64GC` ISA (no optional extensions). This can serve as a baseline for `riscv64`. Optional extensions and/or later profiles shall go through a PEP (same status as on x86_64 fo v2/v3/v4 ISA extensions). --- tests/unit/forklift/test_legacy.py | 1 + warehouse/forklift/legacy.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/unit/forklift/test_legacy.py b/tests/unit/forklift/test_legacy.py index de78f0479efa..1ae09aeb065f 100644 --- a/tests/unit/forklift/test_legacy.py +++ b/tests/unit/forklift/test_legacy.py @@ -2728,6 +2728,7 @@ def test_upload_attestation_fails_without_oidc_publisher( "manylinux_2_17_armv7l", "manylinux_2_17_ppc64", "manylinux_2_17_ppc64le", + "manylinux_2_39_riscv64", "manylinux_3_0_s390x", "musllinux_1_1_x86_64", "macosx_10_5_ppc", diff --git a/warehouse/forklift/legacy.py b/warehouse/forklift/legacy.py index 369b3be91367..97f4821010e1 100644 --- a/warehouse/forklift/legacy.py +++ b/warehouse/forklift/legacy.py @@ -170,6 +170,7 @@ "armv7l", "ppc64le", "s390x", + "riscv64", } _manylinux_arches = _jointlinux_arches | {"ppc64"} _musllinux_arches = _jointlinux_arches