Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/news-updater.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2020-12-09 23:04:27 +0300
committerDavid Runge <dave@sleepmap.de>2020-12-09 23:07:42 +0300
commit8abcb143ab12119441e80b855e735c766c7c984c (patch)
tree1ba67fd5888d495b0350050e9619801dde57d915
parent955b021bb31b0d44295080c6f669ca4536d0a8e5 (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.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 75d8a91..e267c5a 100644
--- a/setup.py
+++ b/setup.py
@@ -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'],