Skip to content

Commit

Permalink
Switch from using appdirs to platformdirs (#98)
Browse files Browse the repository at this point in the history
Fixes #96
  • Loading branch information
hoechenberger authored Jun 28, 2023
1 parent 4c8c7e0 commit fd70c24
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Changelog

## unreleased
## 2023.1.0 (unreleased)

- Better handling of server response errors.
- We switched from using the unmaintained `appdirs` to `platformdirs`. If you're using private OpenNeuro repositories on macOS, you may have to enter your API tokens again.

## 2022.2.0

Expand Down
4 changes: 2 additions & 2 deletions openneuro/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
else:
from typing_extensions import TypedDict

import appdirs
import platformdirs
from tqdm.auto import tqdm


CONFIG_DIR = Path(
appdirs.user_config_dir(appname='openneuro-py', appauthor=False, roaming=True)
platformdirs.user_config_dir(appname='openneuro-py', appauthor=False, roaming=True)
)
CONFIG_DIR.mkdir(parents=True, exist_ok=True)
CONFIG_PATH = CONFIG_DIR / 'config.json'
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies = [
"sgqlc",
"importlib-metadata; python_version < '3.8'",
"typing-extensions; python_version < '3.8'",
"appdirs",
"platformdirs",
]
dynamic = ["version"]

Expand Down

0 comments on commit fd70c24

Please sign in to comment.