From f1c36f4eab3f94f38031cef79a8488526e1ac658 Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Sat, 6 Nov 2021 09:05:50 +0000 Subject: [PATCH] Deprecate custom progress bar styles Maintaining these is not particularly useful, since the progress bar provided by rich is capable of degrading gracefully to ASCII and alternative styles provided today aren't particularly usable either. --- src/pip/_internal/cli/req_command.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pip/_internal/cli/req_command.py b/src/pip/_internal/cli/req_command.py index dbd15cbce63..1607c78b187 100644 --- a/src/pip/_internal/cli/req_command.py +++ b/src/pip/_internal/cli/req_command.py @@ -276,6 +276,13 @@ def make_requirement_preparer( gone_in="22.1", ) + if options.progress_bar not in {"on", "off"}: + deprecated( + reason="Custom progress bar styles are deprecated", + replacement="to use the default progress bar style.", + gone_in="22.1", + ) + return RequirementPreparer( build_dir=temp_build_dir_path, src_dir=options.src_dir,