class documentation

class TestDiscoverPackagesAndPyModules: (source)

View In Hierarchy

Make sure discovered values for ``packages`` and ``py_modules`` work similarly to explicit configuration for the simple scenarios.

Method test_flat_layout_with_dangerous_extra_files Undocumented
Method test_flat_layout_with_extra_files Undocumented
Method test_flat_layout_with_multiple_modules Undocumented
Method test_flat_layout_with_single_module Undocumented
Method test_project Undocumented
Method test_purposefully_empty Undocumented
Method test_py_modules_when_wheel_dir_is_cwd Regression for issue 3692
Method test_sdist_filelist Undocumented
Constant FILES Undocumented
Constant OPTIONS Undocumented
Constant PURPOSEFULLY_EMPY Undocumented
Method _get_info Undocumented
@pytest.mark.parametrize('extra_files', [['other/__init__.py'], ['other/finalize.py']])
def test_flat_layout_with_dangerous_extra_files(self, tmp_path, extra_files): (source)

Undocumented

@pytest.mark.parametrize('extra_files, pkgs', [(['venv/bin/simulate_venv'], set(['pkg'])), (['pkg-stubs/__init__.pyi'], set(['pkg', 'pkg-stubs'])), (['other-stubs/__init__.pyi'], set(['pkg', 'other-stubs'])), (['namespace-stubs/pkg/__init__.pyi'], set(['pkg', 'namespace-stubs', 'namespace-stubs.pkg'])), (['namespace-stubs/pkg-stubs/__init__.pyi'], set(['pkg', 'namespace-stubs'])), (['_hidden/file.py'], set(['pkg'])), (['news/finalize.py'], set(['pkg']))])
def test_flat_layout_with_extra_files(self, tmp_path, extra_files, pkgs): (source)

Undocumented

def test_flat_layout_with_multiple_modules(self, tmp_path): (source)

Undocumented

def test_flat_layout_with_single_module(self, tmp_path): (source)

Undocumented

@pytest.mark.parametrize('circumstance', OPTIONS.keys())
def test_project(self, tmp_path, circumstance): (source)

Undocumented

@pytest.mark.parametrize('config_file, param, circumstance', product(['setup.cfg', 'setup.py', 'pyproject.toml'], ['packages', 'py_modules'], FILES.keys()))
def test_purposefully_empty(self, tmp_path, config_file, param, circumstance): (source)

Undocumented

def test_py_modules_when_wheel_dir_is_cwd(self, tmp_path): (source)

Regression for issue 3692

@pytest.mark.parametrize('circumstance', OPTIONS.keys())
def test_sdist_filelist(self, tmp_path, circumstance): (source)

Undocumented

Undocumented

Value
{'src': ['src/pkg/__init__.py', 'src/pkg/main.py'],
 'lib': ['lib/pkg/__init__.py', 'lib/pkg/main.py'],
 'flat': ['pkg/__init__.py', 'pkg/main.py'],
 'single_module': ['pkg.py'],
 'namespace': ['ns/pkg/__init__.py']}

Undocumented

Value
{'explicit-src': {'package_dir': {'': 'src'}, 'packages': ['pkg']},
 'variation-lib': {'package_dir': {'': 'lib'}},
 'explicit-flat': {'packages': ['pkg']},
 'explicit-single_module': {'py_modules': ['pkg']},
 'explicit-namespace': {'packages': ['ns', 'ns.pkg']},
 'automatic-src': {},
 'automatic-flat': {},
...
PURPOSEFULLY_EMPY = (source)

Undocumented

Value
{'setup.cfg': DALS('''
            [metadata]
            name = myproj
            version = 0.0.0

            [options]
            {param} =
...
def _get_info(self, circumstance): (source)

Undocumented