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:
@@ -17,8 +17,8 @@
|
|||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import appdirs
|
|
||||||
import dogpile.cache
|
import dogpile.cache
|
||||||
|
import platformdirs
|
||||||
|
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
@@ -27,7 +27,7 @@ AUTHOR = 'openstack'
|
|||||||
PROGNAME = 'python-ironicclient'
|
PROGNAME = 'python-ironicclient'
|
||||||
|
|
||||||
CACHE = None
|
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_EXPIRY_ENV_VAR = 'IRONICCLIENT_CACHE_EXPIRY' # environment variable
|
||||||
CACHE_FILENAME = os.path.join(CACHE_DIR, 'ironic-api-version.dbm')
|
CACHE_FILENAME = os.path.join(CACHE_DIR, 'ironic-api-version.dbm')
|
||||||
DEFAULT_EXPIRY = 300 # seconds
|
DEFAULT_EXPIRY = 300 # seconds
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
# of appearance. Changing the order has an impact on the overall integration
|
# of appearance. Changing the order has an impact on the overall integration
|
||||||
# process, which may cause wedges in the gate later.
|
# process, which may cause wedges in the gate later.
|
||||||
pbr!=2.1.0,>=2.0.0 # Apache-2.0
|
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
|
cliff!=2.9.0,>=2.8.0 # Apache-2.0
|
||||||
dogpile.cache>=0.8.0 # BSD
|
dogpile.cache>=0.8.0 # BSD
|
||||||
jsonschema>=3.2.0 # MIT
|
jsonschema>=3.2.0 # MIT
|
||||||
|
Reference in New Issue
Block a user