Skip to content

Package pages: say when a gap wheel is available for a source or missing cell #126

Closed

Description

@patrickballard

Updated 2026-11-16: the gap wheels moved to wheelgap/wheels (tracker#135). Their data is now at https://wheelgap.github.io/wheels/data/gap-wheels.json, and the index is https://wheelgap.github.io/wheels/simple/. The steps below use the new addresses.

When a package page (/p/<name>/) shows source or missing for a target that has a published gap wheel for that exact release, the page should say so, with the command to install it:

source · a gap wheel is available: pip install --extra-index-url https://wheelgap.github.io/wheels/simple/ tokenizers==0.23.3

Right now someone landing on the tokenizers page sees the gap, but not that it's already filled.

What to do

  • scripts/build_pages.py takes the path of the gap wheels JSON as an optional argument. In scan.yml's deploy step, the file is already downloaded to $RUNNER_TEMP/gap-wheels.json before build_gap_index.py runs: move that download above the build_pages.py line and pass the path. If the file is missing or malformed, the pages build as they do now. Match an entry to a cell only when the canonical name, the version and the target label are all equal.
  • Show it under the cell (the <small class="bver"> line the build lab verdict uses) and once in a short section linking to https://wheelgap.github.io/wheels/.
  • Escape everything, as the rest of the page does.
  • Tests: a matching entry shows on its cell; another version, another target or a malformed file shows nothing.

Activity

  1. added
    enhancement
    good first issue
    high impact
    on Nov 16, 2026
  2. AdityaSreevatsaK commented on Nov 17, 2026

    @AdityaSreevatsaK
    Contributor

    Hey @patrickballard,

    I've raised PR #139 to display published gap-wheel availability on package pages.

    It matches the exact package, version and target, and handles missing or malformed index data gracefully. Tests were added, and fork CI passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issuehigh impact

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions