Bump platformdirs to 3.x and remove the migration code for 2.x (#6098)

This commit is contained in:
Jakub Kuczys 2023-04-25 07:29:10 +02:00 committed by GitHub
parent d8d4b4f15a
commit 5fecff0779
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 9 deletions

View File

@ -51,14 +51,6 @@ if _system_user:
config_dir = appdir.site_data_path
config_file = config_dir / "config.json"
if not config_file.exists() and sys.platform == "darwin":
# backwards compatibility with the location given by appdirs 1.4.4 (replaced by platformdirs 2)
# which was the same as user_data_path
# https://platformdirs.readthedocs.io/en/stable/changelog.html#platformdirs-2-0-0
_old_config_location = appdir.user_data_path / "config.json"
if _old_config_location.exists():
config_dir.mkdir(parents=True, exist_ok=True)
_old_config_location.rename(config_file)
def load_existing_config():

View File

@ -52,7 +52,7 @@ orjson==3.8.3
# via -r base.in
packaging==22.0
# via -r base.in
platformdirs==2.6.0
platformdirs==3.2.0
# via -r base.in
psutil==5.9.4
# via -r base.in