diff options
author | David Runge <dave@sleepmap.de> | 2020-12-09 23:04:27 +0300 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2020-12-09 23:07:42 +0300 |
commit | 8abcb143ab12119441e80b855e735c766c7c984c (patch) | |
tree | 1ba67fd5888d495b0350050e9619801dde57d915 | |
parent | 955b021bb31b0d44295080c6f669ca4536d0a8e5 (diff) |
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>
-rw-r--r-- | setup.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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'], |