Skip to content

Commit

Permalink
removes leftover click import
Browse files Browse the repository at this point in the history
  • Loading branch information
edublancas committed Jan 23, 2024
1 parent 5cefaa9 commit e32e87b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## 0.2.23dev

* [Fix] Fully removes dependency on `click`

## 0.2.22 (2024-01-12)

* [Fix] `click` is no longer a dependency
Expand Down
11 changes: 4 additions & 7 deletions src/ploomber_core/telemetry/telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
from functools import wraps
import warnings

import click
import posthog

from ploomber_core.telemetry import validate_inputs
Expand Down Expand Up @@ -290,11 +289,10 @@ def check_version(package_name, version):
if "dev" in version:
return

click.secho(
print(
f"There's a new {package_name} version available ({latest}), "
f"you're running {version}. To upgrade: "
f"pip install {package_name} --upgrade",
fg="yellow",
f"pip install {package_name} --upgrade"
)

# Update latest check date
Expand All @@ -319,10 +317,9 @@ def check_cloud():
if internal.last_cloud_check and (now - internal.last_cloud_check).days < 2:
return

click.secho(
print(
"Deploy AI and data apps for free on Ploomber Cloud! "
"Learn more: https://docs.cloud.ploomber.io/en/latest/quickstart/signup.html",
fg="green",
"Learn more: https://docs.cloud.ploomber.io/en/latest/quickstart/signup.html"
)

# Update latest check date
Expand Down

0 comments on commit e32e87b

Please sign in to comment.