Skip to content

Add a static page per package and a sitemap - #22

Merged
patrickballard merged 3 commits into
wheelgap:mainfrom
sarankumar1325:package-pages
Nov 11, 2026
Merged

patrickballard merged 3 commits into
wheelgap:mainfrom
sarankumar1325:package-pages

Conversation

@sarankumar1325

Copy link
Copy Markdown
Contributor

Closes #3

What this changes

scripts/build_pages.py reads data/coverage.json and writes p/<canonical-name>/index.html for each package, plus sitemap.xml (the main page and every package page). The publish job in .github/workflows/scan.yml runs it into _site after the badges step; nothing is committed.

Each page is plain HTML (no JavaScript; the CSP is the main page's without script-src/connect-src) and reuses site/style.css:

  • <title>numpy wheel coverage: Linux, Alpine, macOS, Windows, ARM, Pyodide</title> and a <link rel="canonical">;
  • a meta description summarising the gaps for the newest non-free-threaded Python in the scan (the same Python the badges use), e.g. orjson 3.13.0 has a prebuilt wheel for 6 of 8 platforms on Python 3.15; builds from source on Linux x86_64 and Linux ARM64. Pure-Python packages and failed lookups get their own sentence;
  • the lookup card's status table (every platform × Python, n/a where a target isn't scanned), rank, PyPI link, and uvx wheelgap <name>==<version> -p <python> -t all --explain;
  • links back to the main page.

The lookup card in site/app.js gets a "Package page" link next to PyPI. Names go through the same PEP 503 canonicalisation and safe-name check as build_lookup.py, so no page path can escape p/.

Timing on the current data/coverage.json (5,000 packages): about 1 s, 22 MB of pages. A README section describes the pages and the sitemap.

Checked: ran the script into a copy of site/ and looked at numpy, orjson, psycopg2 and requests pages; parsed sitemap.xml and scan.yml; node --check site/app.js.

AI tools used (if any): An AI assistant helped write the script. I reviewed the output pages against the lookup card and ran it on the real scan data.

sarankumar1325 and others added 3 commits November 11, 2026 06:33
scripts/build_pages.py writes p/<name>/index.html from coverage.json at
publish time, with a title and meta description search engines can use,
the lookup's status table and the wheelgap --explain command. A sitemap
lists every page, and the lookup card links to its package page.

Closes wheelgap#3
…te-only scan line

default-src 'none' since the pages load no scripts. The description counts
the native platforms, as the badge does, so the two agree if the newest
Python gains a Pyodide target. A set for the seen names.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@patrickballard

Copy link
Copy Markdown
Contributor

Thanks, @sarankumar1325! Merged. The pages hold up on every shape in the real data: the error package with no version, pure packages, and the newest Python having no Pyodide target.

I pushed two small changes first:

  • Summary: the one-line gap summary now shows on the page under the heading, not only in the meta description, so the README is accurate.
  • CSP and count: the CSP is default-src 'none', since the pages load no scripts. The summary counts native platforms, as the badge does, so the two give the same number. The scan date shows as the day only.

If you'd like another one, tracker #18 (record which packages gained or lost a wheel each night) is open and unclaimed.

(Review assisted by Claude.)

@patrickballard
patrickballard merged commit 312e1f6 into wheelgap:main Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A page per package (titles, descriptions, sitemap)

2 participants