Change the "Successfully Installed" message to use == instead of -
See original GitHub issueWhat’s the problem this feature will solve?
Once I’ve installed new package I typically copy pasted the package and it’s version number from the CLI to the requirements file. The output of PIP re: version numbers is inconsistent with the input of PIP
Successfully installed django-advanced-filters-1.4.0
instead of
Successfully installed django-advanced-filters==1.4.0
meaning I have to remember to edit that line or my next pip install -r
will be broken. Would be nice if I didn’t have to remember that and the output was the same as the input.
Describe the solution you’d like
Pretty sure the only thing that would need to change is this line
replacing the - with ==
However this would also involve fixing several tests which check for the output.
Alternative Solutions
Continue to manually work around this inconsistency or write a shell wrapper for pip to post process the output 🤮
Additional context
I’d be willing to make the change provided it would actually get merged but I’m not going to go to the trouble of fixing up all the tests for this to get a meh, not worth it kind of response.
Code of Conduct
- I agree to follow the PSF Code of Conduct.
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:16 (7 by maintainers)
Top GitHub Comments
This is exactly my point. I suspect you missed double negation in my post.
I really do not understand suggestions that
django-advanced-filters==1.4.0
is not more readable and natural than the currentdjango-advanced-filters-1.4.0
which (as stated) is a historical relic. Also, hypothetical tabular format should not block simple change proposed here.