The current packaging excludes tests from the package source with exclude_packages = ('tests', ) in setup.py , however this oddly only removes tests/__init__.py . To declare that the tests are not part of the source, it needs to be exclude_packages = ('tests', 'tests.*').
And as this is a testing library, IMO it is very important that the test suite is included in the sdist, so tests should be added via MANIFEST.in, so that they are in the sdist, but not in the wheel.
The current packaging excludes
tests
from the package source withexclude_packages = ('tests', )
insetup.py
, however this oddly only removestests/__init__.py
. To declare that the tests are not part of the source, it needs to beexclude_packages = ('tests', 'tests.*')
.And as this is a testing library, IMO it is very important that the test suite is included in the sdist, so tests should be added via MANIFEST.in, so that they are in the sdist, but not in the wheel.