OpenQuizz
Une application de gestion des contenus pédagogiques
|
Functions | |
def | check_requires_python (requires_python, version_info) |
def | get_metadata (dist) |
def | get_requires_python (dist) |
def | get_installer (dist) |
Variables | |
logger | |
def pip._internal.utils.packaging.check_requires_python | ( | requires_python, | |
version_info | |||
) |
Check if the given Python version matches a "Requires-Python" specifier. :param version_info: A 3-tuple of ints representing a Python major-minor-micro version to check (e.g. `sys.version_info[:3]`). :return: `True` if the given Python version satisfies the requirement. Otherwise, return `False`. :raises InvalidSpecifier: If `requires_python` has an invalid format.
def pip._internal.utils.packaging.get_installer | ( | dist | ) |
def pip._internal.utils.packaging.get_metadata | ( | dist | ) |
:raises NoneMetadataError: if the distribution reports `has_metadata()` True but `get_metadata()` returns None.
def pip._internal.utils.packaging.get_requires_python | ( | dist | ) |
Return the "Requires-Python" metadata for a distribution, or None if not present.
logger |