Commit de9340f
Fix Python bindings build with recent
`hatchling` validates that `project.readme` resolves inside the project
directory, so our `readme = "../../README.md"` now aborts every build of
the Python bindings with:
ValueError: Readme path must be within the project directory: ../../README.md
This breaks the `check-python` CI job as well as `python_build_wheel.sh`.
Rather than duplicating the README into `bindings/python`, declare
`readme` dynamic and read the repository README from a custom metadata
hook, which hands it over as literal text and hence skips the path
validation. The resulting wheel metadata is byte-identical to what we
published before.
This commit was written with AI assistance.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>hatchling releases1 parent 5e3ffd5 commit de9340f
2 files changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
2 | 14 | | |
3 | 15 | | |
4 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
0 commit comments