The current setup.py for the Python SDK is misconfigured, as it is using find_packages() while the test folder is a proper package with an __init__.py. The safest thing to do is to switch to a src/ layout, but you can also mitigate the problem by using a whitelist of included top-level packages in your find_packages.
You may want to add some kind of test to your CI or release process to ensure that you don't end up installing a package called test or tests as well.
The current
setup.pyfor the Python SDK is misconfigured, as it is usingfind_packages()while thetestfolder is a proper package with an__init__.py. The safest thing to do is to switch to asrc/layout, but you can also mitigate the problem by using a whitelist of included top-level packages in yourfind_packages.You may want to add some kind of test to your CI or release process to ensure that you don't end up installing a package called
testortestsas well.