Skip to content

Citry UI wheel check: derive the shipped-file list from the source tree #416

Closed

Description

@JuroOravec

Problem

packages/py/citry_ui/citry_ui/quality/qualify_wheel.py keeps EXPECTED_RUNTIME_FILES, a hand-written list of every file the Citry UI wheel ships. Each new module has to be added to it. When someone forgets, test_runtime_boundary_matches_every_shipped_python_module turns main red. #406 did exactly that with components/_reveal.py, fixed in the PR that adds it to the list.

The other packages' distribution checks build their expected file set from the source tree instead: scripts/verify_citry_distribution.py, verify_citry_lsp_distribution.py, and verify_pygments_citry_distribution.py all walk SOURCE_ROOT.rglob("*"). Citry UI is the only package with a hand-kept list.

Proposal

Build the expected set the way the boundary test already does:

  • every *.py under citry_ui/ outside quality/, snippets/, tests/, and tools/;
  • every *.min.css and *.min.js;
  • py.typed;
  • plus the citry_ui_i18n files.

Then compare it with the built wheel. The check would still catch a packaging rule that drops or adds a file. It would no longer need an edit for each new module.

The case to decide first: the qualifier says it inspects a wheel "without importing the source checkout". If it ever runs where the checkout is absent (a downloaded wheel), the source-derived set must be computed in CI and passed in, or the qualifier must fall back to the wheel's own RECORD.

Until then, the boundary test names each missing file and the list to edit.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions