-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add pre-released package upgrade hints #5408
Add pre-released package upgrade hints #5408
Conversation
9037df1
to
1a300bc
Compare
1a300bc
to
83f0db9
Compare
Hey @demophoon! Thanks for this PR! :) Instead of a "trivial" NEWS fragment, this should have a "feature" NEWS fragment. |
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 also needs tests -- you'd want to add a test to tests/functional/test_search.py
for checking that pip search ...
shows the installation suggestion when the latest version is a pre-release.
I will add those tests when I get a free moment! Thanks for giving this a look over! |
Pushing this down the road to the next release since I don't think this'd happen in time for 18.0. |
@demophoon pip 18.1 is scheduled for next month; would you be able to take a look at this PR before then? Otherwise, we can go ahead and defer this to a later release. |
I scheduled some time this weekend to finish this up! Sorry it has taken so long! |
3997f5d
to
ce65271
Compare
Before this commit when querying for an installed package using pip if the package that was returned contained a pre-released version of the package it was not intuitive that the pre-released version of the package could not be directly upgraded to without the `--pre` flag. This commit shows additional information on how to upgrade to pre-released versions of a package if one is found in the search. Fixes pypa#5169.
ce65271
to
b67a7c9
Compare
I missed that you'd pushed changes to this PR. The CI seems to be failing since the tests corresponding to this functionality are failing. Deferring this to a later release since this isn't in a merge-able state right now. |
Before this commit when querying for an installed package using pip if
the package that was returned contained a pre-released version of the
package it was not intuitive that the pre-released version of the
package could not be directly upgraded to without the
--pre
flag.This commit shows additional information on how to upgrade to
pre-released versions of a package if one is found in the search.
Fixes #5169.