diff --git a/deeptutor/modules/manifests/parser-docling.json b/deeptutor/modules/manifests/parser-docling.json index a4fa38276..338f3f39f 100644 --- a/deeptutor/modules/manifests/parser-docling.json +++ b/deeptutor/modules/manifests/parser-docling.json @@ -16,7 +16,7 @@ "services": [], "requirements": [ "docling[xbrl]>=2.123.1", - "docling-slim[format-iwork,format-opendocument,format-video]>=2.123.1" + "docling-slim[format-iwork,format-opendocument]>=2.123.1" ], "executables": [], "parser_engine": "docling" diff --git a/requirements/modules/parser-docling.txt b/requirements/modules/parser-docling.txt index 0ea396806..253ba74fc 100644 --- a/requirements/modules/parser-docling.txt +++ b/requirements/modules/parser-docling.txt @@ -2,4 +2,4 @@ -r ../core.txt -r parsing.txt docling[xbrl]>=2.123.1 -docling-slim[format-iwork,format-opendocument,format-video]>=2.123.1 +docling-slim[format-iwork,format-opendocument]>=2.123.1 diff --git a/tests/services/parsing/test_engines.py b/tests/services/parsing/test_engines.py index 8c2807e81..c50001f9f 100644 --- a/tests/services/parsing/test_engines.py +++ b/tests/services/parsing/test_engines.py @@ -1001,7 +1001,7 @@ def test_install_manager_spec_allowlist() -> None: assert ENGINE_PIP_SPECS["liteparse"] == ["liteparse>=2.14.2"] assert ENGINE_PIP_SPECS["docling"] == [ "docling[xbrl]>=2.123.1", - "docling-slim[format-iwork,format-opendocument,format-video]>=2.123.1", + "docling-slim[format-iwork,format-opendocument]>=2.123.1", ] assert "text_only" not in ENGINE_PIP_SPECS assert "mineru" not in ENGINE_PIP_SPECS diff --git a/tests/test_packaging_metadata.py b/tests/test_packaging_metadata.py index f52d5bbb7..2857c067f 100644 --- a/tests/test_packaging_metadata.py +++ b/tests/test_packaging_metadata.py @@ -36,6 +36,17 @@ def test_generated_source_dependency_files_are_current(): assert (ROOT / "requirements" / filename).read_text(encoding="utf-8") == content +def test_docling_parser_avoids_source_only_build_dependencies(): + """The official image has no compiler. + + ``format-video`` pulls ``resemblyzer`` -> ``webrtcvad``, which ships only an + sdist. The document parser does not use Docling's video extras, so keep the + one-click install runnable in the published image (#2327). + """ + requirements = manifests()["parser-docling"]["requirements"] + assert all("format-video" not in requirement for requirement in requirements) + + @pytest.mark.parametrize( "module,requirement", [ @@ -55,7 +66,7 @@ def test_generated_source_dependency_files_are_current(): ("parser-pymupdf4llm", "pymupdf4llm>=1.28.2"), ("parser-liteparse", "liteparse>=2.14.2"), ("parser-docling", "docling[xbrl]>=2.123.1"), - ("parser-docling", "docling-slim[format-iwork,format-opendocument,format-video]>=2.123.1"), + ("parser-docling", "docling-slim[format-iwork,format-opendocument]>=2.123.1"), ], ) def test_dependency_floor_belongs_to_its_module(module, requirement):