From c1a2fc849de9736fa589b53aeaba650308ca9fd1 Mon Sep 17 00:00:00 2001 From: Oz Tiram Date: Sun, 13 Nov 2022 10:03:35 +0100 Subject: [PATCH] cli: remove create_spinner from --rm This is in favour of `rich.console.Console`. --- pipenv/cli/command.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pipenv/cli/command.py b/pipenv/cli/command.py index d5047adc..ab665de5 100644 --- a/pipenv/cli/command.py +++ b/pipenv/cli/command.py @@ -80,8 +80,8 @@ def cli( site_packages=None, **kwargs, ): + from pipenv.patched.pip._vendor import rich from pipenv.utils.shell import system_which - from pipenv.utils.spinner import create_spinner load_dot_env(state.project, quiet=state.quiet) @@ -188,7 +188,10 @@ def cli( ) ) ) - with create_spinner(text="Running...", setting=state.project.s): + + console = rich.console.Console() + # TODO: add state.project.s to spinner status + with console.status("Running..."): # Remove the virtualenv. cleanup_virtualenv(state.project, bare=True) return 0