Support resolving optional dependencies and dependency groups#30
Support resolving optional dependencies and dependency groups#30
Conversation
7e99f51 to
a979a52
Compare
3e80e57 to
1191fdc
Compare
|
I would prefer handling this without Can we implement this without introducing a new trait? The logic should be small enough that we should be able to implement without public helper types. |
|
@konstin okay. Let me do that. |
|
@konstin done. I kept the trait but made it internal to this crate. Hopefully this aligns with what you had in mind! |
b8e5da2 to
c9506f3
Compare
|
I've tried to simplify the code by inlining the trait (https://github.com/PyO3/pyproject-toml-rs/compare/konsti/refactor-resolve?expand=1), but hit a bigger problem: When we want to resolve a dependency group for a project |
|
Goddam it. That’s a diabolical corner case… |
|
Super exciting to see this passing, but for the lint: Being able to support |
|
@konstin I found the time to get back to this.
ps: I somehow missed your refactor 🫨 ... I'll integrate it if you are happy with the direction and feel it would still be beneficial. |
|
I have tried to integrate your proposed refactor @konstin |
|
CI is green, @olivier-lacroix I assume this is ready for review/merge from your PoV? |
|
Indeed 👍 |
|
@konstin any chance you could take a look at this PR ? |
|
Thank you @olivier-lacroix & @konstin! I'm super excited to be able to make use of this (via |
This PR refactors the recursion resolution of dependency-groups into a trait, and implements it for both
Let me know what you think.