Skip to content
This repository was archived by the owner on Apr 26, 2025. It is now read-only.

Commit f45d13f

Browse files
authored
fix: replace halo with yaspin (#19)
* fix: replace halo with yaspin * fix: move yaspin to the correct group * fix: use text instead of write
1 parent b25db81 commit f45d13f

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

fief_client/integrations/cli.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
import urllib.parse
1111
import webbrowser
1212

13-
from halo import Halo
13+
from yaspin import yaspin
14+
from yaspin.spinners import Spinners
1415

1516
from fief_client import (
1617
Fief,
@@ -233,8 +234,9 @@ def authorize(
233234
)
234235
webbrowser.open(authorization_url)
235236

236-
spinner = Halo(
237-
text="Please complete authentication in your browser.", spinner="dots"
237+
spinner = yaspin(
238+
text="Please complete authentication in your browser.",
239+
spinner=Spinners.dots,
238240
)
239241
spinner.start()
240242

@@ -263,7 +265,7 @@ def authorize(
263265
)
264266
self._save_credentials(tokens, userinfo)
265267

266-
spinner.succeed("Successfully authenticated")
268+
spinner.ok("Successfully authenticated")
267269

268270
return tokens, userinfo
269271

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module = "jwcrypto.*"
33
ignore_missing_imports = true
44

55
[[tool.mypy.overrides]]
6-
module = "halo.*"
6+
module = "yaspin.*"
77
ignore_missing_imports = true
88

99
[tool.ruff]
@@ -113,7 +113,7 @@ flask = [
113113
]
114114

115115
cli = [
116-
"halo",
116+
"yaspin",
117117
]
118118

119119
[project.urls]

0 commit comments

Comments
 (0)