Skip to content

Commit

Permalink
fix: ExtrasWarning: Extras not found for jax: [cuda12_pip] (#2007)
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming authored Jun 12, 2023
1 parent fe83a75 commit 4b88a68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/2006.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the warning of extras not found due to extra names not normalized.
1 change: 1 addition & 0 deletions src/pdm/models/requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ def filter_requirements_with_extras(
If extras are given, return those with matching extra markers.
Otherwise, return those without extra markers.
"""
extras = [normalize_name(e) for e in extras]
result: list[str] = []
extras_in_meta: set[str] = set()
for req in requirement_lines:
Expand Down

0 comments on commit 4b88a68

Please sign in to comment.