Join extras from constraints and requests#3105
Join extras from constraints and requests#3105nakato wants to merge 1 commit intopypa:developfrom nakato:i3046
Conversation
If a dep is mentioned in constraints we just take that version, meaning we will completely ignore any extras requested on the command line or in a requirments file. This takes a union of the two before installing. Closes #3046
|
Oh cool.. This should mention issue 3189 in its description :). |
There was a problem hiding this comment.
is it worth having a case with a requirements file? Not conceptually different to install... but it might be nice to be explicit that
pip install foo foo[bar] foo[quux]
should no longer error
There was a problem hiding this comment.
The pip install foo foo[bar] foo[quux] would indeed be nice but seems unrelated to this PR that focuses on constraints... Am I missing something ?
Or maybe you thought you were commenting on #3198 ?
There was a problem hiding this comment.
So I realised that the constraints bug was a special case of the general problem (which itself is a sub-special-case of the resolver problem). I think it would be confusing if extras work with constraints but not requirements or cli - so am arguing that we address them all concurrently, within thebounds of not having a resolver).
|
This looks fine but could probably be rebased on develop to avoid the test issue due to pytest. |
There was a problem hiding this comment.
A logging.debug of the merge could be helpful.
|
Closed by #3198 |
If a dep is mentioned in constraints we just take that version, meaning we
will completely ignore any extras requested on the command line or in a
requirements file. This takes a union of the two before installing.
Following commits are being handled in PR #2937