From 226bf0906f2969070ad11494eb2425613494ad6d Mon Sep 17 00:00:00 2001 From: "riseproject-dev[bot]" <330740410+riseproject-dev[bot]@users.noreply.github.com> Date: Mon, 28 Sep 2026 08:19:29 +0000 Subject: [PATCH 1/2] lefthook: Add versions 2.1.12, 2.1.14 Signed-off-by: riseproject-dev[bot] <330740410+riseproject-dev[bot]@users.noreply.github.com> --- docs/packages/lefthook.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/packages/lefthook.yaml b/docs/packages/lefthook.yaml index 54dc2567935..d1072dd28fe 100644 --- a/docs/packages/lefthook.yaml +++ b/docs/packages/lefthook.yaml @@ -9,3 +9,5 @@ versions: - filename: lefthook-2.1.11-py3-none-manylinux_2_39_riscv64.whl sha256: 31a4a6b5dcd4862eb8a1ad42b45fc795a313fed7991af26e78bbe7e9890fe668 requires-python: '>=3.6' +- version: 2.1.12 +- version: 2.1.14 From 1f1542661e10bd09bd6d06df638a146f891cd0fe Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Mon, 28 Sep 2026 12:53:05 +0000 Subject: [PATCH 2/2] lefthook: carry riscv64 platform-tag patch to 2.1.12, 2.1.14 hatch_build.py is unchanged from 2.1.11 in both releases, so the same patch applies as-is; the version bump left the new versions' patch directories missing, which made the workflow's git apply step fail on an unexpanded glob. --- ...to-the-PyPI-wheel-platform-tag-table.patch | 43 +++++++++++++++++++ ...to-the-PyPI-wheel-platform-tag-table.patch | 43 +++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 patches/lefthook/2.1.12/0001-add-riscv64-to-the-PyPI-wheel-platform-tag-table.patch create mode 100644 patches/lefthook/2.1.14/0001-add-riscv64-to-the-PyPI-wheel-platform-tag-table.patch diff --git a/patches/lefthook/2.1.12/0001-add-riscv64-to-the-PyPI-wheel-platform-tag-table.patch b/patches/lefthook/2.1.12/0001-add-riscv64-to-the-PyPI-wheel-platform-tag-table.patch new file mode 100644 index 00000000000..21013d7c908 --- /dev/null +++ b/patches/lefthook/2.1.12/0001-add-riscv64-to-the-PyPI-wheel-platform-tag-table.patch @@ -0,0 +1,43 @@ +From 57fc962c40b51418965084d5e22e31a5abcd1268 Mon Sep 17 00:00:00 2001 +From: Ludovic Henry +Date: Thu, 24 Sep 2026 06:45:00 +0000 +Subject: [PATCH] add riscv64 to the PyPI wheel platform-tag table + +Upstream-Status: To upstream [not submitted yet: lefthook has no riscv64 CI runner, so a drive-by PR could not be exercised by upstream's own release workflow; needs a maintainer discussion first] + +hatch_build.py's PEP425_TAGS dict maps (platform, arch) to the wheel's +PEP 425 tag, keyed off LEFTHOOK_TARGET_PLATFORM/LEFTHOOK_TARGET_ARCH (or +the host's own sys.platform/platform.machine() when unset). It only +knows the six platforms upstream's own publish.raku loop builds for, so +building with LEFTHOOK_TARGET_PLATFORM=linux LEFTHOOK_TARGET_ARCH=riscv64 +falls through to "no PEP425 tag" and produces a universal py3-none-any +wheel that would wrongly claim to work on every platform while bundling +a riscv64-only binary. + +Add ("linux", "riscv64") -> "py3-none-manylinux_2_39_riscv64", matching +the manylinux_riscv64 image this project's own riscv64 wheel builds run +in. ARCH_MAPPING and main.py's copy of it need no change: platform.machine() +already reports "riscv64" verbatim on that architecture, which is also +the directory name the binary is shipped under (lefthook/bin/lefthook-linux-riscv64/). +Existing platforms resolve unchanged. + +Signed-off-by: Ludovic Henry +--- + packaging/registries/pypi/hatch_build.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/packaging/registries/pypi/hatch_build.py b/packaging/registries/pypi/hatch_build.py +index a296e30..5e060fd 100644 +--- a/packaging/registries/pypi/hatch_build.py ++++ b/packaging/registries/pypi/hatch_build.py +@@ -30,6 +30,7 @@ ARCH_MAPPING = { + PEP425_TAGS = { + ("linux", "x86_64"): "py3-none-manylinux_2_17_x86_64", + ("linux", "arm64"): "py3-none-manylinux_2_17_aarch64", ++ ("linux", "riscv64"): "py3-none-manylinux_2_39_riscv64", + ("darwin", "x86_64"): "py3-none-macosx_10_15_x86_64", + ("darwin", "arm64"): "py3-none-macosx_11_0_arm64", + ("windows", "x86_64"): "py3-none-win_amd64", +-- +2.43.0 + diff --git a/patches/lefthook/2.1.14/0001-add-riscv64-to-the-PyPI-wheel-platform-tag-table.patch b/patches/lefthook/2.1.14/0001-add-riscv64-to-the-PyPI-wheel-platform-tag-table.patch new file mode 100644 index 00000000000..21013d7c908 --- /dev/null +++ b/patches/lefthook/2.1.14/0001-add-riscv64-to-the-PyPI-wheel-platform-tag-table.patch @@ -0,0 +1,43 @@ +From 57fc962c40b51418965084d5e22e31a5abcd1268 Mon Sep 17 00:00:00 2001 +From: Ludovic Henry +Date: Thu, 24 Sep 2026 06:45:00 +0000 +Subject: [PATCH] add riscv64 to the PyPI wheel platform-tag table + +Upstream-Status: To upstream [not submitted yet: lefthook has no riscv64 CI runner, so a drive-by PR could not be exercised by upstream's own release workflow; needs a maintainer discussion first] + +hatch_build.py's PEP425_TAGS dict maps (platform, arch) to the wheel's +PEP 425 tag, keyed off LEFTHOOK_TARGET_PLATFORM/LEFTHOOK_TARGET_ARCH (or +the host's own sys.platform/platform.machine() when unset). It only +knows the six platforms upstream's own publish.raku loop builds for, so +building with LEFTHOOK_TARGET_PLATFORM=linux LEFTHOOK_TARGET_ARCH=riscv64 +falls through to "no PEP425 tag" and produces a universal py3-none-any +wheel that would wrongly claim to work on every platform while bundling +a riscv64-only binary. + +Add ("linux", "riscv64") -> "py3-none-manylinux_2_39_riscv64", matching +the manylinux_riscv64 image this project's own riscv64 wheel builds run +in. ARCH_MAPPING and main.py's copy of it need no change: platform.machine() +already reports "riscv64" verbatim on that architecture, which is also +the directory name the binary is shipped under (lefthook/bin/lefthook-linux-riscv64/). +Existing platforms resolve unchanged. + +Signed-off-by: Ludovic Henry +--- + packaging/registries/pypi/hatch_build.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/packaging/registries/pypi/hatch_build.py b/packaging/registries/pypi/hatch_build.py +index a296e30..5e060fd 100644 +--- a/packaging/registries/pypi/hatch_build.py ++++ b/packaging/registries/pypi/hatch_build.py +@@ -30,6 +30,7 @@ ARCH_MAPPING = { + PEP425_TAGS = { + ("linux", "x86_64"): "py3-none-manylinux_2_17_x86_64", + ("linux", "arm64"): "py3-none-manylinux_2_17_aarch64", ++ ("linux", "riscv64"): "py3-none-manylinux_2_39_riscv64", + ("darwin", "x86_64"): "py3-none-macosx_10_15_x86_64", + ("darwin", "arm64"): "py3-none-macosx_11_0_arm64", + ("windows", "x86_64"): "py3-none-win_amd64", +-- +2.43.0 +