Skip to content

Package pages: recent wheel changes from changes.json #115

Closed

Description

@patrickballard

data/changes.json records, every night, which packages gained or lost a wheel on which target (scripts/update_changes.py). The home page's pulse card shows the latest nights in aggregate. A package's own page doesn't say anything about its history, though "did numpy just add Windows ARM64 wheels?" is a common question, and a dated line like "gained a wheel for Windows ARM64 on 12 Nov" is the kind of fresh content search snippets like.

build() in scripts/build_pages.py already loads changes.json (for campaigns), so this needs no new data.

What to do

  • Pass each package's entries from changes.json into page() and add a short "Recent changes" list under the matrix: date, target (as PLATFORM_NAMES and the Python), and gained or lost, newest first, at most ten.
  • Say how far back the log goes (90 days, KEEP_DAYS in update_changes.py), so "no changes" isn't read as "never changed".
  • Leave the section out when there's nothing to show.
  • Escape everything with html.escape.
  • Tests: a gained and a lost entry render in order, another package's entries don't appear, and an empty log gives no section.
  • README: one line under "Package pages".

#75 (dropped platforms, PR #109) is about drops across releases with its own page and feed. This is the per-package view of changes.json and doesn't depend on it.

Activity

  1. added
    enhancement
    good first issue
    on Nov 16, 2026
  2. dianatofficial commented on Nov 17, 2026

    @dianatofficial
    Contributor

    Hi @patrickballard, I'd love to work on this!

    Planned approach:

    1. Load and index changes in scripts/build_pages.py:
      • In �uild(), load changes.json (or empty list if missing) and group/index entries by canonical package name.
      • Pass the package's change entries to page().
    2. Render "Recent changes" section:
      • Add changes_html(entries: list[dict]) -> str:
        • Omit the section entirely when there are no entries for the package.
        • Order entries newest first, capped at 10 items.
        • Format each item with date, target formatted as {PLATFORM_NAMES[platform]}, Python {python} (or equivalent), and action (gained a wheel / lost a wheel).
        • Include a note stating the log covers the last 90 days (KEEP_DAYS).
        • Strict html.escape on all dynamic values.
        • Render under the matrix in the page markup.
    3. Tests & Docs:
      • Add tests covering gained/lost order, capping at 10, package isolation, and omission when empty.
      • Add a brief line to README.md under "Package pages".
  3. patrickballard commented on Nov 17, 2026

    @patrickballard
    ContributorAuthor

    Go for it, @dianatofficial! I've assigned this to you. The plan looks right, especially omitting the section when a package has no entries and escaping every value.

    Assignments hold for 18 hours: open a PR (a draft is fine) by 00:14 UTC on 18 Nov to keep it. If there's no PR by then, the issue opens up again and the first PR to arrive is the one we merge.

    (Reply assisted by Claude.)

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

Metadata

Metadata

Labels

enhancementgood first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions