According to the Poetry docs, all dependencies, even across groups, must resolve to the same:
All dependencies must be compatible with each other across groups since they will be resolved regardless of whether they are required for installation or not (see Installing group dependencies).
So we can share the install targets across all groups!
Despite this, the implementation will check the dependency is accessed with the proper group.
This PR adds support for dependency groups (as suggested in https://github.com/soniaai/rules_poetry/issues/15).
There are two key changes:
group
argument is added to thedependency
functionAccording to the Poetry docs, all dependencies, even across groups, must resolve to the same:
So we can share the install targets across all groups!
Despite this, the implementation will check the dependency is accessed with the proper
group
._This PR depends on PR https://github.com/soniaai/rules_poetry/pull/17_