Merge fix/extras-validation: Fix include_extras parameter validation

This commit is contained in:
Ryan Malloy 2025-08-15 11:54:22 -06:00
commit f70e48f600
6 changed files with 498 additions and 7 deletions

View file

@ -81,6 +81,13 @@ class DependencyParser:
if not req.marker:
return True
# If the marker contains 'extra ==', this is an extra dependency
# and should not be filtered by Python version. Extra dependencies
# are handled separately based on user selection.
marker_str = str(req.marker)
if "extra ==" in marker_str:
return True
# Create environment for marker evaluation
env = {
"python_version": str(python_version),