module documentation

Undocumented

Function test_directories_in_package_data_glob Directories matching the glob in package_data should not be included in the package data.
Function test_excluded_subpackages Undocumented
Function test_executable_data Ensure executable bit is preserved in copy for package data, as users rely on it for scripts.
Function test_existing_egg_info When provided with the ``existing_egg_info_dir`` attribute, build_py should not attempt to run egg_info again.
Function test_get_outputs Undocumented
Function test_read_only Ensure read-only flag is not preserved in copy for package modules and package data, as that causes problems with deleting read-only files on Windows.
Function test_recursive_in_package_data_glob Files matching recursive globs (**) in package_data should be included in the package data.
Constant EXAMPLE_ARBITRARY_MAPPING Undocumented
Constant EXAMPLE_WITH_MANIFEST Undocumented
def test_directories_in_package_data_glob(tmpdir_cwd): (source)

Directories matching the glob in package_data should not be included in the package data. Regression test for #261.

def test_excluded_subpackages(tmpdir_cwd): (source)

Undocumented

@pytest.mark.xfail('platform.system() == "Windows"', reason='On Windows, files do not have executable bits', raises=AssertionError, strict=True)
def test_executable_data(tmpdir_cwd): (source)

Ensure executable bit is preserved in copy for package data, as users rely on it for scripts. #2041

@pytest.mark.filterwarnings('ignore::setuptools.SetuptoolsDeprecationWarning')
def test_existing_egg_info(tmpdir_cwd, monkeypatch): (source)

When provided with the ``existing_egg_info_dir`` attribute, build_py should not attempt to run egg_info again.

def test_get_outputs(tmpdir_cwd): (source)

Undocumented

def test_read_only(tmpdir_cwd): (source)

Ensure read-only flag is not preserved in copy for package modules and package data, as that causes problems with deleting read-only files on Windows. #1451

def test_recursive_in_package_data_glob(tmpdir_cwd): (source)

Files matching recursive globs (**) in package_data should be included in the package data. #1806

EXAMPLE_ARBITRARY_MAPPING = (source)

Undocumented

Value
{'pyproject.toml': DALS('''
        [project]
        name = "mypkg"
        version = "42"

        [tool.setuptools]
        packages = ["mypkg", "mypkg.sub1", "mypkg.sub2", "mypkg.sub2.nested"]
...
EXAMPLE_WITH_MANIFEST = (source)

Undocumented

Value
{'setup.cfg': DALS('''
        [metadata]
        name = mypkg
        version = 42

        [options]
        include_package_data = True
...