common/scripts/parse-py-metadata: handle extras properly
This commit is contained in:
parent
c8dc1fb0b1
commit
be0eace9e9
|
@ -79,7 +79,7 @@ def match_markers(req: "Requirement", extras: set[str]) -> bool:
|
|||
|
||||
# check the requirement for each extra we want and without any extras
|
||||
if extras:
|
||||
return req.marker.evaluate() and any(req.marker.evaluate({"extra": e}) for e in extras)
|
||||
return req.marker.evaluate() or any(req.marker.evaluate({"extra": e}) for e in extras)
|
||||
|
||||
return req.marker.evaluate()
|
||||
|
||||
|
|
Loading…
Reference in New Issue