OpenQuizz
Une application de gestion des contenus pédagogiques
pip._internal.req.constructors Namespace Reference

Data Structures

class  RequirementParts
 

Functions

def convert_extras (extras)
 
def parse_editable (editable_req)
 
def deduce_helpful_msg (req)
 
def parse_req_from_editable (editable_req)
 
def install_req_from_editable (editable_req, comes_from=None, use_pep517=None, isolated=False, options=None, constraint=False, user_supplied=False)
 
def parse_req_from_line (name, line_source)
 
def install_req_from_line (name, comes_from=None, use_pep517=None, isolated=False, options=None, constraint=False, line_source=None, user_supplied=False)
 
def install_req_from_req_string (req_string, comes_from=None, isolated=False, use_pep517=None, user_supplied=False)
 
def install_req_from_parsed_requirement (parsed_req, isolated=False, use_pep517=None, user_supplied=False)
 
def install_req_from_link_and_ireq (link, ireq)
 

Variables

 logger
 
 operators
 

Detailed Description

Backing implementation for InstallRequirement's various constructors

The idea here is that these formed a major chunk of InstallRequirement's size
so, moving them and support code dedicated to them outside of that class
helps creates for better understandability for the rest of the code.

These are meant to be used elsewhere within pip to create instances of
InstallRequirement.

Function Documentation

◆ convert_extras()

def pip._internal.req.constructors.convert_extras (   extras)

◆ deduce_helpful_msg()

def pip._internal.req.constructors.deduce_helpful_msg (   req)
Returns helpful msg in case requirements file does not exist,
or cannot be parsed.

:params req: Requirements file path

◆ install_req_from_editable()

def pip._internal.req.constructors.install_req_from_editable (   editable_req,
  comes_from = None,
  use_pep517 = None,
  isolated = False,
  options = None,
  constraint = False,
  user_supplied = False 
)

◆ install_req_from_line()

def pip._internal.req.constructors.install_req_from_line (   name,
  comes_from = None,
  use_pep517 = None,
  isolated = False,
  options = None,
  constraint = False,
  line_source = None,
  user_supplied = False 
)
Creates an InstallRequirement from a name, which might be a
requirement, directory containing 'setup.py', filename, or URL.

:param line_source: An optional string describing where the line is from,
    for logging purposes in case of an error.

◆ install_req_from_link_and_ireq()

def pip._internal.req.constructors.install_req_from_link_and_ireq (   link,
  ireq 
)

◆ install_req_from_parsed_requirement()

def pip._internal.req.constructors.install_req_from_parsed_requirement (   parsed_req,
  isolated = False,
  use_pep517 = None,
  user_supplied = False 
)

◆ install_req_from_req_string()

def pip._internal.req.constructors.install_req_from_req_string (   req_string,
  comes_from = None,
  isolated = False,
  use_pep517 = None,
  user_supplied = False 
)

◆ parse_editable()

def pip._internal.req.constructors.parse_editable (   editable_req)
Parses an editable requirement into:
    - a requirement name
    - an URL
    - extras
    - editable options
Accepted requirements:
    svn+http://blahblah@rev#egg=Foobar[baz]&subdirectory=version_subdir
    .[some_extra]

◆ parse_req_from_editable()

def pip._internal.req.constructors.parse_req_from_editable (   editable_req)

◆ parse_req_from_line()

def pip._internal.req.constructors.parse_req_from_line (   name,
  line_source 
)

Variable Documentation

◆ logger

logger

◆ operators

operators