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

pip search incorrectly shows release candidates as latest version #1929

Closed
cdeil opened this issue Jul 16, 2014 · 2 comments
Closed

pip search incorrectly shows release candidates as latest version #1929

cdeil opened this issue Jul 16, 2014 · 2 comments
Labels
auto-locked Outdated issues that have been locked by automation C: search 'pip search'

Comments

@cdeil
Copy link

cdeil commented Jul 16, 2014

I noticed that pip search astropy-helpers currently incorrectly shows 0.4rc3 as the latest version, where it should show 0.4 as the latest version:

$ pip search astropy-helpers
astropy-helpers           - Utilities for building and installing Astropy, Astropy affiliated packages, and their respective documentation.
  INSTALLED: 0.4
  LATEST:    0.4rc3

I think this is a bug in the pip.commands.search.compare_versions implementation (I have pip version 1.5.6 with Python 2.7), because according to PEP-0386 one should get "0.4rc3" < "0.4", no?

>>> from pip.commands import search
>>> search.compare_versions('0.4', '0.3')
1
>>> search.compare_versions('0.4', '0.4rc3')
-1
@embray
Copy link
Contributor

embray commented Jul 16, 2014

ISTM this could probably be addressed as part of #1894, though search.compare_versions would have to be either removed, or rewritten to use the new version scheme instead of the legacy version comparison.

@xavfernandez xavfernandez added the C: search 'pip search' label Oct 15, 2016
@xavfernandez
Copy link
Member

pip is just a client of PyPI search XMLRPC API.
So this was a bug on PyPI side instead of pip. cf #3788 for a similar issue

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation C: search 'pip search'
Projects
None yet
Development

No branches or pull requests

3 participants