Merge "Replace appdirs by platformdirs"

This commit is contained in:
Zuul 2024-03-29 21:18:58 +00:00 committed by Gerrit Code Review
commit 2e8d526f0d
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