Exclude all tests when discovering packages

As per the example here:
https://setuptools.readthedocs.io/en/latest/setuptools.html#using-find-packages
This commit is contained in:
Scott Lowe
2019-03-27 17:27:32 -03:00
parent 1ff577e9a5
commit dd96c0ed7a
+1 -1
View File
@@ -103,7 +103,7 @@ setup(
author_email=EMAIL,
python_requires=REQUIRES_PYTHON,
url=URL,
packages=find_packages(exclude=('tests',)),
packages=find_packages(exclude=["tests", "*.tests", "*.tests.*", "tests.*"]),
# If your package is a single module, use this instead of 'packages':
# py_modules=['mypackage'],