|
|
None | __init__ (self, str marker) |
| |
|
str | __str__ (self) |
| |
|
str | __repr__ (self) |
| |
|
int | __hash__ (self) |
| |
|
bool | __eq__ (self, Any other) |
| |
| bool | evaluate (self, dict[str, str]|None environment=None, EvaluateContext context="metadata") |
| |
◆ evaluate()
| bool packaging.markers.Marker.evaluate |
( |
|
self, |
|
|
dict[str, str] | None |
environment = None, |
|
|
EvaluateContext |
context = "metadata" |
|
) |
| |
Evaluate a marker.
Return the boolean from evaluating the given marker against the
environment. environment is an optional argument to override all or
part of the determined environment. The *context* parameter specifies what
context the markers are being evaluated for, which influences what markers
are considered valid. Acceptable values are "metadata" (for core metadata;
default), "lock_file", and "requirement" (i.e. all other situations).
The environment is determined from the current Python process.
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/packaging/markers.py