Skip to content

New resolver: Carry extras info in ExplicitRequirement #8146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

uranusjr
Copy link
Member

See #7714 (comment)

The main problem is that we forgot to pass the extras when building an ExplicitRequirement, so the info get lost.

The fix led me to another issue that we were not building the non-extras requirement correctly in get_dependencies(). The previous implementation always builds a SpecifierRequirement, which is not correct. The fix simply delegates the logic to factory.make_requirement_from_install_req() which chooses the correct class automatically.

@uranusjr uranusjr added the skip news Does not need a NEWS file entry (eg: trivial changes) label Apr 26, 2020
Local source directory is still not working due to some other reasons.
Need to investigate.
@uranusjr uranusjr force-pushed the new-resolver-extra-in-explicit-requirement branch from 5175931 to 06d9ea0 Compare April 27, 2020 06:37
Copy link
Member

@pfmoore pfmoore left a comment

Choose a reason for hiding this comment

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

Assuming you'll raise an issue for that FIXME comment (if you haven't already).

@uranusjr
Copy link
Member Author

I opened #8150

@pradyunsg
Copy link
Member

YAY! This passes the corresponding YAML test: https://travis-ci.org/github/pypa/pip/jobs/679956068#L1638

@pfmoore pfmoore merged commit 218e7d8 into pypa:master May 3, 2020
@uranusjr uranusjr deleted the new-resolver-extra-in-explicit-requirement branch May 3, 2020 17:09
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
skip news Does not need a NEWS file entry (eg: trivial changes)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants