Skip to content
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

WIP: add --prefer-minimum-versions flag #8086

Closed
wants to merge 3 commits into from

Conversation

dhellmann
Copy link

Add a flag to the resolver to make it try to use older versions
instead of newer versions for all dependencies. This is useful for
running test suites using the "lower bounds" of requirements to ensure
that they are accurate.

Addresses #8085

This PR currently has no tests and modifies a vendored library in place. I wanted to post it for review as a way to show what I'm asking for in #8085. If there is general agreement that the feature would be a good addition, I will take care of updating resolverlib separately and then reworking this PR accordingly, including adding tests. I'm also looking for feedback on the command line flag name.

Add a flag to the resolver to make it try to use older versions
instead of newer versions for all dependencies. This is useful for
running test suites using the "lower bounds" of requirements to ensure
that they are accurate.

Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Copy link
Member

@pradyunsg pradyunsg left a comment

Choose a reason for hiding this comment

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

As noted by the failing CI checks, please don't modify code in _vendor. That is not "pip code" but instead libraries that are shipped as part of pip. You can find more detail here: https://pip.pypa.io/en/latest/development/vendoring-policy/

@dhellmann dhellmann force-pushed the prefer-minimum-versions branch from 6e74053 to 1c9a19d Compare April 22, 2020 18:15
Only the provider find_matches() method really needs to be changed.

Signed-off-by: Doug Hellmann <doug@doughellmann.com>
@dhellmann dhellmann force-pushed the prefer-minimum-versions branch from 1c9a19d to 6885efa Compare April 22, 2020 18:16
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
@dhellmann
Copy link
Author

As noted by the failing CI checks, please don't modify code in _vendor. That is not "pip code" but instead libraries that are shipped as part of pip. You can find more detail here: https://pip.pypa.io/en/latest/development/vendoring-policy/

Yeah, I'm aware. This is still experimental. When we agree on the real implementation, I'll propose the patches correctly, but until then it gives us something concrete to discuss.

@BrownTruck
Copy link
Contributor

Hello!

I am an automated bot and I have noticed that this pull request is not currently able to be merged. If you are able to either merge the master branch into this pull request or rebase this pull request against master then it will be eligible for code review and hopefully merging!

@BrownTruck BrownTruck added the needs rebase or merge PR has conflicts with current master label May 7, 2020
@dhellmann dhellmann closed this Nov 19, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs rebase or merge PR has conflicts with current master
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants