-
Notifications
You must be signed in to change notification settings - Fork 34
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
start_backtracking suggestion #81
Conversation
backtracking_causes = run_resolver([("a", {1, 2}), ("b", {1})]) | ||
exception_causes = run_resolver([("a", {2}), ("b", {1})]) | ||
assert exception_causes == backtracking_causes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to make it obvious that the backtracking causes are exactly the same as the failure when the "best" version is selected.
@uranusjr do you prefer I give an explicit value instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is better IMO if you want to express the causes should be the same.
I’m +1 to the idea, but we should use a different function name. It’s not at all clear what the difference between Maybe we can call this something like |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor changes are needed.
Co-authored-by: Tzu-ping Chung <[email protected]>
Co-authored-by: Tzu-ping Chung <[email protected]>
Uh, Travis is dead somehow. We should migrate to GitHub Action. |
Could you rebase to or merge the latest master branch so we can apply the new GitHub Action checks? |
Linter error! |
sorry for that... :/ |
Nothing to be sorry about, the purpose of the CI being there to catch our errors 😛 |
Now test failures |
If I had run nox properly before committing, none of those problems would have occurred... anyway, I ran nox now and it passes locally, I hope that CI agrees with me. 🤞 |
@uranusjr Thanks for the merge! |
Either would do, but first we'll need a new release here since pip's vendoring mechanism only allows public release. Since this does not introduce any backward incompatibility, I'll find some time to do a release this week. |
0.8.1 released with this change. |
opened pypa/pip#10600 to incorporate the new version into pip. |
resolvelib changes to solve pypa/pip#10210.