module documentation

Undocumented

Class Distribution Distribution with support for tests and package data
Exception DistDeprecationWarning Class for warning about deprecations in dist in setuptools. Not ignored by default, unlike DeprecationWarning.
Function assert_bool Verify that value is True, False, 0, or 1
Function assert_string_list Verify that value is a string list
Function check_entry_points Verify that entry_points map is parseable
Function check_extras Verify that extras_require mapping is valid
Function check_importable Undocumented
Function check_nsp Verify that namespace packages are valid
Function check_package_data Verify that value is a dictionary of package names to glob lists
Function check_packages Undocumented
Function check_requirements Verify that install_requires is a valid requirements list
Function check_specifier Verify that value is a valid version specifier
Function check_test_suite Undocumented
Function get_metadata_version Undocumented
Function invalid_unless_false Undocumented
Function read_pkg_file Reads the metadata values from a file object.
Function rfc822_unescape Reverse RFC-822 escaping by removing leading whitespaces from content.
Function single_line Quick and dirty validation for Summary pypa/setuptools#1390.
Function write_pkg_file Write the PKG-INFO format data to a file object.
Variable sequence Undocumented
Function _check_extra Undocumented
Function _check_marker Undocumented
Function _get_unpatched Undocumented
Function _read_field_from_msg Read Message header field.
Function _read_field_unescaped_from_msg Read Message header field and apply rfc822_unescape.
Function _read_list_from_msg Read Message header field and return all results as list.
Function _read_payload_from_msg Undocumented
Variable _Distribution Undocumented
def assert_bool(dist, attr, value): (source)

Verify that value is True, False, 0, or 1

def assert_string_list(dist, attr, value): (source)

Verify that value is a string list

def check_entry_points(dist, attr, value): (source)

Verify that entry_points map is parseable

def check_extras(dist, attr, value): (source)

Verify that extras_require mapping is valid

def check_importable(dist, attr, value): (source)

Undocumented

def check_nsp(dist, attr, value): (source)

Verify that namespace packages are valid

def check_package_data(dist, attr, value): (source)

Verify that value is a dictionary of package names to glob lists

def check_packages(dist, attr, value): (source)

Undocumented

def check_requirements(dist, attr, value): (source)

Verify that install_requires is a valid requirements list

def check_specifier(dist, attr, value): (source)

Verify that value is a valid version specifier

def check_test_suite(dist, attr, value): (source)

Undocumented

def get_metadata_version(self): (source)

Undocumented

def invalid_unless_false(dist, attr, value): (source)

Undocumented

def read_pkg_file(self, file): (source)

Reads the metadata values from a file object.

def rfc822_unescape(content: str) -> str: (source)

Reverse RFC-822 escaping by removing leading whitespaces from content.

def single_line(val): (source)

Quick and dirty validation for Summary pypa/setuptools#1390.

def write_pkg_file(self, file): (source)

Write the PKG-INFO format data to a file object.

sequence = (source)

Undocumented

def _check_extra(extra, reqs): (source)

Undocumented

def _check_marker(marker): (source)

Undocumented

def _get_unpatched(cls): (source)

Undocumented

def _read_field_from_msg(msg: Message, field: str) -> Optional[str]: (source)

Read Message header field.

def _read_field_unescaped_from_msg(msg: Message, field: str) -> Optional[str]: (source)

Read Message header field and apply rfc822_unescape.

def _read_list_from_msg(msg: Message, field: str) -> Optional[List[str]]: (source)

Read Message header field and return all results as list.

def _read_payload_from_msg(msg: Message) -> Optional[str]: (source)

Undocumented

_Distribution = (source)

Undocumented