From 6057e6c344c2eef9cb67ea15c410536a006beece Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Thu, 18 Jul 2019 10:12:26 +0530 Subject: [PATCH 1/6] Document how Python 2.7 support will be handled --- docs/html/development/release-process.rst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/html/development/release-process.rst b/docs/html/development/release-process.rst index 743a19e90c5..1f0f017eb13 100644 --- a/docs/html/development/release-process.rst +++ b/docs/html/development/release-process.rst @@ -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 +prevent this (which is unlikely) or Python 2 usage reduces to a level that 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 =============== From 6762a3d518504440e5510f1a7f6e5cfd9c538542 Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Thu, 18 Jul 2019 10:13:56 +0530 Subject: [PATCH 2/6] Add link to pip's Python 2 deprecation message --- src/pip/_internal/cli/base_command.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pip/_internal/cli/base_command.py b/src/pip/_internal/cli/base_command.py index a13eb838aa6..448f31810d6 100644 --- a/src/pip/_internal/cli/base_command.py +++ b/src/pip/_internal/cli/base_command.py @@ -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." ) if platform.python_implementation() == "CPython": message = ( From c80f94e1926bc5d80d02db391721652a873577f0 Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Thu, 18 Jul 2019 10:16:31 +0530 Subject: [PATCH 3/6] Ignore line length for the link --- src/pip/_internal/cli/base_command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pip/_internal/cli/base_command.py b/src/pip/_internal/cli/base_command.py index 448f31810d6..c211db538f7 100644 --- a/src/pip/_internal/cli/base_command.py +++ b/src/pip/_internal/cli/base_command.py @@ -156,7 +156,7 @@ def main(self, args): message = ( "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." + "https://pip.pypa.io/en/latest/development/release-process/#python-2-support." # noqa ) if platform.python_implementation() == "CPython": message = ( From 3b3bd76be34606e3fd52f4d1c53c3280ff1b6018 Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Thu, 18 Jul 2019 10:21:44 +0530 Subject: [PATCH 4/6] :newspaper: --- news/6726.doc | 1 + 1 file changed, 1 insertion(+) create mode 100644 news/6726.doc diff --git a/news/6726.doc b/news/6726.doc new file mode 100644 index 00000000000..3a711cfab95 --- /dev/null +++ b/news/6726.doc @@ -0,0 +1 @@ +Document how Python 2.7 support will be maintained. From 8de817c7ed2a8e3cd2fb8c18d33dae9e1f9484ef Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Thu, 18 Jul 2019 10:44:02 +0530 Subject: [PATCH 5/6] Reword as suggested in PR review --- docs/html/development/release-process.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/html/development/release-process.rst b/docs/html/development/release-process.rst index 1f0f017eb13..a3de684595e 100644 --- a/docs/html/development/release-process.rst +++ b/docs/html/development/release-process.rst @@ -62,9 +62,9 @@ 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 -prevent this (which is unlikely) or Python 2 usage reduces to a level that pip -maintainers feel it is OK to drop support. The same approach is used to -determine when to drop support for other Python versions. +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 From bf1b8216f02b6387b505831a4c6148f410f8d74e Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Thu, 18 Jul 2019 15:20:45 +0530 Subject: [PATCH 6/6] Remove period from the end of URL --- src/pip/_internal/cli/base_command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pip/_internal/cli/base_command.py b/src/pip/_internal/cli/base_command.py index c211db538f7..90830be4a56 100644 --- a/src/pip/_internal/cli/base_command.py +++ b/src/pip/_internal/cli/base_command.py @@ -156,7 +156,7 @@ def main(self, args): message = ( "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 + "https://pip.pypa.io/en/latest/development/release-process/#python-2-support" # noqa ) if platform.python_implementation() == "CPython": message = (