common/scripts/parse-py-metadata: handle extras properly

This commit is contained in:
classabbyamp 2024-12-24 14:51:38 -05:00
parent c8dc1fb0b1
commit be0eace9e9
No known key found for this signature in database
GPG Key ID: 6BE0755918A4C7F5
1 changed files with 1 additions and 1 deletions

View File

@ -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()