Replace appdirs by platformdirs

appdirs was deprecated[1] and now platformdirs is the recommended
replacement.

[1] 8734277956

Change-Id: I32fab3052e858394429d15bc6fa2ec89b2d41f51
This commit is contained in:
Takashi Kajinami 2024-03-30 02:35:13 +09:00
parent b319505e2f
commit 52467b5498
2 changed files with 3 additions and 3 deletions

View File

@ -17,8 +17,8 @@
import logging
import os
import appdirs
import dogpile.cache
import platformdirs
LOG = logging.getLogger(__name__)
@ -27,7 +27,7 @@ AUTHOR = 'openstack'
PROGNAME = 'python-ironicclient'
CACHE = None
CACHE_DIR = appdirs.user_cache_dir(PROGNAME, AUTHOR)
CACHE_DIR = platformdirs.user_cache_dir(PROGNAME, AUTHOR)
CACHE_EXPIRY_ENV_VAR = 'IRONICCLIENT_CACHE_EXPIRY' # environment variable
CACHE_FILENAME = os.path.join(CACHE_DIR, 'ironic-api-version.dbm')
DEFAULT_EXPIRY = 300 # seconds

View File

@ -6,7 +6,7 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
pbr!=2.1.0,>=2.0.0 # Apache-2.0
appdirs>=1.3.0 # MIT License
platformdirs>=3 # MIT License
cliff!=2.9.0,>=2.8.0 # Apache-2.0
dogpile.cache>=0.8.0 # BSD
jsonschema>=3.2.0 # MIT