Commit 61c24c8
committed
fix: update prepare_readme.py to support local development workflow
**Context:** The `scripts/prepare_readme.py` script converts `README.md`
to `README-PYPI.md` for PyPI publication, replacing relative URLs with
absolute GitHub URLs so documentation links work properly on the PyPI
package page.
**Problem:** Prior to these changes, `poetry install` would fail in
local development with "Readme path does not exist" because
`pyproject.toml` referenced `README-PYPI.md`, but this file was
gitignored and only generated during the publishing process.
**Fix:** Enhanced `scripts/prepare_readme.py` to automatically update
`pyproject.toml` after generating `README-PYPI.md`, switching the
`readme` reference from `README.md` to `README-PYPI.md`. This allows the
script to handle the complete PyPI preparation workflow while ensuring
local development setup works seamlessly.1 parent 57edf6a commit 61c24c8
2 files changed
+44
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
2 | 12 | | |
3 | 13 | | |
4 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
5 | 38 | | |
6 | 39 | | |
7 | 40 | | |
| |||
23 | 56 | | |
24 | 57 | | |
25 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
26 | 63 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 64 | + | |
| 65 | + | |
0 commit comments