Gap wheels page: show how often each wheel has been downloaded
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 72/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- github, github-actions, python
- Ambito
- ci-cd, documentation, tooling
Direzione di ricerca
Start with scripts/build_gap_index.py (human_page(), build()) and tests/test_gap_index.py (assert_status_matches_index). Read the 'Build the index and page' step in .github/workflows/pages.yml, then add a read-only gh api fetch whose failure cannot break the deploy. Implement optional --downloads, the Downloads column/total, and status.json counts only when present; update the README. Done means uvx --python 3.14 [email protected] passes offline with tests for counts, a missing wheel, no flag and malformed input.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
The page lists 47 wheels and gives no sign of whether anyone uses them. GitHub counts downloads of every release asset: download_count for each file in GET /repos/wheelgap/wheels/releases/tags/gap-wheels. pip and uv fetch the wheels from those release URLs, so the number is real installs (plus CI caches missing).
For a visitor deciding whether to trust an unofficial wheel, "installed 1,240 times, no problem reported" is evidence nothing else on the page gives. For us it says which packages to keep building for each new release.
(Moved from wheelgap/tracker#134, rewritten for this repo.)
Where
.github/workflows/pages.yml: the "Build the index and page" step runsscripts/build_gap_index.py. It hascontents: readand no token in its environment today.scripts/build_gap_index.py:human_page()builds the table (columns Package, Version, Target, Verified, Builds, File, Install, Status) and the "N so far" line;build()writesdata/status.json.
What to do
- In
pages.yml, before the build, fetch the release's assets with the job's read-only token (gh api --paginate "repos/$GITHUB_REPOSITORY/releases/tags/gap-wheels" --jq '[.assets[] | {name, download_count}]') into a file. If the call fails, write nothing and carry on: the hourly index must never wait on this. - Give
build_gap_index.pyan optional--downloads PATH. Read it defensively: a list of{name: str, download_count: int >= 0}, names that match the wheel pattern, a size limit; anything else is a::warning::and no counts. - With counts: a "Downloads" column, and a total in the intro line ("47 so far, downloaded 3,120 times"). A wheel with no count shows an empty cell, not 0. Without the file the page is byte-for-byte what it is now.
- Add
downloadsto each wheel indata/status.jsonwhen known, and say in the README's "Machine-readable status" paragraph what it counts (release asset downloads since publication, GitHub's number). - Say on the page what the number is in a few words. It isn't unique users.
- Later: downloads in the last 7 days (needs yesterday's numbers kept somewhere).
Done when:
- Tests in
tests/test_gap_index.pycover: with counts (column, total, thousands separator), a wheel missing from the counts, no--downloads(no column; existing tests unchanged), and a malformed file (warning, no column, exit 0). - The test that compares
status.jsonwith the simple index (assert_status_matches_index) still passes with the new field. - The workflow step can't fail the deploy: the PR shows the step's shell with the fallback.
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di wheelgap/wheels
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement help wanted
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
I maintainer di solito rispondono entro 1 giorno
-
bug help wanted
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di wheelgap/wheels
Issue simili
-
bug game: 0100FF500E34A000 game: 0400FF500E34A001 mac packing
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
jxxghp/MoviePilot#7576 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
jbaruch/software-factory#266 ·
I maintainer di solito rispondono entro 1 giorno
-
cron: raise a distinct error when next_fire finds no match in its search bound (from #813 item 5)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno