Skip to content

Commit 7906eaf

Browse files
committed
general: migrate appdirs -> platformdirs
appdirs is unmaintained, platformdirs is a compatible replacement
1 parent a263c13 commit 7906eaf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
dynamic = ["version"] # version is managed by setuptools_scm
44
name = "orger"
55
dependencies = [
6-
"appdirs" , # to keep state files
6+
"platformdirs", # to keep state files
77
"atomicwrites", # to safely append data to a file
88
]
99
requires-python = ">= 3.9"

src/orger/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ def todo(dt: datetime, **kwargs):
6060

6161

6262
def orger_user_dir() -> Path:
63-
import appdirs # type: ignore[import-untyped]
63+
import platformdirs
6464

65-
return Path(appdirs.user_config_dir('orger'))
65+
return Path(platformdirs.user_config_dir('orger'))
6666

6767

6868
if not TYPE_CHECKING:

0 commit comments

Comments
 (0)