Skip to content
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

do not install tests/ and util/ packages #4206

Closed

Conversation

ltalirz
Copy link
Member

@ltalirz ltalirz commented Jun 29, 2020

The previous generic "find_packages()" call in setup.py would also
catch the tests/ and utils/ subfolders, installing them into the user's
python environment. This not only affected installs from github, but
also source releases on PyPI.

The previous generic "find_packages()" call in setup.py  would also
catch the tests/ and utils/ subfolders, installing them into the user's
python environment.  This not only affected installs from github, but
also source releases on PyPI.
@ltalirz
Copy link
Member Author

ltalirz commented Jun 29, 2020

@sphuber This should go into the 1.3.0 release - let me know whether this means I should make the PR against a different branch

@ltalirz ltalirz added this to the v1.3.0 milestone Jun 29, 2020
@ltalirz
Copy link
Member Author

ltalirz commented Jun 29, 2020

This is something to keep track of for a next plugin developer meeting - I believe many plugins (certainly earlier ones templated via the cookiecutter) are making this mistake.

@greschd
Copy link
Member

greschd commented Jun 29, 2020

Heh, see #4204. AFAICT the change is exactly the same, so doesn't matter which one we merge.

@greschd
Copy link
Member

greschd commented Jun 29, 2020

Note that this is a problem only if the other packages contain an __init__.py - so some plugin packages may not be affected (but it's still better to limit explicitly, of course).

@ltalirz
Copy link
Member Author

ltalirz commented Jun 29, 2020

hehe ;-) Sorry - I just checked on the issue tracker, not in the PRs.

@ltalirz ltalirz closed this Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants