Repository navigation
Depend on pymupdf-lite instead of pymupdf - #373
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #373 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 42 42
Lines 2868 2867 -1
Branches 432 432
=========================================
- Hits 2868 2867 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
pymupdf 2.0 hard-depends on onnxruntime, numpy, networkx, pymupdf-layout, pymupdf4llm and more, pulled into every scraper. pymupdf-lite is the official build of the same pymupdf module without the layout engine, and without any dependency. Fix #372
benoit74
force-pushed
the
benoit74/pin-pymupdf-1
branch
from
October 29, 2026 13:47
54d3cda to
ff2aff4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix #372 for Python 3.14 users, in a 5.5.1 patch release.
#366 (released in 5.5.0) allowed pymupdf 2, but pymupdf 2.0 now hard-depends on
onnxruntime,numpy,networkx,pymupdf-layout,pymupdf4llm,psutil,tabulateandpyyaml. A fresh install of zimscraperlib 5.5.0 on Python 3.14 indeed installs:This switches to pymupdf-lite
>=2.0,<3.0, the official build of pymupdf by Artifex without its layout engine (see README-lite.md): it has no dependency at all and installs the very samepymupdfmodule (minuspymupdf/layout, which we do not use), so no code change is needed. See #372 (comment) for details.The
fitzimport fallback (for pymupdf < 1.24.3) is removed, since pymupdf-lite 2.0 is now the minimum.Caveat (also in the changelog): a scraper also depending on the full
pymupdfmust keep both at the same version, since both distributions install the samepymupdfpackage.