Skip to content

Exclude testapp submodules from built packages #365

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

PeterJCLaw
Copy link
Contributor

The controls in MANIFEST.in are unfortunately neither necessary nor sufficient to control the inclusion of files from the testapp directory in wheels built from the original source. Those are instead controlled by the packages listed in setup.py, as found by find_packages.

It is unclear to me why find_packages requires explicitly excluding both 'testapp' and 'testapp*' (either spelling on its own isn't sufficient to exclude both files in the testapp folder as well as those within subfolders), however from testing this combination has the desired effect.

Tested by manually installing locally built source and wheel distribution packages and verifying what files were included within site-pacakges.

Fixes #359

The controls in `MANIFEST.in` are unfortunately neither necessary
nor sufficient to control the inclusion of files from the 'testapp'
directory in wheels built from the original source. Those are
instead controlled by the packages listed in `setup.py`, as found
by `find_packages`.

It is unclear to me why `find_packages` requires explicitly excluding
both 'testapp' and 'testapp*' (either spelling on its own isn't
sufficient to exclude both files in the 'testapp' folder as well
as those within subfolders), however from testing this combination
has the desired effect.

In theory this commit could remove the exclusion from `MANIFEST.in`,
allowing the test files to be included in the source distribution
now that they are fully excluded from the installed files, however
it is the maintainer's preference that the files also be completely
excluded from the source distribution too, so that is left unchanged.

Tested by manually installing locally built source and wheel
distribution packages and verifying what files were included within
'site-pacakges'.

Fixes jrief#359
@jrief jrief merged commit 98f463a into jrief:master Jul 25, 2023
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.

Don't install testapp and its child modules
2 participants