class documentation
class Distribution(setuptools.dist.Distribution): (source)
Undocumented
Class Method | patch |
Replace distutils.dist.Distribution with this class for the duration of this context. |
Method | fetch |
Resolve pre-setup requirements |
Inherited from Distribution
:
Method | __init__ |
Undocumented |
Method | exclude |
Remove items from distribution that are named in keyword arguments |
Method | exclude |
Remove packages, modules, and extensions in named package |
Method | fetch |
Fetch an egg needed for building |
Method | finalize |
Allow plugins to apply arbitrary operations to the distribution. Each hook may optionally define a 'order' to influence the order of execution. Smaller numbers go first and the default is 0. |
Method | get |
Return a '{cmd: {opt:val}}' map of all command-line options |
Method | get |
Pluggable version of get_command_class() |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | handle |
If there were any non-global "display-only" options (--help-commands or the metadata display options) on the command line, display the requested info and return true; else return false. |
Method | has |
Return true if 'exclude_package(package)' would do something |
Method | include |
Add items to distribution that are named in keyword arguments |
Method | iter |
Yield all packages, modules, and extension names in distribution |
Method | make |
Undocumented |
Method | parse |
Parses configuration files from various levels and loads configuration. |
Method | patch |
Undocumented |
Method | print |
Undocumented |
Method | run |
Undocumented |
Method | warn |
Undocumented |
Instance Variable | dependency |
Undocumented |
Instance Variable | dist |
Undocumented |
Instance Variable | ext |
Undocumented |
Instance Variable | extras |
Undocumented |
Instance Variable | global |
Undocumented |
Instance Variable | install |
Undocumented |
Instance Variable | negative |
Undocumented |
Instance Variable | package |
Undocumented |
Instance Variable | packages |
Undocumented |
Instance Variable | py |
Undocumented |
Instance Variable | set |
Undocumented |
Instance Variable | setup |
Undocumented |
Instance Variable | src |
Undocumented |
Static Method | _expand |
>>> list(Distribution._expand_patterns(['LICENSE'])) ['LICENSE'] >>> list(Distribution._expand_patterns(['setup.cfg', 'LIC*'])) ['setup.cfg', 'LICENSE'] |
Static Method | _normalize |
Undocumented |
Static Method | _removed |
When removing an entry point, if metadata is loaded from an older version of Setuptools, that removed entry point will attempt to be loaded and will fail. See #2765 for more details. |
Static Method | _suffix |
For a requirement, return the 'extras_require' suffix for that requirement. |
Static Method | _validate |
Undocumented |
Method | _clean |
Given a Requirement, remove environment markers and return it. |
Method | _convert |
Convert requirements in `extras_require` of the form `"extra": ["barbazquux; {marker}"]` to `"extra:{marker}": ["barbazquux"]`. |
Method | _exclude |
Handle 'exclude()' for list/tuple attrs without a special handler |
Method | _exclude |
Undocumented |
Method | _finalize |
Compute names of all license files which should be included. |
Method | _finalize |
Set `metadata.python_requires` and fix environment markers in `install_requires` and `extras_require`. |
Method | _finalize |
Undocumented |
Method | _get |
Add default file and split between INI and TOML |
Method | _include |
Handle 'include()' for list/tuple attrs without a special handler |
Method | _move |
Move requirements in `install_requires` that are using environment markers `extras_require`. |
Method | _parse |
Undocumented |
Method | _parse |
Adapted from distutils.dist.Distribution.parse_config_files, this method provides the same functionality in subtly-improved ways. |
Method | _set |
Set the options for 'command_obj' from 'option_dict'. Basically this means copying elements of a dictionary ('option_dict') to attributes of an instance ('command'). |
Method | _set |
Fill-in missing metadata fields not supported by distutils. Some fields may have been set by other tools (e.g. pbr). Those fields (vars(self.metadata)) take precedence to supplied attrs. |
Method | _setuptools |
Undocumented |
Method | _validate |
Undocumented |
Constant | _DISTUTILS |
Undocumented |
Instance Variable | _orig |
Undocumented |
Instance Variable | _orig |
Undocumented |
Instance Variable | _patched |
Undocumented |
Instance Variable | _referenced |
Undocumented |
Instance Variable | _tmp |
Undocumented |