Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
fix: retain host postprocessing in built distributions
myhloli444ae774fa72
diff --git a/mineru/backend/postprocess/__init__.py b/mineru/backend/postprocess/__init__.pynew file mode 100644index 00000000..a199121f--- /dev/null+++ b/mineru/backend/postprocess/__init__.py@@ -0,0 +1,4 @@+# Copyright (c) Opendatalab. All rights reserved.+"""宿主后处理编排与可选 LLM 增强,确定性实现由 DocGale 提供。"""++__all__ = []diff --git a/tests/unittest/test_backend_architecture.py b/tests/unittest/test_backend_architecture.pyindex 7e87b9c8..53290a06 100644--- a/tests/unittest/test_backend_architecture.py+++ b/tests/unittest/test_backend_architecture.py@@ -399,3 +399,10 @@ def test_table_merge_public_contract_remains_callable() -> None:]assert table_merge.__all__ == function_namesassert all(callable(getattr(table_merge, name, None)) for name in function_names)+++def test_host_postprocess_remains_a_regular_package() -> None:+ """宿主 LLM 目录必须参与 wheel 包发现,避免源码可导入但发行包遗漏。"""+ spec = importlib.util.find_spec("mineru.backend.postprocess")+ assert spec is not None and spec.origin is not None+ assert spec.origin.endswith("__init__.py")