nextcloud / news-updater

:newspaper: Fast, parallel feed updater for the News app; written in Python
GNU General Public License v3.0
107 stars 24 forks source link

package installs tests top-level #30

Closed dvzrv closed 3 years ago

dvzrv commented 3 years ago

Hi! I package news-updater for Arch Linux. I realized, that the package installs the tests top-level to site-packages, due to find_packages() being called without any parameters:

https://github.com/nextcloud/news-updater/blob/955b021bb31b0d44295080c6f669ca4536d0a8e5/setup.py#L24

This is bound to lead to problems with other packages doing the same. It's usually better to not include the tests in the bdist/wheel package (but of course in the sdist package!), unless they are situated below the main packages scope (e.g. <my_package>/tests).