Skip to content

Conversation

@citelao
Copy link

@citelao citelao commented May 4, 2025

Today, there is some open feedback on python-poetry#837. This change addresses a lot of it, e.g. rewriting the cycle-detection algorithm & the name-deduping algorithm.

What changed?

  • Rewrote the cycle-detection algorithm to handle "diamond dependencies" better.
  • Added additional tests for that case.
  • Properly handle non-normalized groups (both when specified & included).
  • Added additional tests for that case.

How tested?

  • New tests pass.
  • Existing tests pass.

@citelao citelao marked this pull request as ready for review May 5, 2025 02:39
("quux", "child_1"),
("quux", "child_2"),
("quux", "root"),
("quux", "root"), # TODO: is this expected?
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that here and below we have duplicate packages in the all_requires list. Unsure if this is desired.

@radoering radoering force-pushed the nested-dependency-groups branch from c6ff173 to c01b640 Compare May 27, 2025 16:13
@citelao citelao force-pushed the nested-dependency-groups-fb branch from cb00a96 to a63171d Compare May 28, 2025 01:03
@radoering radoering force-pushed the nested-dependency-groups branch from 849a7f4 to 4a8a8ec Compare June 9, 2025 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants