mirror of https://github.com/pypa/pip
Deprecate Python 3.4
This commit is contained in:
parent
5e573df69c
commit
b268c67f84
|
@ -0,0 +1 @@
|
|||
Deprecate support for Python 3.4
|
|
@ -26,6 +26,7 @@ from pip._internal.req.constructors import (
|
|||
install_req_from_editable, install_req_from_line,
|
||||
)
|
||||
from pip._internal.req.req_file import parse_requirements
|
||||
from pip._internal.utils.deprecation import deprecated
|
||||
from pip._internal.utils.logging import setup_logging
|
||||
from pip._internal.utils.misc import (
|
||||
get_prog, normalize_path, redact_password_from_url,
|
||||
|
@ -134,6 +135,15 @@ class Command(object):
|
|||
user_log_file=options.log,
|
||||
)
|
||||
|
||||
if sys.version_info[:2] == (3, 4):
|
||||
deprecated(
|
||||
"Python 3.4 support has been deprecated. pip 19.1 will be the "
|
||||
"last one supporting it. Please upgrade your Python as Python "
|
||||
"3.4 won't be maintained after March 2019 (cf PEP 429).",
|
||||
replacement=None,
|
||||
gone_in='19.2',
|
||||
)
|
||||
|
||||
# TODO: Try to get these passing down from the command?
|
||||
# without resorting to os.environ to hold these.
|
||||
# This also affects isolated builds and it should.
|
||||
|
|
|
@ -349,4 +349,4 @@ def in_memory_pip():
|
|||
@pytest.fixture
|
||||
def deprecated_python():
|
||||
"""Used to indicate wheither pip deprecated this python version"""
|
||||
return False
|
||||
return sys.version_info[:2] == (3, 4)
|
||||
|
|
Loading…
Reference in New Issue