From be0eace9e9b22d03781eca792f2078f7c3428996 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Tue, 24 Dec 2024 14:51:38 -0500 Subject: [PATCH] common/scripts/parse-py-metadata: handle extras properly --- common/scripts/parse-py-metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/scripts/parse-py-metadata.py b/common/scripts/parse-py-metadata.py index 72de64ee37b..0d9384bf7ef 100644 --- a/common/scripts/parse-py-metadata.py +++ b/common/scripts/parse-py-metadata.py @@ -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()