Skip to content

fb: address fb on nesting dependency groups #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 14 commits into
base: nested-dependency-groups
Choose a base branch
from

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.

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.

1 participant