Skip to content

Commit

Permalink
fix: sorting versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ggicci committed Jun 10, 2021
1 parent 3fcc053 commit b1be918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poetry/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def sorted_trying_versions(versions: Iterable[str]) -> Iterator:
sorted(
versions,
key=lambda v: (
v.split(".")[0],
int(v.split(".")[0]),
int(v.split(".")[1] if "." in v else 1000),
),
)
Expand Down

0 comments on commit b1be918

Please sign in to comment.