Skip to content

Commit

Permalink
Pin docling-parse>=2.0.0,<3.0.0 + pin pydantic==2.9.2
Browse files Browse the repository at this point in the history
`docling-parse` v3.0.0 contains breaking changes to the syntax, which is currently breaking our builds.

Also, `mypy` < v1.14  pulls in the latest version of `pydantic` by default, so this commimt hardcodes the correct span of `pydantic` versions that are compatible with `mypy` < v1.14

Finally, we want to pin `docling[tesserocr]>=2.4.2,<=2.8.3` due to breaking changes in v2.9.0 on 9 Dec 2024.

Signed-off-by: Courtney Pacheco <[email protected]>
  • Loading branch information
courtneypacheco authored and bbrowning committed Dec 10, 2024
1 parent c220b5f commit 9e29731
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: Apache-2.0
click>=8.1.7,<9.0.0
datasets>=2.18.0,<3.0.0
docling[tesserocr]>=2.4.2,<3.0.0
docling[tesserocr]>=2.4.2,<=2.8.3
docling-parse>=2.0.0,<3.0.0
GitPython>=3.1.42,<4.0.0
gguf>=0.6.0
httpx>=0.25.0,<1.0.0
Expand Down
5 changes: 4 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,13 @@ allowlist_externals = sh

[testenv:mypy]
description = Python type checking with mypy
# Note: 'mypy<1.14' by default pulls the latest 'pydantic' release as a dependency, but 'pydantic>=2.10' does not
# work with 'mypy<1.14', so for compatibility purposes, we set 'pydantic<=2.9.2'
deps =
mypy>=1.10.0,<2.0
mypy>=1.10.0,<1.14
types-PyYAML
pytest
pydantic<=2.9.2
commands =
mypy src

Expand Down

0 comments on commit 9e29731

Please sign in to comment.