replace appdirs dependency with platformdirs

Change-Id: I55906967775dc09939175a2f97210be0907891f0
This commit is contained in:
Thomas Goirand 2024-04-19 10:18:37 +02:00
parent 113ba244f8
commit d902da7120
2 changed files with 4 additions and 4 deletions

View File

@ -13,10 +13,10 @@
import copy
import os
import appdirs
import jsonschema
import logging
import pbr.version
import platformdirs
import yaml
from os_faults.ansible import executor
@ -38,11 +38,11 @@ def get_release():
return pbr.version.VersionInfo('os_faults').release_string()
APPDIRS = appdirs.AppDirs(appname='openstack', appauthor='OpenStack')
PTDR = platformdirs.PlatformDirs(appname='openstack', appauthor='OpenStack')
UNIX_SITE_CONFIG_HOME = '/etc/openstack'
CONFIG_SEARCH_PATH = [
os.getcwd(),
APPDIRS.user_config_dir,
PTDR.user_config_dir,
UNIX_SITE_CONFIG_HOME,
]
CONFIG_FILES = [

View File

@ -4,7 +4,6 @@
pbr>=2.0.0 # Apache-2.0
appdirs>=1.3.0 # MIT License
click>=6.7 # BSD
iso8601>=0.1.11 # MIT
jsonschema>=2.6.0 # MIT
@ -16,6 +15,7 @@ oslo.serialization>=1.10.0,<3.0.0;python_version=='2.7' # Apache-2.0
oslo.serialization>=1.10.0;python_version>='3.6' # Apache-2.0
oslo.utils>=3.20.0,<4.0.0;python_version=='2.7' # Apache-2.0
oslo.utils>=3.20.0;python_version>='3.6' # Apache-2.0
platformdirs # MIT License
pyghmi>=1.0.9,<1.5.0;python_version=='2.7' # Apache-2.0
pyghmi>=1.0.9;python_version>='3.6'
PyYAML>=3.10.0 # MIT