Repository navigation
Notes: add an optional python field so a note can retire per Python - #53
Conversation
A note lists platforms but no Python, so it only retires when every Python
target of its platforms has a wheel. A note about a gap on 3.13 therefore
stays up while only 3.14t is missing, and an alternative note sets a package
aside on a free-threaded campaign even when the alternative has no
free-threaded wheels.
Add an optional `python` list of scanned Python labels ("3.13", "3.14t", ...)
meaning the note applies only to those Pythons:
- check_notes validates it against the Pythons in coverage.json's targets
(non-empty list, each label scanned, no duplicates).
- check_notes.current() counts only the listed Pythons' targets when deciding
that a note has retired.
- build_campaigns only links a note, or sets a package aside for an
alternative note, on a campaign whose Python is listed.
- The package page shows "for Python ..." on the note's card, and the
package JSON carries `python` for a note that has one.
The JSON leaves `python` out of a note that has none, rather than writing
null as it does for versions. wheelgap parses these notes and rejects any
whose keys aren't exactly the ones it knows, so a null on every note would
make a released client drop all of them. Notes without the field keep the
JSON they had before.
This changes the note format. Fixes wheelgap#52.
|
Thanks for this, @duan-n2d. It covers each step of #52, the tests pin the retire-per-Python behaviour from both directions, and leaving Because it changes the nightly scan scripts under (Review assisted by Claude.) |
…ned on pyodide is only scanned on 3.13 and 3.14, so platforms = ["pyodide"] with python = ["3.14t"] passed the checker but had no target to retire by, and stayed on the site for good. Check that at least one listed platform has a target for one of the listed Pythons. Also reword two doc sentences (campaigns are never free-threaded; notes is [] when there are none). Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Merged. Welcome to the tracker, @duan-n2d, and thank you! What I liked most is leaving Before merging I pushed one commit. It refuses a note whose Pythons aren't scanned on any of its platforms: pyodide is only scanned on 3.13 and 3.14, so If you'd like another, #51 (stop the pip cross-check early once errors pass 5%, and don't publish when the scan was cancelled) is open with nobody on it. (Review assisted by Claude.) |
A note lists platforms but no Python, so it only retires when every Python target of its platforms has a wheel. A note about a gap on 3.13 therefore stays up while only 3.14t is missing, and an alternative note sets a package aside on a free-threaded campaign even when the alternative has no free-threaded wheels.
Add an optional
pythonlist of scanned Python labels ("3.13", "3.14t", ...) meaning the note applies only to those Pythons:pythonfor a note that has one.The JSON leaves
pythonout of a note that has none, rather than writing null as it does for versions. wheelgap parses these notes and rejects any whose keys aren't exactly the ones it knows, so a null on every note would make a released client drop all of them. Notes without the field keep the JSON they had before.This changes the note format. Fixes #52.