fix(skills): read python floor from requires-python in write-readme-py
- fix(skills): stop hardcoding "≥ 3.11"; substitute project.requires-python
This commit is contained in:
parent
7cd2e44799
commit
878a5e063d
@ -13,7 +13,8 @@ description: Generate a README.md for a Python project scaffolded by `/build-py-
|
|||||||
|
|
||||||
1. **Read sources.**
|
1. **Read sources.**
|
||||||
- `pyproject.toml` → `project.name`, `project.description`,
|
- `pyproject.toml` → `project.name`, `project.description`,
|
||||||
`project.dependencies`, `project.optional-dependencies` (every group,
|
`project.requires-python`, `project.dependencies`,
|
||||||
|
`project.optional-dependencies` (every group,
|
||||||
not just `dev`), `project.license`, `project.authors[0]`,
|
not just `dev`), `project.license`, `project.authors[0]`,
|
||||||
`project.urls.Repository` (fall back to `Homepage`).
|
`project.urls.Repository` (fall back to `Homepage`).
|
||||||
- `justfile` → each recipe name plus the comment line(s) above it.
|
- `justfile` → each recipe name plus the comment line(s) above it.
|
||||||
@ -28,8 +29,8 @@ description: Generate a README.md for a Python project scaffolded by `/build-py-
|
|||||||
|
|
||||||
3. **Materialise `README.md`** from
|
3. **Materialise `README.md`** from
|
||||||
[`readme-py.template.md`](readme-py.template.md), substituting:
|
[`readme-py.template.md`](readme-py.template.md), substituting:
|
||||||
- `<project.name>`, `<project.description>`, `<package_name>` (the
|
- `<project.name>`, `<project.description>`, `<project.requires-python>`,
|
||||||
`project.name` with hyphens → underscores).
|
`<package_name>` (the `project.name` with hyphens → underscores).
|
||||||
- `<logo-block>` → `<img src="assets/<name>.<ext>" alt="<name> logo" width="200"/>`
|
- `<logo-block>` → `<img src="assets/<name>.<ext>" alt="<name> logo" width="200"/>`
|
||||||
if the asset exists; empty string otherwise.
|
if the asset exists; empty string otherwise.
|
||||||
- `<install-block>` → one `uv pip install -e ".[<group>]"` line per
|
- `<install-block>` → one `uv pip install -e ".[<group>]"` line per
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
Requires Python ≥ 3.11. Install with [uv](https://docs.astral.sh/uv/):
|
Requires Python <project.requires-python>. Install with [uv](https://docs.astral.sh/uv/):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
<install-block>
|
<install-block>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user