Skip to content

Commit

Permalink
Install only python_utils as package
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dvzrv committed Jan 15, 2021
1 parent f65dd4b commit 632a90d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -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'],
Expand Down

0 comments on commit 632a90d

Please sign in to comment.