Skip to content

Commit

Permalink
Update 2.7 deprecation message (#6726)
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg authored Jul 20, 2019
2 parents c5560f1 + bf1b821 commit ab8fd0b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
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

0 comments on commit ab8fd0b

Please sign in to comment.