Skip to content

Knowledge base v0: notes/ files, a checker, and a check on every PR #27

Closed

Description

@patrickballard

🗺️ Roadmap, Phase 2 (the knowledge base). This issue is one step of the wheelgap roadmap. The format question has been open in wheelgap discussion #109 with no proposals yet. This issue proposes a small v0 so we can start, and #109 stays open for changes to it.

Phase 2 is a knowledge base of what automation can't know: "use psycopg[binary] instead", "add libpq-dev to your image", "conda-forge has it", "upstream is tracking this in #123". The scan can say that a wheel is missing; notes say what to do about it.

The v0 format. One TOML file per package, notes/<normalized-name>.toml. TOML because tomllib is in the standard library, which keeps the tracker's scripts dependency-free.

[[note]]
platforms = ["musl-aarch64", "musl-x86_64"]  # wheelgap target names, or ["all"]
kind = "alternative"         # workaround | alternative | upstream-issue | other-source
text = "psycopg2 has no musllinux wheels. psycopg2-binary does: `pip install psycopg2-binary`."
links = ["https://www.psycopg.org/docs/install.html"]
versions = "<3"              # optional: shown only while the latest release matches
updated = 2026-11-11

A note stops showing once it's stale. That happens when versions no longer matches the latest release, or when the scan shows a wheel on every platform the note lists, so most notes retire themselves.

What to do

  • notes/README.md with the format above, field by field, and two or three real example notes: notes/psycopg2.toml, plus packages from most-wanted.json.
  • scripts/check_notes.py, standard library only, in the style of scripts/check_scan.py, failing with a clear message per problem:
    • each file parses;
    • the file name is a normalized package name;
    • kind is one of the four values;
    • platforms are known target platforms (read them from data/coverage.json's targets) or all;
    • text is non-empty and under 500 characters;
    • links are https;
    • updated is a date.
  • A workflow that runs it on pull requests touching notes/**. If Tests for scripts/ and a check that runs on every PR #16's PR check has landed, add it there instead.
  • Tests for the checker under tests/, like tests/test_most_wanted.py.

Showing notes in the data and on the site is the next issue. This one is the format and the checker only.

Activity

  1. added
    enhancement
    help wanted
    roadmap
    on Nov 11, 2026
  2. added a commit that references this issue on Nov 11, 2026
    ae6bb26
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

    enhancementhelp wantedroadmap

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions