Exposing a dependency's extra as main packages extra #7773
Unanswered
ena-cradle
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm developing a package, that depends on package A. Package A provides an extra: a that I would like to expose as my own extra. How would I go about it?
Here are some options I explored:
Option 1: Using
[]
in extra specificationApart from being a bit confusing and not explicit/expressive enough in my opinion (what if I want a different version of A[a], etc.), this
gives me:
Option 2: Naming the A dependency different based on whether it includes the extra
gives me
Option 3: Using groups
This doesn't seem to be supported (see discussion here) but looks like what would solve the issue. Additionally, if I understand this comment, extras need to be specified in the main dependency group which in my case leads to naming issues.
Is there something I'm missing?
Beta Was this translation helpful? Give feedback.
All reactions