Skip to content

Join extras from constraints and requests#3105

Closed
nakato wants to merge 1 commit intopypa:developfrom
nakato:i3046
Closed

Join extras from constraints and requests#3105
nakato wants to merge 1 commit intopypa:developfrom
nakato:i3046

Conversation

@nakato
Copy link
Contributor

@nakato nakato commented Sep 14, 2015

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

  • Attempt to install editable packge defined in constraints should error
  • Attempt to get name for editable file:// URLs

Review on Reviewable

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
@nakato nakato changed the title I3046 Join extras from constraints and requests Sep 29, 2015
@rbtcollins
Copy link

Oh cool.. This should mention issue 3189 in its description :).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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).

@xavfernandez
Copy link
Member

This looks fine but could probably be rebased on develop to avoid the test issue due to pytest.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A logging.debug of the merge could be helpful.

@dstufft
Copy link
Member

dstufft commented Nov 23, 2015

Closed by #3198

@dstufft dstufft closed this Nov 23, 2015
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

auto-locked Outdated issues that have been locked by automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants