Skip to content

Commit

Permalink
🔀 Merge pull request #24 from hugovk/sorted-set
Browse files Browse the repository at this point in the history
De-duplicate and sort required packages
  • Loading branch information
davep authored Apr 22, 2024
2 parents 8d989e9 + 09cb2e3 commit 49b0438
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pispy/widgets/package_information.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,14 @@ def compose(self) -> ComposeResult:
(
"Requires",
", ".join(
f"[@click=screen.lookup('{pkg.project_name}')]{pkg.project_name}[/]"
for pkg in parse_requirements(self._package.requires_dist)
sorted(
set(
f"[@click=screen.lookup('{pkg.project_name}')]{pkg.project_name}[/]"
for pkg in parse_requirements(
self._package.requires_dist
)
)
)
),
Value,
),
Expand Down

0 comments on commit 49b0438

Please sign in to comment.