class documentation
class PathDistribution(Distribution): (source)
Undocumented
Method | __init__ |
Construct a distribution. |
Method | locate |
Given a path to a file in this distribution, return a path to it. |
Method | read |
Attempt to load metadata file given by the name. |
Static Method | _name |
>>> PathDistribution._name_from_stem('foo-3.0.egg-info') 'foo' >>> PathDistribution._name_from_stem('CherryPy-3.0.dist-info') 'CherryPy' >>> PathDistribution._name_from_stem('face.egg-info') 'face' >>> PathDistribution... |
Instance Variable | _path |
Undocumented |
Property | _normalized |
Performance optimization: where possible, resolve the normalized name from the file system path. |
Inherited from Distribution
:
Class Method | discover |
Return an iterable of Distribution objects for all packages. |
Class Method | from |
Return the Distribution for the given package name. |
Static Method | at |
Return a Distribution for the indicated metadata path |
Property | entry |
Undocumented |
Property | files |
Files in this distribution. |
Property | metadata |
Return the parsed metadata for this Distribution. |
Property | name |
Return the 'Name' metadata for the distribution package. |
Property | requires |
Generated requirements specified for this Distribution |
Property | version |
Return the 'Version' metadata for the distribution package. |
Class Method | _deps |
Undocumented |
Static Method | _convert |
Historically, setuptools would solicit and store 'extra' requirements, including those with environment markers, in separate sections. More modern tools expect each dependency to be defined separately, with any relevant extras and environment markers attached directly to that requirement... |
Static Method | _discover |
Search the meta_path for resolvers. |
Method | _read |
Undocumented |
Method | _read |
Undocumented |
Method | _read |
Read the lines of RECORD |
Method | _read |
SOURCES.txt might contain literal commas, so wrap each line in quotes. |
Attempt to load metadata file given by the name. :param filename: The name of the file in the distribution info. :return: The text if found, otherwise None.
>>> PathDistribution._name_from_stem('foo-3.0.egg-info') 'foo' >>> PathDistribution._name_from_stem('CherryPy-3.0.dist-info') 'CherryPy' >>> PathDistribution._name_from_stem('face.egg-info') 'face' >>> PathDistribution._name_from_stem('foo.bar')