Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #374 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 42 42
Lines 2868 2865 -3
Branches 432 432
=========================================
- Hits 2868 2865 -3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
benoit74
force-pushed
the
benoit74/python-3.15
branch
from
October 29, 2026 13:28
f9ab759 to
33032b9
Compare
- require libzim 4, the first version supporting Python 3.15, and hatch-openzim 0.4 - adapt to libzim 4 API: renamed search methods, get_entry_by_id now in libzim, add_illustration(content, width, height) signature, add_alias(target_path=) - Archive.get_search_results yields libzim 4 SearchResult objects - depend on pymupdf-lite instead of pymupdf, whose 2.0 pulls heavy dependencies (#372) - build docs on Read the Docs with a uv-installed Python 3.15 - bump version to 6.0.0-dev0
benoit74
force-pushed
the
benoit74/python-3.15
branch
from
October 29, 2026 13:51
33032b9 to
9dbf6f6
Compare
This branch has not been deployed
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.
Support only Python 3.15, which requires libzim 4: this is a breaking change, for zimscraperlib 6.0.0.
Draft until tree-sitter publishes Python 3.15 wheels (tree-sitter/py-tree-sitter#504): tree-sitter 0.26.0 has no 3.15 nor abi3 wheel, so on 3.15 pip builds it from source, which needs a C compiler (fine on CI runners, not on slim scraper Docker images).
Changes:
requires-python = ">=3.15,<3.16", ruffpy315, pyright3.156.0.0-dev0(__about__.pyandjavascript/package.json)Creatorsince it subclasses libzim's: camelCase arguments renamed (config_nbworkers(nb_workers=),set_mainpath(main_path=),add_redirection(target_path=),add_alias(target_path=)), newadd_illustration(content, width, height=None, scale=1.0)signature, renamedSearch/SuggestionSearchmethods,Archive.get_entry_by_idnow provided by libzimArchive.get_search_resultsyields libzim 4SearchResultobjects (path,title,snippet,archive) instead of pathspymupdf-liteinstead ofpymupdf(same change as Depend on pymupdf-lite instead of pymupdf #373, see Use pymupdf-lite: pymupdf 2.0 pulls heavy dependencies (onnxruntime, numpy, ...) #372): pymupdf 2.0 pulls onnxruntime, numpy and more, and onnxruntime has no 3.15 wheel (pip was silently falling back to pymupdf 1.28.2); pymupdf-lite has 3.15 abi3 wheels and no dependencypyright: ignoreontree_sitter.Parser.parse(), whose stub usescollections.abc.ByteString, gone from typeshed since 3.14Will need a rebase on #373 once merged (both switch to pymupdf-lite and touch the changelog).