From 632a90dfbf9195cb67ea9e8c7248b31ecf88af6d Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 15 Jan 2021 09:47:43 +0100 Subject: [PATCH] Install only python_utils as package 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 #11 [1] https://packaging.python.org/guides/distributing-packages-using-setuptools/#packages --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 791850e..1e7b746 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ description=about['__description__'], url=about['__url__'], license='BSD', - packages=setuptools.find_packages(), + packages=setuptools.find_packages(include=['python_utils']), long_description=long_description, install_requires=['six'], tests_require=['pytest'],