diff --git a/pyproject.toml b/pyproject.toml index 0ea64c5a..66a952cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ dynamic = ["version"] dependencies = [ "attrs>=21.3.0", "dictdiffer>=0.8.1", - "diskcache>=5.2.1", + "diskcache-community>=5.7.0", "dvc-objects>=5.2,<6", "fsspec>=2024.2.0", "funcy>=1.14; python_version < '3.12'", diff --git a/src/dvc_data/hashfile/cache.py b/src/dvc_data/hashfile/cache.py index 7626d56d..76e15496 100644 --- a/src/dvc_data/hashfile/cache.py +++ b/src/dvc_data/hashfile/cache.py @@ -6,12 +6,8 @@ from itertools import zip_longest from typing import Any, ClassVar, Literal, Optional -import diskcache -from diskcache import Disk as _Disk -from diskcache import ( - Index, # noqa: F401 - Timeout, # noqa: F401 -) +import diskcache_community as diskcache +from diskcache_community import Disk as _Disk from dvc_data.compat import batched