From 77e1c0de3530b8547c822b4ded05b0741c6c8ff0 Mon Sep 17 00:00:00 2001 From: shubhamsargar31 Date: Sun, 25 Oct 2026 17:40:32 +0530 Subject: [PATCH 1/2] Fix SQLite DQS=0 compatibility --- pyproject.toml | 2 +- src/dvc_data/hashfile/cache.py | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) 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..d1239dc4 100644 --- a/src/dvc_data/hashfile/cache.py +++ b/src/dvc_data/hashfile/cache.py @@ -6,13 +6,12 @@ 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 diskcache_community import ( + Index, + Timeout, ) - from dvc_data.compat import batched From 1b0001c950df8551552831c898781732ca1a0158 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 25 Oct 2026 12:28:58 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/dvc_data/hashfile/cache.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/dvc_data/hashfile/cache.py b/src/dvc_data/hashfile/cache.py index d1239dc4..76e15496 100644 --- a/src/dvc_data/hashfile/cache.py +++ b/src/dvc_data/hashfile/cache.py @@ -8,10 +8,7 @@ import diskcache_community as diskcache from diskcache_community import Disk as _Disk -from diskcache_community import ( - Index, - Timeout, -) + from dvc_data.compat import batched