Skip to content

Commit 06115b2

Browse files
authored
Merge pull request #32 from CAM-Gerlach/switch-to-platformdirs
2 parents 538dff5 + 84a14b7 commit 06115b2

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Change Log
44
Unreleased
55
----------
66

7+
- Switch from unmaintained ``appdirs`` to the replacement ``platformdirs``.
8+
79
1.4.1 (2021/09/10)
810
------------------
911

docstrfmt/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
from copy import copy
55
from pathlib import Path
66

7-
from appdirs import user_cache_dir
87
from docutils.parsers.rst.states import ParserError
98
from docutils.utils import roman
9+
from platformdirs import user_cache_path
1010

1111
from .const import __version__
1212

1313

1414
class FileCache:
1515
def __init__(self, context):
16-
self.cache_dir = Path(user_cache_dir("docstrfmt", version=__version__))
16+
self.cache_dir = user_cache_path("docstrfmt", version=__version__)
1717
self.context = context
1818
self.cache = self.read_cache()
1919

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@
4949
},
5050
extras_require=extras_requires,
5151
install_requires=[
52-
"appdirs",
5352
"black>=19.10b0",
5453
"click<8.0.0",
5554
"docutils",
5655
"libcst",
56+
"platformdirs",
5757
"sphinx>=2.4.0",
5858
"tabulate",
5959
"toml",

0 commit comments

Comments
 (0)