add show command for pip (issue #33)#517
add show command for pip (issue #33)#517bernardobarreto wants to merge 8 commits intopypa:developfrom bernardobarreto:issue33
Conversation
|
Thanks for taking the time for doing this, about to review. |
There was a problem hiding this comment.
Maybe 'Show detailed information about an installed package'
|
@pnasrat if you want me to change something, or if you'd rather implement the changes yourself, just let me know. It's up to you. =] |
|
Sure I'm just thinking out loud in the code review. I'll take another look and give you more feedback tomorrow. |
|
Hi Guys, I forked bernardofire's patches at https://github.com/trbs/pip Making the pip show command a little bit more like apt-cache show. Hopefully I didn't go too much outside of the scope of issue #33 :) Example: It tries to get it's information from both the local resources and PyPi where PyPi takes precedence unless --no-index is specified. Points of improvements:
|
|
Since @trbs added more information, what about verbose options for this command ? |
|
That might be sensible :) I just the fields that seem the most reasonable/useful to me. I do kinda like this list... maybe documentation can go into verbose with other meta information about packages. There is also a 'describe' command ticket in github... This might have the same function as displaying the full meta data of a package in 'pip show -v'. @pnasrat How shall we coordinate to get this merged ?
|
|
FYI with distutils2 you have the metadata action: pysetup metadata projectname |
|
@trbs I'm travelling at the moment, I don't know if I'll have a chance to look at this before I get back - I may be able to do it one evening this week. |
|
It would be great to have additional information recorded by code in #507 being displayed as well. |
|
Needs rebasing to current develop. |
|
Hmm, sorry for the duplicated work here, I'd forgotten about this pull request and merged something very similar in #664. I'm going to leave this open for a bit as a reminder that I'd like to add in the dependencies bit into the merged show command, which doesn't have that. The additions from @trbs look interesting, but I don't think we should use the PyPI XML-RPC interface at all, which I think means we can't do that type of feature. The experience with the |
|
(Oh, and thanks @qwcode for drawing my attention to this and helping herd tickets...) |
|
Added dependencies to |
usage:
I'll use specloud as example
if the package doesn't have dependencies (figleaf for example):
I hope everything is alright.