Replace appdirs with platformdirs (#5644)

Turns out, appdirs is not very well maintained; even its own README
suggests
switching: <https://github.com/ActiveState/appdirs>.
main
Roman Donchenko 3 years ago committed by GitHub
parent d99125a8ea
commit 91b36ce393
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -12,9 +12,9 @@ from pathlib import Path
from time import sleep
from typing import Any, Dict, Optional, Sequence, Tuple
import appdirs
import attrs
import packaging.version as pv
import platformdirs
import urllib3
import urllib3.exceptions
@ -29,7 +29,7 @@ from cvat_sdk.core.proxies.tasks import TasksRepo
from cvat_sdk.core.proxies.users import UsersRepo
from cvat_sdk.version import VERSION
_DEFAULT_CACHE_DIR = Path(appdirs.user_cache_dir("cvat-sdk", "CVAT.ai"))
_DEFAULT_CACHE_DIR = platformdirs.user_cache_path("cvat-sdk", "CVAT.ai")
@attrs.define

@ -1,9 +1,9 @@
-r api_client.txt
appdirs
attrs >= 21.4.0
packaging >= 21.3
Pillow >= 9.0.1
platformdirs >= 2.1.0
tqdm >= 4.64.0
tuspy == 0.2.5 # have it pinned, because SDK has lots of patched TUS code
typing_extensions >= 4.2.0
Loading…
Cancel
Save