Skip to content

Keep docs and test fixtures out of wheels - #177

Open
tamird wants to merge 1 commit into
RonnyPfannschmidt:mainfrom
tamird:codex/prance-wheel-package-discovery
Open

tamird wants to merge 1 commit into
RonnyPfannschmidt:mainfrom
tamird:codex/prance-wheel-package-discovery

Conversation

@tamird

@tamird tamird commented Nov 10, 2026

Copy link
Copy Markdown

Prance 26.7.19.0 shipped 49 test specifications and seven documentation images that occupied 8.9 MiB when unpacked. The preceding wheel included neither directory. 1 2

The move from find: to pyproject.toml in 0dfdbfb enabled setuptools’ implicit namespace discovery. Disabling it will keep the wheel limited to the Prance packages while preserving the fixtures and images in the source distribution.

I built both versions from their source distributions with python -m build. On main the wheel shrank from 2.82 MB to 42 kB. It retained all 14 package files and the CLI entry point. I installed the new wheel and validated an OpenAPI 3.0.3 document with ResolvingParser.

Prepared by Codex for Tamir Duberstein.

The move to pyproject.toml in 0dfdbfb enabled setuptools' default
namespace discovery. The 26.7.19.0 wheel then included documentation
artwork and test specifications that added 8.9 MiB when unpacked.

Restore the earlier discovery of regular packages. The source archive
will continue to include the documentation and fixtures.

This branch has not been deployed

No deployments
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.

1 participant