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

Update 2.7 deprecation message #6726

Merged
merged 6 commits into from
Jul 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docs/html/development/release-process.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,21 @@ their merits.
``pip._internal.utils.deprecation.deprecated``. The function is not a part of
pip's public API.

Python 2 support
----------------

pip will continue to ensure that it runs on Python 2.7 after the CPython 2.7
EOL date. Support for Python 2.7 will be dropped, if bugs in Python 2.7 itself
make this necessary (which is unlikely) or Python 2 usage reduces to a level
where pip maintainers feel it is OK to drop support. The same approach is used
to determine when to drop support for other Python versions.

However, bugs reported with pip which only occur on Python 2.7 would likely not
be addressed directly by pip's maintainers. Pull Requests to fix Python 2.7
only bugs will be considered, and merged (subject to normal review processes).
Note that there may be delays due to the lack of developer resources for
reviewing such pull requests.


Release Process
===============
Expand Down
1 change: 1 addition & 0 deletions news/6726.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Document how Python 2.7 support will be maintained.
4 changes: 3 additions & 1 deletion src/pip/_internal/cli/base_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ def main(self, args):

if sys.version_info[:2] == (2, 7):
message = (
"A future version of pip will drop support for Python 2.7."
"A future version of pip will drop support for Python 2.7. "
"More details about Python 2 support in pip, can be found at "
"https://pip.pypa.io/en/latest/development/release-process/#python-2-support" # noqa
)
if platform.python_implementation() == "CPython":
message = (
Expand Down