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

Merge list & freeze commands #7157

Open
xavfernandez opened this issue Oct 7, 2019 · 3 comments
Open

Merge list & freeze commands #7157

xavfernandez opened this issue Oct 7, 2019 · 3 comments
Labels
C: freeze 'pip freeze' related C: list/show 'pip list' or 'pip show' state: needs discussion This needs some more discussion type: enhancement Improvements to functionality UX User experience related

Comments

@xavfernandez
Copy link
Member

What's the problem this feature will solve?

Simplify pip CLI interface.

Currently, list and freeze are two commands that perform almost the same role.
pip freeze and pip list output the same kind of information on the installed packages but with different format and different available options.

As an example, pip freeze --all should produce the same output as pip list --format=freeze (except for editable installs...).

Describe the solution you'd like

Both commands would be merged into one (list) and freeze would simply be an alias for list --format=freeze.
This should lower the maintenance and simplify our CLI interface.

Alternative Solutions
Statu quo.

@xavfernandez xavfernandez added type: enhancement Improvements to functionality C: freeze 'pip freeze' related C: list/show 'pip list' or 'pip show' state: needs discussion This needs some more discussion labels Oct 7, 2019
@pradyunsg
Copy link
Member

Color me interested.

I think we'd want a decently long deprecation cycle on this though -- ~1.5 years or so?

@chrahunt
Copy link
Member

chrahunt commented Oct 7, 2019

Regarding deprecation, you're referring to the freeze subcommand, after spending 1.5 years as an alias?

@xavfernandez
Copy link
Member Author

I did not plan on removing the freeze command but it would certainly make sense, with a very very long deprecation period indeed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: freeze 'pip freeze' related C: list/show 'pip list' or 'pip show' state: needs discussion This needs some more discussion type: enhancement Improvements to functionality UX User experience related
Projects
None yet
Development

No branches or pull requests

3 participants