-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Restrict docling
library versions to resolve dependency issues + update mypy
linting packages
#434
fix: Restrict docling
library versions to resolve dependency issues + update mypy
linting packages
#434
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me - thanks for the quick fix here!
Staging this for backport to the 0.6.x branch as well, as we'll need to cut a release with this change to fix CI as well as users installing SDG (and InstructLab) on a fresh system. @Mergifyio backport release-v0.6 |
aeaf94e
to
f95f706
Compare
`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]>
f95f706
to
2e00bb8
Compare
@courtneypacheco Would you mind editing the top message /title of the PR a bit to reflect the additional changes? Thanks! |
Oh, you already did, seemingly between when I decided to ask you to and when I typed that. Thanks for reading my mind! |
docling-parse>=2.0.0,<3.0.0
to resolve breaking issues from v3docling
library versions to resolve dependency issues + update mypy
linting packages
@Mergifyio backport release-v0.6 |
✅ Backports have been created
|
fix: Restrict `docling` library versions to resolve dependency issues + update `mypy` linting packages (backport #434)
Note: Resolves #439
docling-parse
is automatically pulled in bydocling
as a dependency, and v3.0.0 ofdocling-parse
contains breaking syntax changes that prevent our e2e builds ininstructlab
from succeeding. See issue in InstructLab here: instructlab/instructlab#2765For now, we will pin
docling-parse
to the latest v2 release while we investigate how we can update thedocling-parse
syntax to use the new v3 syntax. We will also pin todocling<=2.8.3
because v2.10.0 was updated to usedocling-parse>=3.0.0
. See here: https://github.com/DS4SD/docling/releases/tag/v2.10.0 (Docling-parse v2 as default PDF backend
)Finally,
mypy
is experiencing issues with a breaking upstream change, too. By default,mypy
pulls in the latest version ofpydantic
, which is unfortunately now incompatible withmypy
as of its v2.10 release. See:mypy
type-checking issues affecting aField
'sdefault
value ordefault_factory
after upgrade to 2.10 pydantic/pydantic#10950To workaround this dependency issue, I pinned the related dependency,
pydantic
, to<=v2.9.2
in ourtox.ini
file. This will force our latestmypy
to use a compatiblepydantic
. However, note that I did also pinmypy>=1.0,<1.14
. I did this as a safety measure for when themypy
maintainers inevitably fix the issue in v1.14 or later.