-
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
Add option to silence messsage for Python 2.7 deprecation #6673
Comments
In 3.4:
2.7:
2.7 Cpython:
|
We raise an error if the python version has become deprecation i imagine we want to keep this behavior. pip/src/pip/_internal/utils/deprecation.py Lines 90 to 93 in 293c91e
|
I would like to work on this. |
We'd want to continue raising an exception in the deprecation helper. |
Please feel free to work on this @victorvpaulo or @adamRogerson! |
@victorvpaulo I was going to have a wack at this but if you need more time ill hold off. |
@adamRogerson I have a implementation for this feature almost ready(#6739), but i could use some help. |
@victorvpaulo Nice work :) |
Closed by #6739. |
What's the problem this feature will solve?
There is a feature request to be able to silence Python version related warnings that pip emits (try running pip 19 on Python 2.7 to see what that means).
See #6231 for context.
Describe the solution you'd like
The way we want to handle this request is to add a new flag/command line option, similar to
--no-warn-script-location
to pip, inpip._internal.cli.cmdoptions.general_group
(as named in code) and using that within pip'sBaseCommand
class for putting the version-based checking under a conditional.Alternative Solutions
Additional context
Additional references:
See Warn user when installing scripts outside PATH #4553 for how
--no-warn-script-locations
is implemented.where general options are defined
pip/src/pip/_internal/cli/cmdoptions.py
Line 775 in 293c91e
where general options get added
pip/src/pip/_internal/cli/base_command.py
Line 78 in 293c91e
where to add conditional
pip/src/pip/_internal/cli/base_command.py
Line 139 in 293c91e
This is a moderately complex issue that can serve as starting point for anyone who wants to help out with pip's development -- the process of fixing this should be a good introduction to pip's development workflow.
The text was updated successfully, but these errors were encountered: