Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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'",
Expand Down
14 changes: 4 additions & 10 deletions shiny/_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down
Loading