|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


Public Member Functions | |
| def | __init__ (self, path, env=None) |
| def | __repr__ (self) |
| def | __str__ (self) |
| def | check_installed_files (self) |
| def | list_installed_files (self) |
| def | list_distinfo_files (self, absolute=False) |
| def | __eq__ (self, other) |
Public Member Functions inherited from BaseInstalledDistribution | |
| def | __init__ (self, metadata, path, env=None) |
| def | get_hash (self, data, hasher=None) |
Public Member Functions inherited from Distribution | |
| 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 | __hash__ (self) |
Data Fields | |
| path | |
| dist_path | |
| modules | |
Data Fields inherited from BaseInstalledDistribution | |
| path | |
| dist_path | |
Data Fields inherited from Distribution | |
| metadata | |
| name | |
| key | |
| version | |
| locator | |
| digest | |
| extras | |
| context | |
| download_urls | |
| digests | |
| source_url | |
Static Public Attributes | |
| requested | |
| shared_locations | |
Static Public Attributes inherited from BaseInstalledDistribution | |
| hasher | |
Static Public Attributes inherited from Distribution | |
| build_time_dependency | |
| requested | |
| download_url | |
Created with the *path* of the ``.egg-info`` directory or file provided to the constructor. It reads the metadata contained in the file itself, or if the given path happens to be a directory, the metadata is read from the file ``PKG-INFO`` under that directory.
| def __init__ | ( | self, | |
| path, | |||
env = None |
|||
| ) |
| 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 from Distribution.
| def __repr__ | ( | self | ) |
Return a textual representation of this instance,
Reimplemented from Distribution.
| def __str__ | ( | self | ) |
| def check_installed_files | ( | self | ) |
Checks that the hashes and sizes of the files in ``RECORD`` are matched by the files themselves. Returns a (possibly empty) list of mismatches. Each entry in the mismatch list will be a tuple consisting of the path, 'exists', 'size' or 'hash' according to what didn't match (existence is checked first, then size, then hash), the expected value and the actual value.
| def list_distinfo_files | ( | self, | |
absolute = False |
|||
| ) |
Iterates over the ``installed-files.txt`` entries and returns paths for
each line if the path is pointing to a file located in the
``.egg-info`` directory or one of its subdirectories.
:parameter absolute: If *absolute* is ``True``, each returned path is
transformed into a local absolute path. Otherwise the
raw value from ``installed-files.txt`` is returned.
:type absolute: boolean
:returns: iterator of paths
| def list_installed_files | ( | self | ) |
Iterates over the ``installed-files.txt`` entries and returns a tuple ``(path, hash, size)`` for each line. :returns: a list of (path, hash, size)
| dist_path |
| modules |
| path |
|
static |
|
static |