未验证 提交 91b36ce3 编写于 作者: R Roman Donchenko 提交者: GitHub

Replace appdirs with platformdirs (#5644)

Turns out, appdirs is not very well maintained; even its own README
suggests
switching: <https://github.com/ActiveState/appdirs>.
上级 d99125a8
......@@ -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
......
-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
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册