-
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
pip list #752
pip list #752
Conversation
…r; use the dist objects you already have
and I still need to add some docs.... |
In general the feature is greate - I'm wondering if we should support output formats, allowing reuse of the output of one command as input to another (pipe friendly). Or maybe a verbose format for the extra thing One output option should be as a requirement.
Another would be as RFC-822 supporting metadata http://www.python.org/dev/peps/pep-0426/ Basically I want the output easily parsable by tools without having to resort to regex's to eg extract the version (either sed/cut/awk/etc) One option would be allow specifying a query format based on some metadata tags eg '%{name}-%{version}' ala RPM/yum or dpkg-query. |
Of course that could be in a follow up to this - don't block on my account |
agreed on output formats, maybe csv and json (good next pull for @rafaelcaricio ?) also note that the original pull mentioned a "--freeze" option that was just equivalent to "pip freeze", but I'm not sure it's worth it? maybe nice to drop "pip freeze" at some pt after deprecating it for awhile. for editables, we have to keep in mind that presenting them as "name==version" can be confusing since it looks like a requirement, and that's not the requirement for an editable (rather its usually the vcs url to the origin reference) as for the default "human readable" format, maybe this instead of the verbiage about "src" (where "pip-test-package" is an editable)
or, maybe since the version for editables often doesn't represent very much during the dev process.
|
if we did allow the slight confusion over using "==" for editables, maybe this for the default format. pip list
pip list --editables
pip list --outdated
pip list --uptodate
pip list --freeze (TBD in a future pull)
|
merged. I didn't put much effort into the docs for pip list, since I'm already working on a rewrite for the pip docs as a whole. |
Hi, nice to see that it get finally merged! 👍 It´s a good idea to do a new pull request with the output formats. As soon as possible I will start working on it (right now I´m in the middle of my moving to another country, so I'm a little busy). Thank you @qwcode and all the guys. |
here's the pull from @rafaelcaricio (#675) plus some changes:
peer review requested on any of it, especially on the editable output format.
(@pfmoore, @pnasrat, @jezdez, @rafaelcaricio, @hltbra)
sample outputs:
pip list
pip list --editables
pip list --outdated
pip list --uptodate