Gap wheels page: list the verified wheels that weren't published, and why (held.json)

Aperta
#40 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions, python
Ambito
ci-cd, tooling, web-dev

Direzione di ricerca

Start in scripts/gap_wheels.py, at cmd_stage() where the lines table is built, and at select() for the publish-time reasons. Then read scripts/build_gap_index.py (human_page() and build()) and the publish job in .github/workflows/gap-wheels.yml. The issue asks first for a written proposal on the publish-job change, which a maintainer must approve before code. Done means the held.json shape and the merge are tested in tests/test_gap_wheels.py, and the page section is tested in tests/test_gap_index.py.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement help wanted

The page at https://wheelgap.github.io/wheels/ lists what was published. It says nothing about what was built and held back, though every batch holds some. The 2026-11-20 batch (run 44831141560) verified 33 pairs and staged 29. Its summary also had, among others:

| fastparquet | 2026.9.0 | 3.15 linux-x86_64 | the two builds differ, in `fastparquet-2026.9.0.dist-info/RECORD`, `fastparquet/speedups.cpython-315-x86_64-linux-gnu.so` |
| jpype1 | 1.7.1 | 3.15 win-amd64 | the two builds differ, in `jpype1-1.7.1.dist-info/RECORD`, `org.jpype.jar` |

plus four "PyPI names no OSI-approved licence for it", five "a build made no wheel" and two "pip couldn't install it without compiling". Those lines live in a workflow run summary that GitHub deletes after 90 days, and that nobody looking for their package will find.

Showing them does three things. A user who wants fastparquet on 3.15 sees it was tried and why it isn't there. A package maintainer sees the one thing to fix (state a licence, make the build reproducible). And "we held back N wheels this week, for these reasons" is the most convincing evidence that the checks are real.

(Moved from wheelgap/tracker#128, rewritten for this repo.)

Where

  • scripts/gap_wheels.py: cmd_merge() writes the verify verdict per pair, cmd_stage() builds the lines table with each pair's reason (or staged), and select() adds the publish-time reasons.
  • .github/workflows/gap-wheels.yml: the publish job commits data/gap-wheels.json.
  • scripts/build_gap_index.py: human_page() builds the page, build() writes data/status.json.

What to do

  • First step: cmd_stage() also writes held.json next to staged.json: {"schema": 1, "batch": ..., "date": ..., "held": [{"name", "version", "target", "stage": "verify"|"stage", "reason"}]}. It's the trusted job's own output, like staged.json. Give each reason a short fixed code as well as the text (builds-differ, no-licence, no-wheel-built, needs-compiler, missing-library, no-recipe, ...), set where the reason is decided, never parsed back out of the sentence. A reason can quote file names from a wheel: keep them in a separate detail field and validate them (the code already limits member names with MEMBER).
  • The publish job merges it into data/gap-wheels-held.json in the repo: the latest result per (name, version, target), dropped when that pair is later published or its release leaves PyPI, capped (say 300 entries, newest first). It's committed in the same commit as data/gap-wheels.json. This step changes what the publish job writes, so describe it in the PR before the code and wait for a maintainer's answer.
  • build_gap_index.py adds a "Built but not published" section to the page, grouped by reason code, each with one plain sentence on what it means and what would fix it, and copies the file to data/held.json on the site.
  • Everything shown is escaped with html.escape, as the rest of the page is.
  • Later: link each held pair to the tracker's package page, and add held wheels to the Atom feed.

Done when:

  • Tests in tests/test_gap_wheels.py cover held.json's shape for each reason code and that a staged pair isn't in it.
  • Tests for the merge: a newer result replaces an older one, a published pair is dropped, the cap holds.
  • Tests in tests/test_gap_index.py cover the page section (grouping, escaping of a reason detail like <b>.so), a missing file (no section, no crash) and a malformed one.
  • tests/test_data.py validates the committed data/gap-wheels-held.json once it exists.
  • The README's "How a wheel gets here" says where held wheels are listed.
  • uvx --python 3.14 [email protected] passes, offline.
Lingua principale
Python
Stelle
0
Fork
1
Merge medio
5h 59m
PR unite (30g)
19

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di wheelgap/wheels

Tutte le issue di wheelgap/wheels

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.