class documentation

class TestWithCExtension: (source)

View In Hierarchy

Undocumented

Method test_dont_skip_discovery_with_pyproject_metadata When opting-in to pyproject.toml metadata, auto-discovery will be active if the package lists C-extensions, but does not configure py-modules or packages.
Method test_skip_discovery_with_setupcfg_metadata Ensure that auto-discovery is not triggered when the project is based on C-extensions only, for backward compatibility.
Method _simulate_package_with_extension Undocumented
def test_dont_skip_discovery_with_pyproject_metadata(self, tmp_path): (source)

When opting-in to pyproject.toml metadata, auto-discovery will be active if the package lists C-extensions, but does not configure py-modules or packages. This way we ensure users with complex package layouts that would lead to the discovery of multiple top-level modules/packages see errors and are forced to explicitly set ``packages`` or ``py-modules``.

def test_skip_discovery_with_setupcfg_metadata(self, tmp_path): (source)

Ensure that auto-discovery is not triggered when the project is based on C-extensions only, for backward compatibility.

def _simulate_package_with_extension(self, tmp_path): (source)

Undocumented