Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
markers.py File Reference

Go to the source code of this file.

Data Structures

class  InvalidMarker
 
class  UndefinedComparison
 
class  UndefinedEnvironmentName
 
class  Node
 
class  Variable
 
class  Value
 
class  Op
 
class  Undefined
 
class  Marker
 

Namespaces

namespace  pip
 
namespace  pip._vendor
 
namespace  pip._vendor.packaging
 
namespace  pip._vendor.packaging.markers
 

Functions

List[Any] _coerce_parse_result (Union[ParseResults, List[Any]] results)
 
str _format_marker (Union[List[str], Tuple[Node,...], str] marker, Optional[bool] first=True)
 
bool _eval_op (str lhs, Op op, str rhs)
 
str _get_env (Dict[str, str] environment, str name)
 
bool _evaluate_markers (List[Any] markers, Dict[str, str] environment)
 
str format_full_version ("sys._version_info" info)
 
Dict[str, str] default_environment ()
 

Variables

 Operator = Callable[[str, str], bool]
 
tuple VARIABLE
 
dict ALIASES
 
tuple VERSION_CMP
 
tuple MARKER_OP = VERSION_CMP | L("not in") | L("in")
 
 MARKER_VALUE = QuotedString("'") | QuotedString('"')
 
 BOOLOP = L("and") | L("or")
 
tuple MARKER_VAR = VARIABLE | MARKER_VALUE
 
 MARKER_ITEM = Group(MARKER_VAR + MARKER_OP + MARKER_VAR)
 
 LPAREN = L("(").suppress()
 
 RPAREN = L(")").suppress()
 
 MARKER_EXPR = Forward()
 
 MARKER_ATOM = MARKER_ITEM | Group(LPAREN + MARKER_EXPR + RPAREN)
 
 MARKER = stringStart + MARKER_EXPR + stringEnd
 
dict _operators
 
 _undefined = Undefined()