Skip to content

Commit

Permalink
fiddle with the export heuristic
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby committed May 30, 2022
1 parent 5cc68a1 commit 243573b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/poetry/packages/locker.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,12 +369,9 @@ def get_project_dependencies(
packages_by_name[pkg.name] = []
packages_by_name[pkg.name].append(pkg)

# Put higher versions first so that we prefer them.
# Put lower versions first so that we prefer them.
for packages in packages_by_name.values():
packages.sort(
key=lambda package: package.version,
reverse=True,
)
packages.sort(key=lambda package: package.version)

nested_dependencies = cls.__walk_dependencies(
dependencies=project_requires,
Expand Down

0 comments on commit 243573b

Please sign in to comment.