pypa/pip — pull request #752 by qwcode (2012-12-18 06:31:37+00:00)
Title: pip list

here's the pull from @rafaelcaricio plus some changes:

- compliance with the new command registry from @gvalkov
- the "Package Index Options" group was refactored out into a shared module, since 2 commands use it now
- no unnecessary conversion from Distribution objects to InstallRequirements
- comparison using parsed versions, not version strings
- --uptodate/--outdated excludes editables (like mentioned in the original pull)
- an --editables" option (like mentioned in the original pull)
- 2 new options for util.get_installed_distributions: include_editables and editables_only

peer review requested on any of it, especially on the editable output format.
(@pfmoore, @pnasrat, @jezdez, @rafaelcaricio, @hltbra)

sample outputs:

pip list

pip-test-package (0.1.1) editable src at /my/venv/src/pip-test-package
wsgiref (0.1.2)
Pygments (1.5)
mock (1.0b1)

pip list --editables

pip-test-package (0.1.1) editable src at /my/venv/src/pip-test-package

pip list --outdated

mock (CURRENT: 1.0b1 LATEST: 1.0.1)

pip list --uptodate

wsgiref (0.1.2)
Pygments (1.5