-
Notifications
You must be signed in to change notification settings - Fork 37
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
2.5.0: Installs tests into top-level directory #11
Comments
setup.py: Provide an include list for `setuptools.find_packages()` [1], which is called within `setuptools.setup()`'s `packages` parameter. This prevents the tests being picked up as a package and installed top-level in the site-packages directory (conflicting with other packages, that also make this mistake). Fixes wolph#11 [1] https://packaging.python.org/guides/distributing-packages-using-setuptools/#packages
Thank you for the help. I've created a new release :) |
@wolph I noticed this issue as well. I tried to upgrade to 2.5.1 but I'm having the same issue. From
Downgrading to 2.4.0 solved the issue in the short term for me. |
I'm not entirely sure what is causing this honestly... I tried modifying the So I went for the nuclear option which should be acceptable for everyone. I renamed the |
renamed tests to fix #11 properly v2.5.2 # gpg: Signature made Thu Jan 21 04:17:08 2021 CET # gpg: using RSA key 149325FD15904E9C4EB89E95E81444E9CE1F695D # gpg: Good signature from "Rick van Hattem <wolph@wol.ph>" [ultimate] # gpg: aka "[jpeg image of size 9662]" [ultimate]
FWIW: The package on Arch Linux is at 2.5.1 and does not exhibit that behavior: |
Hi! I package python-utils for Arch Linux.
When packaging 2.5.0, I noticed, that now the tests are installed top-level into the site-packages directory. This is a problem, because it will conflict with other packages (it happens from time to time, that packages accidentally install tests globally).
To fix this, the packages parameter for setuptools' setup() needs to be specified in such a way, that it only installs the contents of the utils, but not that of the tests.
The text was updated successfully, but these errors were encountered: