module documentation

Undocumented

Class TestClassifiers Undocumented
Class TestEntryPoints Undocumented
Class TestSkipBadConfig Undocumented
Function create_example Undocumented
Function test_discovered_package_dir_with_attr_directive_in_config Undocumented
Function test_empty Undocumented
Function test_ignore_unrelated_config Undocumented
Function test_include_package_data_by_default Builds with ``pyproject.toml`` should consider ``include-package-data=True`` as default.
Function test_include_package_data_in_setuppy Builds with ``pyproject.toml`` should consider ``include_package_data`` set in ``setup.py``.
Function test_invalid_example Undocumented
Function test_read_configuration Undocumented
Function verify_example Undocumented
Constant ENTRY_POINTS Undocumented
Constant EXAMPLE Undocumented
def create_example(path, pkg_root): (source)

Undocumented

@pytest.mark.parametrize('pkg_root, opts', [('.', {}), ('src', {}), ('lib', {'packages': {'find': {'where': ['lib']}}})])
def test_discovered_package_dir_with_attr_directive_in_config(tmp_path, pkg_root, opts): (source)

Undocumented

@pytest.mark.parametrize('config', ('', '[tool.something]\nvalue = 42'))
def test_empty(tmp_path, config): (source)

Undocumented

@pytest.mark.parametrize('example', ('\n [project]\n name = "myproj"\n version = "1.2"\n\n [my-tool.that-disrespect.pep518]\n value = 42\n '))
def test_ignore_unrelated_config(tmp_path, example): (source)

Undocumented

@pytest.mark.parametrize('config', ('[project]\nname = \'myproj\'\nversion=\'42\'\n'))
def test_include_package_data_by_default(tmp_path, config): (source)

Builds with ``pyproject.toml`` should consider ``include-package-data=True`` as default.

def test_include_package_data_in_setuppy(tmp_path): (source)

Builds with ``pyproject.toml`` should consider ``include_package_data`` set in ``setup.py``. See https://github.com/pypa/setuptools/issues/3197#issuecomment-1079023889

@pytest.mark.parametrize('example, error_msg', [('\n [project]\n name = "myproj"\n version = "1.2"\n requires = [\'pywin32; platform_system=="Windows"\' ]\n ', 'configuration error: .project. must not contain ..requires.. properties')])
def test_invalid_example(tmp_path, example, error_msg): (source)

Undocumented

def test_read_configuration(tmp_path): (source)

Undocumented

def verify_example(config, path, pkg_root): (source)

Undocumented

ENTRY_POINTS: dict = (source)

Undocumented

Value
{'console_scripts': {'a': 'mod.a:func'},
 'gui_scripts': {'b': 'mod.b:func'},
 'other': {'c': 'mod.c:func [extra]'}}

Undocumented

Value
'''
[project]
name = "myproj"
keywords = ["some", "key", "words"]
dynamic = ["version", "readme"]
requires-python = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
dependencies = [
...