Skip to content

Python wheel installs a top-level package called "test" #2888

@pganssle

Description

@pganssle

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.

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions