diff --git a/changes/783.misc.rst b/changes/783.misc.rst new file mode 100644 index 000000000..4dd00e58e --- /dev/null +++ b/changes/783.misc.rst @@ -0,0 +1 @@ +Use platformdirs instead of appdirs to determine OS-native user data directory. diff --git a/setup.cfg b/setup.cfg index aa0f7fdf6..4089aea4a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -62,7 +62,7 @@ install_requires = dmgbuild >= 1.3.3; sys_platform == "darwin" psutil >= 5.9.0 rich >= 12.4.1 - appdirs >= 1.4.4 + platformdirs >= 2.5.2 [options.packages.find] where = src diff --git a/src/briefcase/commands/base.py b/src/briefcase/commands/base.py index e4617a952..614ca29fe 100644 --- a/src/briefcase/commands/base.py +++ b/src/briefcase/commands/base.py @@ -11,9 +11,9 @@ from urllib.parse import urlparse import requests -from appdirs import AppDirs from cookiecutter.main import cookiecutter from cookiecutter.repository import is_repo_url +from platformdirs import PlatformDirs try: import tomllib @@ -118,7 +118,7 @@ def __init__( self, base_path, home_path=Path.home(), - data_path=Path(AppDirs(appname="briefcase", appauthor="BeeWare").user_data_dir), + data_path=PlatformDirs(appname="briefcase", appauthor="BeeWare").user_data_path, apps=None, input_enabled=True, ):