setup.py includes all packages (containing an init.py) using find_packages(). This is a problem because it will include the tests directory as a top level importable module in the local app, breaking our own tests that happen to live in a directory with the same name.
Steps to Reproduce
pip install python-http-client
ls /usr/local/lib/python3.7/site-packages/ and observe tests is there as a top level importable package
import tests from local app will import python-http-client's tests, not the app's tests
Either init.py should be excluded from the package data, or (rather) the entire tests directory.
Issue Summary
setup.py includes all packages (containing an init.py) using find_packages(). This is a problem because it will include the
tests
directory as a top level importable module in the local app, breaking our own tests that happen to live in a directory with the same name.Steps to Reproduce
pip install python-http-client
ls /usr/local/lib/python3.7/site-packages/
and observetests
is there as a top level importable packageimport tests
from local app will import python-http-client's tests, not the app's testsEither init.py should be excluded from the package data, or (rather) the entire tests directory.
Technical details: