Skip to content

Commit b268c67

Browse files
committed
Deprecate Python 3.4
1 parent 5e573df commit b268c67

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

news/6106.removal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Deprecate support for Python 3.4

src/pip/_internal/cli/base_command.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
install_req_from_editable, install_req_from_line,
2727
)
2828
from pip._internal.req.req_file import parse_requirements
29+
from pip._internal.utils.deprecation import deprecated
2930
from pip._internal.utils.logging import setup_logging
3031
from pip._internal.utils.misc import (
3132
get_prog, normalize_path, redact_password_from_url,
@@ -134,6 +135,15 @@ def main(self, args):
134135
user_log_file=options.log,
135136
)
136137

138+
if sys.version_info[:2] == (3, 4):
139+
deprecated(
140+
"Python 3.4 support has been deprecated. pip 19.1 will be the "
141+
"last one supporting it. Please upgrade your Python as Python "
142+
"3.4 won't be maintained after March 2019 (cf PEP 429).",
143+
replacement=None,
144+
gone_in='19.2',
145+
)
146+
137147
# TODO: Try to get these passing down from the command?
138148
# without resorting to os.environ to hold these.
139149
# This also affects isolated builds and it should.

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,4 +349,4 @@ def in_memory_pip():
349349
@pytest.fixture
350350
def deprecated_python():
351351
"""Used to indicate wheither pip deprecated this python version"""
352-
return False
352+
return sys.version_info[:2] == (3, 4)

0 commit comments

Comments
 (0)