-
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
Implement new command 'pip index versions' #8978
Implement new command 'pip index versions' #8978
Conversation
Not sure what issue number to use with the |
It could be GH-7975 I think. I'm glad that this i picked up after I totally forgot about it 😅 |
I see, added a news entry now 😄 |
@pradyunsg @uranusjr @McSinyx Im humbly bumping this PR, because I want to know what do you think about this feature offer. should this be discussed in the python forums? |
Looks OK to me. I'm a little bit ambivalent about adding this to search, but simply because the existing search is so bad that I'm not entirely sure we want to have people thinking it's useful for anything 😉 But I've no objection to this going in. |
Hi @NoahGorny! As @pradyunsg mentions, we are doing some UX research on what users need from pip search. We're still figuring out the results, but this PR will allow us to test something with users. Thanks for this. I'm going to try out your PR to see the output. Ideally we'd be able to usability test this with users and get feedback. Would you be OK with discussing usability improvements we might recommend? I've tried it out and so far so good. 😄 |
I welcome any feedback and suggestions, and happy to help! I think you guys are doing an amazing job improving I will try to be as available as I can, and I am open to new ideas and changes 😄 |
@ei8fdb @pradyunsg are there any updates on things I should do? I do not want this PR to be forgotten 😢 |
I like overloading |
I wonder if it would be better to use |
We can just add a warning that this API is experimental, and if we want to move away from it, we can deprecate it in the future |
I'm on board if we're letting ourselves remove this in a future release without a deprecation cycle.
|
Why not use a deprecation cycle? it only requires us to remember deprecating and removing after a while |
I switched to |
I’m adding this to the 21.0 milestone because
|
3d764df
to
3699993
Compare
A quick note. Pip 21.0 is due for release in about 2 weeks (see #9282). This item is on the 21.0 milestone, so it either needs to be implemented and merged to master before then, or it will miss the release (and I'll move it to the 21.1 milestone). |
I mostly wait for people to have feedback on this, as I use the JSON API and want to hear ppl opinion about it |
We've essentially restored this with #9228 being closed. I don't think this blocks 21.0, but, we should figure out what we really want to do here. |
It'd be useful of we could get an update to the UX research about this. |
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 |
is the only thing holding this back a need to rebase? |
Who can merge this? |
Looks reasonable to me. So, as the first shot at this, @NoahGorny could you modify this PR to implement |
I see, will do in the following days! I think you can try and review my changes in the meantime.. I am not super happy about the way I retrieve the information. I should probably split the JSON API logic to a separate class, or use the simple API instead. |
Let's use the simple API instead. You should be able to reuse may logic in |
77a3e70
to
2e062e0
Compare
Hi @uranusjr @pradyunsg, I have updated the PR as needed, added tests, and I feel like its ready for a review. Let me know what you think 😄 |
2e062e0
to
dce8972
Compare
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.
Happy to see this merged, and we can iterate on this.
A few non-blocking suggested rephrasings.
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.
A general note: The current implementation lists only applicable versions of a project, but that behaviour (same as pip install
etc.) sometimes leads to a common user confusion: Why does pip not see a newly published version?
I guess the current impleemntation is probably good enough as an initial effort, but eventually we probably need to also list “found but not applicable” versions as well (and potentially also why they are not applicable). I’m not sure how it can be done best, however.
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 clicked the wrong button. :)
214345d
to
2039cfa
Compare
Thanks for the review @uranusjr and @pradyunsg, I have applied your suggestions |
2039cfa
to
25ffadf
Compare
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 think this is good to merge, and we can iterate on this as we go! :)
I'll defer to @uranusjr for the merge.
I created #10052 to track the follow-up messaging improvement I mentioned earlier. |
Instead of doing dirty tricks in order to get all available versions of a package(https://stackoverflow.com/questions/4888027/python-and-pip-list-all-versions-of-a-package-thats-available), we can now call
pip search <package> --list-all-versions
in order to see all of the available versions!Lemme know what you think @uranusjr @pradyunsg!