OpenQuizz
Une application de gestion des contenus pédagogiques
pip._internal.utils.packaging Namespace Reference

Functions

def check_requires_python (requires_python, version_info)
 
def get_metadata (dist)
 
def get_requires_python (dist)
 
def get_installer (dist)
 

Variables

 logger
 

Function Documentation

◆ check_requires_python()

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.

◆ get_installer()

def pip._internal.utils.packaging.get_installer (   dist)

◆ get_metadata()

def pip._internal.utils.packaging.get_metadata (   dist)
:raises NoneMetadataError: if the distribution reports `has_metadata()`
    True but `get_metadata()` returns None.

◆ get_requires_python()

def pip._internal.utils.packaging.get_requires_python (   dist)
Return the "Requires-Python" metadata for a distribution, or None
if not present.

Variable Documentation

◆ logger

logger