Skip to content

Commit

Permalink
De-duplicate and sort required packages
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Apr 19, 2024
1 parent 0eff203 commit 09cb2e3
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 @@ -304,8 +304,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 09cb2e3

Please sign in to comment.