Skip to content

Commit 11a641a

Browse files
lefthook: Add versions 2.1.12, 2.1.14 (#2441)
* lefthook: Add versions 2.1.12, 2.1.14 Signed-off-by: riseproject-dev[bot] <330740410+riseproject-dev[bot]@users.noreply.github.com> * 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. --------- Signed-off-by: riseproject-dev[bot] <330740410+riseproject-dev[bot]@users.noreply.github.com> Co-authored-by: riseproject-dev[bot] <330740410+riseproject-dev[bot]@users.noreply.github.com> Co-authored-by: Ludovic Henry <git@ludovic.dev>
1 parent 8cb3525 commit 11a641a

3 files changed

Lines changed: 88 additions & 0 deletions

File tree

‎docs/packages/lefthook.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ versions:
99
- filename: lefthook-2.1.11-py3-none-manylinux_2_39_riscv64.whl
1010
sha256: 31a4a6b5dcd4862eb8a1ad42b45fc795a313fed7991af26e78bbe7e9890fe668
1111
requires-python: '>=3.6'
12+
- version: 2.1.12
13+
- version: 2.1.14
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
From 57fc962c40b51418965084d5e22e31a5abcd1268 Mon Sep 17 00:00:00 2001
2+
From: Ludovic Henry <git@ludovic.dev>
3+
Date: Thu, 24 Sep 2026 06:45:00 +0000
4+
Subject: [PATCH] add riscv64 to the PyPI wheel platform-tag table
5+
6+
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]
7+
8+
hatch_build.py's PEP425_TAGS dict maps (platform, arch) to the wheel's
9+
PEP 425 tag, keyed off LEFTHOOK_TARGET_PLATFORM/LEFTHOOK_TARGET_ARCH (or
10+
the host's own sys.platform/platform.machine() when unset). It only
11+
knows the six platforms upstream's own publish.raku loop builds for, so
12+
building with LEFTHOOK_TARGET_PLATFORM=linux LEFTHOOK_TARGET_ARCH=riscv64
13+
falls through to "no PEP425 tag" and produces a universal py3-none-any
14+
wheel that would wrongly claim to work on every platform while bundling
15+
a riscv64-only binary.
16+
17+
Add ("linux", "riscv64") -> "py3-none-manylinux_2_39_riscv64", matching
18+
the manylinux_riscv64 image this project's own riscv64 wheel builds run
19+
in. ARCH_MAPPING and main.py's copy of it need no change: platform.machine()
20+
already reports "riscv64" verbatim on that architecture, which is also
21+
the directory name the binary is shipped under (lefthook/bin/lefthook-linux-riscv64/).
22+
Existing platforms resolve unchanged.
23+
24+
Signed-off-by: Ludovic Henry <git@ludovic.dev>
25+
---
26+
packaging/registries/pypi/hatch_build.py | 1 +
27+
1 file changed, 1 insertion(+)
28+
29+
diff --git a/packaging/registries/pypi/hatch_build.py b/packaging/registries/pypi/hatch_build.py
30+
index a296e30..5e060fd 100644
31+
--- a/packaging/registries/pypi/hatch_build.py
32+
+++ b/packaging/registries/pypi/hatch_build.py
33+
@@ -30,6 +30,7 @@ ARCH_MAPPING = {
34+
PEP425_TAGS = {
35+
("linux", "x86_64"): "py3-none-manylinux_2_17_x86_64",
36+
("linux", "arm64"): "py3-none-manylinux_2_17_aarch64",
37+
+ ("linux", "riscv64"): "py3-none-manylinux_2_39_riscv64",
38+
("darwin", "x86_64"): "py3-none-macosx_10_15_x86_64",
39+
("darwin", "arm64"): "py3-none-macosx_11_0_arm64",
40+
("windows", "x86_64"): "py3-none-win_amd64",
41+
--
42+
2.43.0
43+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
From 57fc962c40b51418965084d5e22e31a5abcd1268 Mon Sep 17 00:00:00 2001
2+
From: Ludovic Henry <git@ludovic.dev>
3+
Date: Thu, 24 Sep 2026 06:45:00 +0000
4+
Subject: [PATCH] add riscv64 to the PyPI wheel platform-tag table
5+
6+
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]
7+
8+
hatch_build.py's PEP425_TAGS dict maps (platform, arch) to the wheel's
9+
PEP 425 tag, keyed off LEFTHOOK_TARGET_PLATFORM/LEFTHOOK_TARGET_ARCH (or
10+
the host's own sys.platform/platform.machine() when unset). It only
11+
knows the six platforms upstream's own publish.raku loop builds for, so
12+
building with LEFTHOOK_TARGET_PLATFORM=linux LEFTHOOK_TARGET_ARCH=riscv64
13+
falls through to "no PEP425 tag" and produces a universal py3-none-any
14+
wheel that would wrongly claim to work on every platform while bundling
15+
a riscv64-only binary.
16+
17+
Add ("linux", "riscv64") -> "py3-none-manylinux_2_39_riscv64", matching
18+
the manylinux_riscv64 image this project's own riscv64 wheel builds run
19+
in. ARCH_MAPPING and main.py's copy of it need no change: platform.machine()
20+
already reports "riscv64" verbatim on that architecture, which is also
21+
the directory name the binary is shipped under (lefthook/bin/lefthook-linux-riscv64/).
22+
Existing platforms resolve unchanged.
23+
24+
Signed-off-by: Ludovic Henry <git@ludovic.dev>
25+
---
26+
packaging/registries/pypi/hatch_build.py | 1 +
27+
1 file changed, 1 insertion(+)
28+
29+
diff --git a/packaging/registries/pypi/hatch_build.py b/packaging/registries/pypi/hatch_build.py
30+
index a296e30..5e060fd 100644
31+
--- a/packaging/registries/pypi/hatch_build.py
32+
+++ b/packaging/registries/pypi/hatch_build.py
33+
@@ -30,6 +30,7 @@ ARCH_MAPPING = {
34+
PEP425_TAGS = {
35+
("linux", "x86_64"): "py3-none-manylinux_2_17_x86_64",
36+
("linux", "arm64"): "py3-none-manylinux_2_17_aarch64",
37+
+ ("linux", "riscv64"): "py3-none-manylinux_2_39_riscv64",
38+
("darwin", "x86_64"): "py3-none-macosx_10_15_x86_64",
39+
("darwin", "arm64"): "py3-none-macosx_11_0_arm64",
40+
("windows", "x86_64"): "py3-none-win_amd64",
41+
--
42+
2.43.0
43+

0 commit comments

Comments
 (0)