OpenQuizz
Une application de gestion des contenus pédagogiques
|
Public Member Functions | |
def | __init__ (self, metadata) |
def | source_url (self) |
def | name_and_version (self) |
def | provides (self) |
def | run_requires (self) |
def | meta_requires (self) |
def | build_requires (self) |
def | test_requires (self) |
def | dev_requires (self) |
def | matches_requirement (self, req) |
def | __repr__ (self) |
def | __eq__ (self, other) |
def | __hash__ (self) |
Data Fields | |
metadata | |
name | |
key | |
version | |
locator | |
digest | |
extras | |
context | |
download_urls | |
digests | |
source_url | |
Static Public Attributes | |
build_time_dependency | |
requested | |
download_url | |
A base class for distributions, whether installed or from indexes. Either way, it must have some metadata, so that's all that's needed for construction.
def __init__ | ( | self, | |
metadata | |||
) |
Initialise an instance. :param metadata: The instance of :class:`Metadata` describing this distribution.
def __eq__ | ( | self, | |
other | |||
) |
See if this distribution is the same as another. :param other: The distribution to compare with. To be equal to one another. distributions must have the same type, name, version and source_url. :return: True if it is the same, else False.
Reimplemented in EggInfoDistribution, and InstalledDistribution.
def __hash__ | ( | self | ) |
Compute hash in a way which matches the equality test.
def __repr__ | ( | self | ) |
Return a textual representation of this instance,
Reimplemented in EggInfoDistribution, and InstalledDistribution.
def build_requires | ( | self | ) |
def dev_requires | ( | self | ) |
def matches_requirement | ( | self, | |
req | |||
) |
Say if this instance matches (fulfills) a requirement. :param req: The requirement to match. :rtype req: str :return: True if it matches, else False.
def meta_requires | ( | self | ) |
def name_and_version | ( | self | ) |
A utility property which displays the name and version in parentheses.
def provides | ( | self | ) |
A set of distribution names and versions provided by this distribution. :return: A set of "name (version)" strings.
def run_requires | ( | self | ) |
def source_url | ( | self | ) |
The source archive download URL for this distribution.
def test_requires | ( | self | ) |
|
static |
context |
digest |
digests |
|
static |
download_urls |
extras |
key |
locator |
metadata |
name |
|
static |
source_url |
version |