module documentation

Undocumented

Function test_check_package_data Undocumented
Function test_check_specifier Undocumented
Function test_dist__get_unpatched_deprecated Undocumented
Function test_dist_default_name Make sure dist.name is discovered from packages/py_modules
Function test_dist_default_packages Undocumented
Function test_dist_default_py_modules Undocumented
Function test_dist_fetch_build_egg Check multiple calls to `Distribution.fetch_build_egg` work as expected.
Function test_maintainer_author Undocumented
Function test_metadata_name Undocumented
Function test_provides_extras_deterministic_order Undocumented
Function test_read_metadata Undocumented
Function test_rfc822_unescape Undocumented
Constant CHECK_PACKAGE_DATA_TESTS Undocumented
Constant EXAMPLE_BASE_INFO Undocumented
Function __maintainer_test_cases Undocumented
Function __read_test_cases Undocumented
@pytest.mark.parametrize('package_data, expected_message', CHECK_PACKAGE_DATA_TESTS)
def test_check_package_data(package_data, expected_message): (source)

Undocumented

def test_check_specifier(): (source)

Undocumented

def test_dist__get_unpatched_deprecated(): (source)

Undocumented

@pytest.mark.parametrize('dist_name, package_dir, package_files', [('my.pkg.nested', None, ['my/pkg/nested/__init__.py']), ('my.pkg', None, ['my/pkg/__init__.py', 'my/pkg/file.py']), ('my_pkg', None, ['my_pkg.py']), ('my_pkg', None, ['my_pkg/__init__.py', 'my_pkg/nested/__init__.py']), ('my_pkg', None, ['src/my_pkg/__init__.py', 'src/my_pkg/nested/__init__.py']), ('my_pkg', {'my_pkg': 'lib', 'my_pkg.lib2': 'lib2'}, ['lib/__init__.py', 'lib/nested/__init__.pyt', 'lib2/__init__.py']), ('UNKNOWN', None, ['src/mod1.py', 'src/mod2.py']), ('UNKNOWN', None, ['src/pkg1/__ini__.py', 'src/pkg2/__init__.py'])])
def test_dist_default_name(tmp_path, dist_name, package_dir, package_files): (source)

Make sure dist.name is discovered from packages/py_modules

@pytest.mark.parametrize('dist_name, package_dir, package_files, packages', [('my.pkg', None, ['my_pkg/__init__.py', 'my_pkg/mod.py'], ['my_pkg']), ('my-pkg', None, ['my_pkg/__init__.py', 'my_pkg/mod.py'], ['my_pkg']), ('my_pkg', None, ['my_pkg/__init__.py', 'my_pkg/mod.py'], ['my_pkg']), ('my.pkg', None, ['my/pkg/__init__.py'], ['my', 'my.pkg']), ('my_pkg', None, ['src/my_pkg/__init__.py', 'src/my_pkg2/__init__.py'], ['my_pkg', 'my_pkg2']), ('my_pkg', {'pkg': 'lib', 'pkg2': 'lib2'}, ['lib/__init__.py', 'lib/nested/__init__.pyt', 'lib2/__init__.py'], ['pkg', 'pkg.nested', 'pkg2'])])
def test_dist_default_packages(tmp_path, dist_name, package_dir, package_files, packages): (source)

Undocumented

@pytest.mark.parametrize('dist_name, py_module', [('my.pkg', 'my_pkg'), ('my-pkg', 'my_pkg'), ('my_pkg', 'my_pkg'), ('pkg', 'pkg')])
def test_dist_default_py_modules(tmp_path, dist_name, py_module): (source)

Undocumented

def test_dist_fetch_build_egg(tmpdir): (source)

Check multiple calls to `Distribution.fetch_build_egg` work as expected.

@pytest.mark.parametrize('name,attrs', __maintainer_test_cases())
def test_maintainer_author(name, attrs, tmpdir): (source)

Undocumented

def test_metadata_name(): (source)

Undocumented

def test_provides_extras_deterministic_order(): (source)

Undocumented

@pytest.mark.parametrize('name,attrs', __read_test_cases())
def test_read_metadata(name, attrs): (source)

Undocumented

@pytest.mark.parametrize('content, result', (pytest.param('Just a single line', None, id='single_line'), pytest.param('Multiline\nText\nwithout\nextra indents\n', None, id='multiline'), pytest.param('Multiline\n With\n\nadditional\n indentation', None, id='multiline_with_indentation'), pytest.param(' Leading whitespace', 'Leading whitespace', id='remove_leading_whitespace'), pytest.param(' Leading whitespace\nIn\n Multiline comment', 'Leading whitespace\nIn\n Multiline comment', id='remove_leading_whitespace_multiline')))
def test_rfc822_unescape(content, result): (source)

Undocumented

CHECK_PACKAGE_DATA_TESTS = (source)

Undocumented

Value
(({'': ['*.txt', '*.rst'], 'hello': ['*.msg']}, None),
 ((('', ['*.txt', '*.rst']), ('hello', ['*.msg'])),
  '\'package_data\' must be a dictionary mapping package names to lists of strin
g wildcard patterns'),
 ({400: ['*.txt', '*.rst']},
  'keys of \'package_data\' dict must be strings (got 400)'),
 ({'hello': str('*.msg')}, '"values of \'package_data\' dict" must be a list of 
...
EXAMPLE_BASE_INFO = (source)

Undocumented

Value
dict(name='package',
     version='0.0.1',
     author='Foo Bar',
     author_email='foo@bar.net',
     long_description='''Long
description''',
     description='Short description',
...
def __maintainer_test_cases(): (source)

Undocumented

def __read_test_cases(): (source)

Undocumented