From 0e58464136997050ba08e28ba2e09eebc42bb9e5 Mon Sep 17 00:00:00 2001 From: "John T. Wodder II" Date: Wed, 8 Nov 2023 09:36:10 -0500 Subject: [PATCH] Replace appdirs with platformdirs --- dandi/cli/command.py | 4 ++-- setup.cfg | 2 +- tox.ini | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dandi/cli/command.py b/dandi/cli/command.py index d6e09c835..0723219a1 100644 --- a/dandi/cli/command.py +++ b/dandi/cli/command.py @@ -9,9 +9,9 @@ import sys from types import SimpleNamespace -import appdirs import click from click_didyoumean import DYMGroup +import platformdirs from .base import lgr, map_to_click_exceptions from .. import __version__, set_logger_level @@ -97,7 +97,7 @@ def main(ctx, log_level, pdb=False): h.addFilter(lambda r: not getattr(r, "file_only", False)) set_logger_level(h, log_level) - logdir = appdirs.user_log_dir("dandi-cli", "dandi") + logdir = platformdirs.user_log_dir("dandi-cli", "dandi") logfile = os.path.join( logdir, "{:%Y%m%d%H%M%SZ}-{}.log".format(datetime.utcnow(), os.getpid()) ) diff --git a/setup.cfg b/setup.cfg index f25d4a2c8..6b24a566f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -29,7 +29,6 @@ project_urls = [options] python_requires = >=3.8 install_requires = - appdirs bidsschematools ~= 0.7.0 click click-didyoumean @@ -44,6 +43,7 @@ install_requires = keyring != 23.9.0 keyrings.alt packaging + platformdirs pycryptodomex # for EncryptedKeyring backend in keyrings.alt pydantic >= 1.9.0 pynwb >= 1.0.3,!=1.1.0,!=2.3.0 diff --git a/tox.ini b/tox.ini index 248f5fdd1..1b4f51c2f 100644 --- a/tox.ini +++ b/tox.ini @@ -29,7 +29,6 @@ commands = [testenv:typing] deps = mypy - types-appdirs types-python-dateutil types-requests commands =