We need a test to ensure that setup.py is capturing all the modules.
In #561 we ended up shipping a pypi version that didn't have a module deepforest.models. This is because it existed in the git repo and so passed all the tests, but wasn't properly passing. Is there a way to mock setup.py to create a tarball and then check if all the modules are in the tarball?
The key line is https://github.com/weecology/DeepForest/blob/450e051ef41f1812a64be72302d662c952d1d0fc/setup.py#L53
Just came across this recommendation for directory structure to avoid this sort of issue: https://www.pyopensci.org/python-package-guide/package-structure-code/python-package-structure.html#the-src-layout-and-testing
Fixed by moving to a src directory structure