Skip to content

Commit

Permalink
fix: the logic error in the uv format marker matching
Browse files Browse the repository at this point in the history
Supersedes #3197

Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
frostming committed Oct 10, 2024
1 parent c8782c8 commit 8f5be3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions news/3197.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix the logic error in the `uv` format marker matching.
2 changes: 1 addition & 1 deletion src/pdm/formats/uv.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def _make_dependency(self, candidate: Candidate, req: Requirement) -> dict[str,
matching_entries = [e for k, e in locked_repo.packages.items() if k[0] == req.key]

def marker_match(marker: Marker | None) -> bool:
return not (parent_marker & (marker or get_marker("")).is_empty())
return not (parent_marker & (marker or get_marker(""))).is_empty()

if not matching_entries:
return None
Expand Down

0 comments on commit 8f5be3d

Please sign in to comment.