Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supplant appdirs with platformdirs #783

Merged
merged 1 commit into from
Jul 13, 2022
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
1 change: 1 addition & 0 deletions changes/783.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Use platformdirs instead of appdirs to determine OS-native user data directory.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/briefcase/commands/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
):
Expand Down