-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
type: deprecationRelated to deprecation / removal.Related to deprecation / removal.
Description
The --always-unzip
option is specified as Deprecated in the code comments, and is not visible to the end-user (also see #2429 (comment)):
pip/src/pip/_internal/cli/cmdoptions.py
Lines 827 to 838 in 19e739c
# Deprecated, Remove later | |
always_unzip = partial( | |
Option, | |
'-Z', '--always-unzip', | |
dest='always_unzip', | |
action='store_true', | |
help=SUPPRESS_HELP, | |
) # type: Callable[..., Option] | |
# TODO: Move into a class that inherits from partial, currently does not | |
# work as mypy complains functools.partial is a generic class. | |
# This way we know we can ignore this option in docs auto generation | |
setattr(always_unzip, 'deprecated', True) |
And is also a no-op (we have a test which checks that as well when used in requirements.txt
)
pip/tests/unit/test_req_file.py
Lines 381 to 383 in 19e739c
def test_noop_always_unzip(self, line_processor, finder): | |
# noop, but confirm it can be set | |
line_processor("--always-unzip", "file", 1, finder=finder) |
Given those facts, we can go ahead and remove --always-unzip
from the source code and tests.
If this is something we agree upon, I can go ahead and create a PR for the same.
xavfernandez and gutsytechster
Metadata
Metadata
Assignees
Labels
type: deprecationRelated to deprecation / removal.Related to deprecation / removal.