diff --git a/Makefile b/Makefile index 215ef4cb4..b9f880343 100644 --- a/Makefile +++ b/Makefile @@ -56,9 +56,6 @@ clean-test: FORCE rm -fr .pytest_cache rm -rf typings/ -typings/appdirs: - @echo "Creating appdirs stubs" - pyright --createstub appdirs typings/folium: @echo "Creating folium stubs" pyright --createstub folium @@ -75,7 +72,7 @@ typings/matplotlib/__init__.pyi: mv typings/python-type-stubs/stubs/matplotlib typings/ rm -rf typings/python-type-stubs -pyright-typings: typings/appdirs typings/folium typings/uvicorn typings/seaborn typings/matplotlib/__init__.pyi +pyright-typings: typings/folium typings/uvicorn typings/seaborn typings/matplotlib/__init__.pyi check: check-format check-lint check-types check-tests ## check code, style, types, and test (basic CI) check-fix: format check-lint check-types check-tests ## check and format code, style, types, and test diff --git a/pyproject.toml b/pyproject.toml index 0a5ef7e76..4dbcd5f47 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ dependencies = [ "markdown-it-py>=1.1.0", "mdit-py-plugins>=0.3.0", "linkify-it-py>=1.0", - "appdirs>=1.4.4", + "platformdirs>=2.1.0", "asgiref>=3.5.2", "packaging>=20.9", "watchfiles>=0.18.0;platform_system!='Emscripten'", diff --git a/shiny/_static.py b/shiny/_static.py index 96d00c6ef..17f10c2c9 100644 --- a/shiny/_static.py +++ b/shiny/_static.py @@ -36,16 +36,10 @@ def remove_shinylive_local( def get_default_shinylive_dir() -> Path: - import appdirs - - return ( - Path( - appdirs.user_cache_dir( # pyright: ignore[reportUnknownMemberType, reportUnknownArgumentType] - "shiny" - ) - ) - / "shinylive" - ) + import platformdirs + + user_cache_dir = platformdirs.user_cache_dir("shinylive") + return Path(user_cache_dir) / "shinylive" def _installed_shinylive_versions(shinylive_dir: Optional[Path] = None) -> list[str]: