mindflayer / python-mocket

a socket mock framework - for all kinds of socket animals, web-clients included
BSD 3-Clause "New" or "Revised" License
284 stars 43 forks source link

sdist doesnt include __init__.py #100

Closed jayvdb closed 5 years ago

jayvdb commented 5 years ago

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.