OpenQuizz
Une application de gestion des contenus pédagogiques
_InstallRequirementBackedCandidate Class Reference
Inheritance diagram for _InstallRequirementBackedCandidate:
Collaboration diagram for _InstallRequirementBackedCandidate:

Public Member Functions

def __init__ (self, link, source_link, ireq, factory, name=None, version=None)
 
def __str__ (self)
 
def __repr__ (self)
 
def __hash__ (self)
 
def __eq__ (self, other)
 
def source_link (self)
 
def project_name (self)
 
def name (self)
 
def version (self)
 
def format_for_error (self)
 
def iter_dependencies (self, with_requires)
 
def get_install_requirement (self)
 
- Public Member Functions inherited from Candidate
def is_installed (self)
 
def is_editable (self)
 

Data Fields

 dist
 

Static Public Attributes

 is_installed
 

Detailed Description

A candidate backed by an ``InstallRequirement``.

This represents a package request with the target not being already
in the environment, and needs to be fetched and installed. The backing
``InstallRequirement`` is responsible for most of the leg work; this
class exposes appropriate information to the resolver.

:param link: The link passed to the ``InstallRequirement``. The backing
    ``InstallRequirement`` will use this link to fetch the distribution.
:param source_link: The link this candidate "originates" from. This is
    different from ``link`` when the link is found in the wheel cache.
    ``link`` would point to the wheel cache, while this points to the
    found remote link (e.g. from pypi.org).

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  link,
  source_link,
  ireq,
  factory,
  name = None,
  version = None 
)

Member Function Documentation

◆ __eq__()

def __eq__ (   self,
  other 
)

◆ __hash__()

def __hash__ (   self)

◆ __repr__()

def __repr__ (   self)

◆ __str__()

def __str__ (   self)

◆ format_for_error()

def format_for_error (   self)

Reimplemented from Candidate.

◆ get_install_requirement()

def get_install_requirement (   self)

Reimplemented from Candidate.

◆ iter_dependencies()

def iter_dependencies (   self,
  with_requires 
)

Reimplemented from Candidate.

◆ name()

def name (   self)
The name identifying this candidate in the resolver.

This is different from ``project_name`` if this candidate contains
extras, where ``project_name`` would not contain the ``[...]`` part.

Reimplemented from Candidate.

◆ project_name()

def project_name (   self)
The normalised name of the project the candidate refers to

Reimplemented from Candidate.

◆ source_link()

def source_link (   self)

Reimplemented from Candidate.

◆ version()

def version (   self)

Reimplemented from Candidate.

Field Documentation

◆ dist

dist

◆ is_installed

is_installed
static

The documentation for this class was generated from the following file: