diff --git a/pyproject.toml b/pyproject.toml index 4efedf0..dbe07a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -73,7 +73,8 @@ mcp = [ # fall back to a dependency-free regex indexer without this — see backends/codegraph.py. code = [ "tree-sitter>=0.23", - "tree-sitter-language-pack==0.9.0", + "tree-sitter-language-pack==0.9.0; python_version < '3.10'", + "tree-sitter-language-pack==1.13.3; python_version >= '3.10'", ] # Local resource extraction. Text/code/HTML/DOCX remain stdlib-only; this adds PDF # extraction and image OCR bindings (the Tesseract executable is installed separately). @@ -116,7 +117,8 @@ all = [ "pydantic-settings>=2.14.2; python_version >= '3.10'", "cryptography>=48.0.1; python_version >= '3.10'", "tree-sitter>=0.23", - "tree-sitter-language-pack==0.9.0", + "tree-sitter-language-pack==0.9.0; python_version < '3.10'", + "tree-sitter-language-pack==1.13.3; python_version >= '3.10'", "pypdf>=4.0", "Pillow>=12.3.0; python_version >= '3.10'", "pytesseract>=0.3.10", @@ -145,7 +147,8 @@ test = [ "pydantic-settings>=2.14.2; python_version >= '3.10'", "cryptography>=48.0.1; python_version >= '3.10'", "tree-sitter>=0.23", - "tree-sitter-language-pack==0.9.0", + "tree-sitter-language-pack==0.9.0; python_version < '3.10'", + "tree-sitter-language-pack==1.13.3; python_version >= '3.10'", "pypdf>=4.0", "Pillow>=12.3.0; python_version >= '3.10'", "pytesseract>=0.3.10",