Responsible for evaluating links for a particular project.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
project_name, |
|
|
|
canonical_name, |
|
|
|
formats, |
|
|
|
target_python, |
|
|
|
allow_yanked, |
|
|
|
ignore_requires_python = None |
|
) |
| |
:param project_name: The user supplied package name.
:param canonical_name: The canonical package name.
:param formats: The formats allowed for this package. Should be a set
with 'binary' or 'source' or both in it.
:param target_python: The target Python interpreter to use when
evaluating link compatibility. This is used, for example, to
check wheel compatibility, as well as when checking the Python
version, e.g. the Python version embedded in a link filename
(or egg fragment) and against an HTML link's optional PEP 503
"data-requires-python" attribute.
:param allow_yanked: Whether files marked as yanked (in the sense
of PEP 592) are permitted to be candidates for install.
:param ignore_requires_python: Whether to ignore incompatible
PEP 503 "data-requires-python" values in HTML links. Defaults
to False.
◆ evaluate_link()
def evaluate_link |
( |
|
self, |
|
|
|
link |
|
) |
| |
Determine whether a link is a candidate for installation.
:return: A tuple (is_candidate, result), where `result` is (1) a
version string if `is_candidate` is True, and (2) if
`is_candidate` is False, an optional string to log the reason
the link fails to qualify.
◆ project_name
The documentation for this class was generated from the following file:
- /home/passerat/Stage/flaskProject/venv/lib/python3.8/site-packages/pip/_internal/index/package_finder.py