Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove all instances of click from project.py #6193

Merged
merged 1 commit into from
Jul 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions pipenv/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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"):
Expand Down
Loading