Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Depend on `pymupdf-lite` instead of `pymupdf`: same `pymupdf` module, without pymupdf 2.0 layout engine and the heavy dependencies (onnxruntime, numpy, ...) it pulled into every scraper; a scraper also depending on the full `pymupdf` must keep both at the same version (#372)

## [5.5.0] - 2026-10-29

### Added
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ dependencies = [
# promise is that they will never (or always) break the API, and the API is very
# limited and we use only a very small subset of it.
"regex>=2020.7.14",
"pymupdf>=1.24.0,<3.0",
# pymupdf-lite is the official build of pymupdf without its layout engine, and
# without the heavy dependencies (onnxruntime, numpy, ...) it brings since 2.0
"pymupdf-lite>=2.0,<3.0",
"CairoSVG>=2.2.0,<3.0",
"beartype>=0.19,<0.24",
# youtube-dl should be updated as frequently as possible
Expand Down
7 changes: 1 addition & 6 deletions src/zimscraperlib/zim/indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
import pathlib

import libzim.writer # pyright: ignore[reportMissingModuleSource]

try:
import pymupdf # pyright: ignore[reportMissingTypeStubs]
except ImportError: # pragma: no cover
# pymupdf main module was named fitz before 1.24.3
import fitz as pymupdf # pyright: ignore[reportMissingTypeStubs]
import pymupdf # pyright: ignore[reportMissingTypeStubs]

from zimscraperlib import logger

Expand Down