MCPcopy
hub / github.com/pex-tool/pex / evaluate_marker

Function evaluate_marker

tests/test_pep_508.py:17–23  ·  view source on GitHub ↗
(
    expression,  # type: str
    environment,  # type: Dict[str, str]
)

Source from the content-addressed store, hash-verified

15
16
17def evaluate_marker(
18 expression, # type: str
19 environment, # type: Dict[str, str]
20):
21 # type: (...) -> bool
22 markers.default_environment = environment.copy
23 return cast(bool, markers.Marker(expression).evaluate())
24
25
26def assert_unknown_marker(

Callers 3

assert_unknown_markerFunction · 0.85
assert_known_markerFunction · 0.85
test_cpython_dev_releaseFunction · 0.85

Calls 2

castFunction · 0.90
evaluateMethod · 0.80

Tested by

no test coverage detected