From a42fa80549e42a1ba9abe5e9bb651bc0852113de Mon Sep 17 00:00:00 2001 From: Aiden Cullo Date: Sat, 6 Jul 2024 16:43:45 -0400 Subject: [PATCH] remove all instances of click from project.py --- pipenv/project.py | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/pipenv/project.py b/pipenv/project.py index 6620c1f677..a6bcc87a72 100644 --- a/pipenv/project.py +++ b/pipenv/project.py @@ -67,7 +67,7 @@ system_which, ) from pipenv.utils.toml import cleanup_toml, convert_toml_outline_tables -from pipenv.vendor import click, plette, tomlkit +from pipenv.vendor import plette, tomlkit try: # this is only in Python3.8 and later @@ -360,11 +360,8 @@ def get_hashes_from_remote_index_urls(self, ireq, source): except Exception: if self.s.is_verbose(): - click.echo( - "{}: Error generating hash for {}".format( - click.style("Warning", bold=True, fg="red"), ireq.name - ), - err=True, + err.print( + f"[bold red]Warning[/bold red]: Error generating hash for {ireq.name}" ) return None @@ -1306,11 +1303,8 @@ def load_lockfile(self, expand_env_vars=True): j = json.load(lock) self._lockfile_newlines = preferred_newlines(lock) except JSONDecodeError: - click.secho( - "Pipfile.lock is corrupted; ignoring contents.", - fg="yellow", - bold=True, - err=True, + err.print( + "[bold yellow]Pipfile.lock is corrupted; ignoring contents.[/bold yellow]" ) j = {} if not j.get("_meta"):