Repository navigation
Add a static page per package and a sitemap - #22
Merged
Merged
Conversation
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]>
… description Co-Authored-By: Claude Opus 5.5 <[email protected]>
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:
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.) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3
What this changes
scripts/build_pages.pyreadsdata/coverage.jsonand writesp/<canonical-name>/index.htmlfor each package, plussitemap.xml(the main page and every package page). The publish job in.github/workflows/scan.ymlruns it into_siteafter 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 reusessite/style.css:<title>numpy wheel coverage: Linux, Alpine, macOS, Windows, ARM, Pyodide</title>and a<link rel="canonical">;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;n/awhere a target isn't scanned), rank, PyPI link, anduvx wheelgap <name>==<version> -p <python> -t all --explain;The lookup card in
site/app.jsgets a "Package page" link next to PyPI. Names go through the same PEP 503 canonicalisation and safe-name check asbuild_lookup.py, so no page path can escapep/.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; parsedsitemap.xmlandscan.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.