Closed jlumpe closed 1 month ago
Thanks for raising this. I agree that's strange.
@stolarczyk did you have a reason for adding the /tests
folder to the MANIFEST.in?
https://github.com/pepkit/peppy/blob/a8becea34be9d8947c43b445bc881855770679c5/MANIFEST.in#L5
I may have had a reason initially, but it's probably no longer valid. I second the suggestion for removal.
I don't think this is just a question of MANIFEST.in
, as these are modules and not just data files. Pretty sure the issue is setup.py L43, setuptools.find_packages()
will include tests/
as it contains an __init__.py
. I believe setuptools has default behavior to exclude common directories like tests/
, docs/
etc from package discovery but only if you don't provide values for any of the package discovery options. Solution would be to remove that line entirely or change to find_packages(exclude=['tests', 'tests.*'])
.
or, even better, just use packages=['peppy']
, since this will only ever hold a single package.
Thanks for pointing that out.
@nsheff or packages=['peppy', 'peppy.*']
if you have any subpackages (not sure why setuptools doesn't provide an easy way to combine those).
The
tests/
subdirectory is included in the package distribution and is installed to the user's site-packages directory: