Skip to content

Commit 7553eca

Browse files
Copilotkarangattu
andcommitted
Replace deprecated appdirs with platformdirs
Co-authored-by: karangattu <[email protected]>
1 parent ed7d638 commit 7553eca

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dependencies = [
3737
"markdown-it-py>=1.1.0",
3838
"mdit-py-plugins>=0.3.0",
3939
"linkify-it-py>=1.0",
40-
"appdirs>=1.4.4",
40+
"platformdirs>=3.0.0",
4141
"asgiref>=3.5.2",
4242
"packaging>=20.9",
4343
"watchfiles>=0.18.0;platform_system!='Emscripten'",

shiny/_static.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ def remove_shinylive_local(
3636

3737

3838
def get_default_shinylive_dir() -> Path:
39-
import appdirs
39+
import platformdirs
4040

4141
return (
4242
Path(
43-
appdirs.user_cache_dir( # pyright: ignore[reportUnknownMemberType, reportUnknownArgumentType]
44-
"shiny"
43+
platformdirs.user_cache_dir( # pyright: ignore[reportUnknownMemberType, reportUnknownArgumentType]
44+
appname="shiny"
4545
)
4646
)
4747
/ "shinylive"

0 commit comments

Comments
 (0)