Exclude tests from being installed

setup.py:
Add the `exclude` parameter to `find_packages()` to exclude the `tests/`
directory and its subdirectories.
The `tests/` directory would otherwise be installed top-level to site-packages
and conflict with other packages with the same defect.

Fixes #30

Signed-off-by: David Runge <dave@sleepmap.de>
This commit is contained in:
David Runge
2020-12-09 21:04:27 +01:00
parent 955b021bb3
commit 8abcb143ab

View File

@@ -21,7 +21,9 @@ setup(
author='Bernhard Posselt',
author_email='dev@bernhard-posselt.com',
url='https://github.com/nextcloud/news-updater',
packages=find_packages(),
packages=find_packages(
exclude=['tests', 'tests.*'],
),
include_package_data=True,
license='GPL',
keywords=['nextcloud', 'news', 'updater', 'RSS', 'Atom', 'feed', 'reader'],