Skip to content

Commit 83836b9

Browse files
committed
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.
1 parent db31c82 commit 83836b9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/pip/_internal/cli/req_command.py

+7
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,13 @@ def make_requirement_preparer(
276276
gone_in="22.1",
277277
)
278278

279+
if options.progress_bar not in {"on", "off"}:
280+
deprecated(
281+
reason="Custom progress bar styles are deprecated",
282+
replacement="to use the default progress bar style.",
283+
gone_in="22.1",
284+
)
285+
279286
return RequirementPreparer(
280287
build_dir=temp_build_dir_path,
281288
src_dir=options.src_dir,

0 commit comments

Comments
 (0)