-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Improve self-check logic #5808
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
Comments
What PackageFinder does is it encapsulates the logic needed to find all the available versions of a package (in this case, pip itself) -- among a lot of other things.
We removed this functionality in #5419. There is only one latest version of pip, so we don't need to check upstream unless it changes, which is where the caching comes in. I don't think anything would change on this front unless Warehouse gets a new endpoint for fetching the latest version number of a package -- information that is already exposed in a different manner already. |
Why |
FWIW, with changes recently merged (summarized e.g. in this comment here), pip now no longer imports the Also (and this part is the way it was before), for the record pip only does the self-check for the following four commands: |
Indeed.
IMO it is unlikely that PyPI/Warehouse/PEP 503 would gain such an endpoint. It adds another endpoint that has to be cached and the only location where this endpoint would be used by pip is for self-checking its own version. None the less, we can revisit this if and when such an endpoint is added to Warehouse. Since there's nothing actionable for on this today, I'll go ahead and close this. Please feel free to leave a comment if someone disagrees with my assessment though. |
What's the problem this feature will solve?
Simplify the code to give less space to bugs.
From #5746 (comment). The self-checking logic is strange:
Describe the solution you'd like
latest stable
API query in PyPI API for fetching latest and stable versions pypi/warehouse#4663The text was updated successfully, but these errors were encountered: