Skip to content

Commit

Permalink
Use platformdirs over appdirs
Browse files Browse the repository at this point in the history
Signed-off-by: Bernát Gábor <[email protected]>
Signed-off-by: Bernát Gábor <[email protected]>
Signed-off-by: Bernát Gábor <[email protected]>
  • Loading branch information
gaborbernat committed Jul 16, 2021
1 parent e3000ac commit 4f6b2ce
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 34 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## Unreleased

- Moved from `appdirs` dependency to `platformdirs` (#2375)

## 21.7b0

### _Black_
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ black = {editable = true, extras = ["d"], path = "."}
[packages]
aiohttp = ">=3.6.0"
aiohttp-cors = ">=0.4.0"
appdirs = "*"
platformdirs= ">=2"
click = ">=8.0.0"
mypy_extensions = ">=0.4.3"
pathspec = ">=0.8.1"
Expand Down
83 changes: 52 additions & 31 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def get_long_description() -> str:
zip_safe=False,
install_requires=[
"click>=7.1.2",
"appdirs",
"platformdirs>=2",
"tomli>=0.2.6,<2.0.0",
"typed-ast>=1.4.2; python_version < '3.8'",
"regex>=2020.1.8",
Expand Down
2 changes: 1 addition & 1 deletion src/black/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import tempfile
from typing import Dict, Iterable, Set, Tuple

from appdirs import user_cache_dir
from platformdirs import user_cache_dir

from black.mode import Mode

Expand Down

0 comments on commit 4f6b2ce

Please sign in to comment.