From d00fb4f34527999833b030c424a218a6fdd3db6e Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Sun, 29 Mar 2026 13:56:56 -0700 Subject: [PATCH] feat: add tantivy dependency, search package skeleton, search pytest marker Co-Authored-By: Claude Sonnet 4.6 --- pyproject.toml | 4 +++- src/documents/search/__init__.py | 0 src/documents/tests/search/__init__.py | 0 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 src/documents/search/__init__.py create mode 100644 src/documents/tests/search/__init__.py diff --git a/pyproject.toml b/pyproject.toml index ee89ae4dd..953d65d7d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -75,11 +75,11 @@ dependencies = [ "scikit-learn~=1.8.0", "sentence-transformers>=4.1", "setproctitle~=1.3.4", + "tantivy>=0.25.1", "tika-client~=0.10.0", "torch~=2.10.0", "watchfiles>=1.1.1", "whitenoise~=6.11", - "whoosh-reloaded>=2.7.5", "zxing-cpp~=3.0.0", ] @@ -123,6 +123,7 @@ testing = [ "pytest-rerunfailures~=16.1", "pytest-sugar", "pytest-xdist~=3.8.0", + "time-machine>=2.13", ] lint = [ @@ -299,6 +300,7 @@ markers = [ "greenmail: Tests requiring Greenmail service", "date_parsing: Tests which cover date parsing from content or filename", "management: Tests which cover management commands/functionality", + "search: Tests for the Tantivy search backend", ] [tool.pytest_env] diff --git a/src/documents/search/__init__.py b/src/documents/search/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/src/documents/tests/search/__init__.py b/src/documents/tests/search/__init__.py new file mode 100644 index 000000000..e69de29bb