Translation layer between pyproject config and setuptools distribution and metadata objects. The distribution and metadata objects are modeled after (an old version of) core metadata, therefore configs in the format specified for ``pyproject.toml`` need to be processed before being applied. **PRIVATE MODULE**: API reserved for setuptools internal usage only.
Function | apply |
Apply configuration dict read with :func:`read_configuration` |
Function | json |
As defined in :pep:`566#json-compatible-metadata` |
Constant | EMPTY |
Undocumented |
Constant | PYPROJECT |
Undocumented |
Constant | SETUPTOOLS |
Undocumented |
Constant | TOOL |
Undocumented |
Constant | TOOL |
Undocumented |
Exception | _ |
Inform users that ``pyproject.toml`` would overwrite previous metadata. |
Function | _apply |
Undocumented |
Function | _apply |
Undocumented |
Function | _attrgetter |
Similar to ``operator.attrgetter`` but returns None if ``attr`` is not found >>> from types import SimpleNamespace >>> obj = SimpleNamespace(a=42, b=SimpleNamespace(c=13)) >>> _attrgetter("a")(obj) 42 >>> _attrgetter("b... |
Function | _copy |
Undocumented |
Function | _dependencies |
Undocumented |
Function | _guess |
Undocumented |
Function | _handle |
Be temporarily forgiving with ``dynamic`` fields not listed in ``dynamic`` |
Function | _license |
Undocumented |
Function | _load |
Undocumented |
Function | _long |
Undocumented |
Function | _normalise |
Undocumented |
Function | _normalise |
Undocumented |
Function | _optional |
Undocumented |
Function | _people |
Undocumented |
Function | _project |
Undocumented |
Function | _python |
Undocumented |
Function | _set |
Undocumented |
Function | _some |
Return the first "truth-y" attribute or None >>> from types import SimpleNamespace >>> obj = SimpleNamespace(a=42, b=SimpleNamespace(c=13)) >>> _some_attrgetter("d", "a", "b.c")(obj) 42 >>> _some_attrgetter("d", "e", "b... |
Function | _unify |
Undocumented |
Function | _valid |
Undocumented |
Constant | _CONTENT |
Undocumented |
Constant | _PREVIOUSLY |
Undocumented |
Type Alias | _ |
Undocumented |
Type Alias | _ |
Undocumented |
Type Alias | _ |
Undocumented |
Type Alias | _ |
Undocumented |
Variable | _logger |
Undocumented |
Undocumented
Value |
|
Undocumented
Value |
|
Similar to ``operator.attrgetter`` but returns None if ``attr`` is not found >>> from types import SimpleNamespace >>> obj = SimpleNamespace(a=42, b=SimpleNamespace(c=13)) >>> _attrgetter("a")(obj) 42 >>> _attrgetter("b.c")(obj) 13 >>> _attrgetter("d")(obj) is None True
Return the first "truth-y" attribute or None >>> from types import SimpleNamespace >>> obj = SimpleNamespace(a=42, b=SimpleNamespace(c=13)) >>> _some_attrgetter("d", "a", "b.c")(obj) 42 >>> _some_attrgetter("d", "e", "b.c", "a")(obj) 13 >>> _some_attrgetter("d", "e", "f")(obj) is None True
Undocumented
Value |
|