Skip to content

Commit

Permalink
Switch from unmaintained appdirs to the dropin replacement platformdirs
Browse files Browse the repository at this point in the history
  • Loading branch information
CAM-Gerlach committed Sep 14, 2021
1 parent 538dff5 commit 84a14b7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Change Log
Unreleased
----------

- Switch from unmaintained ``appdirs`` to the replacement ``platformdirs``.

1.4.1 (2021/09/10)
------------------

Expand Down
4 changes: 2 additions & 2 deletions docstrfmt/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
from copy import copy
from pathlib import Path

from appdirs import user_cache_dir
from docutils.parsers.rst.states import ParserError
from docutils.utils import roman
from platformdirs import user_cache_path

from .const import __version__


class FileCache:
def __init__(self, context):
self.cache_dir = Path(user_cache_dir("docstrfmt", version=__version__))
self.cache_dir = user_cache_path("docstrfmt", version=__version__)
self.context = context
self.cache = self.read_cache()

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
},
extras_require=extras_requires,
install_requires=[
"appdirs",
"black>=19.10b0",
"click<8.0.0",
"docutils",
"libcst",
"platformdirs",
"sphinx>=2.4.0",
"tabulate",
"toml",
Expand Down

0 comments on commit 84a14b7

Please sign in to comment.