Skip to content

Upgrade dependencies #262

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

Merged
merged 1 commit into from
May 13, 2025
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: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ repos:
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.6
rev: v0.11.8
hooks:
- id: ruff
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.394
rev: v1.1.400
hooks:
- id: pyright
name: pyright (system)
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Upgrade to wombat 3.8.11 (#256)
- Upgrade dependencies, especially wombat 3.8.12 (#262)
- Backport changes in wabac.js around JS rewriting rules (#259)

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion openzim.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ execute_after=[

[files.assets.actions."wombat.js"]
action="get_file"
source="https://cdn.jsdelivr.net/npm/@webrecorder/wombat@3.8.11/dist/wombat.js"
source="https://cdn.jsdelivr.net/npm/@webrecorder/wombat@3.8.12/dist/wombat.js"
target_file="wombat.js"
34 changes: 17 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[build-system]
# jinja2 is required to generate JS and Python rules at build time
# PyYAML is used to parse fuzzy rules and generate Python/JS code
requires = ["hatchling", "hatch-openzim>=0.2", "jinja2==3.1.5", "PyYAML==6.0.2"]
requires = ["hatchling", "hatch-openzim>=0.2", "jinja2==3.1.6", "PyYAML==6.0.2"]
build-backend = "hatchling.build"

[project]
Expand All @@ -26,11 +26,11 @@ dependencies = [
"regex>=2020.7.14",
"pymupdf>=1.24.0,<2.0",
"CairoSVG>=2.2.0,<3.0",
"beartype==0.19.0",
"beartype>=0.19,<0.21",
# youtube-dl should be updated as frequently as possible
"yt-dlp",
"pillow>=7.0.0,<12.0",
"urllib3>=1.26.5,<2.4.0",
"urllib3>=1.26.5,<2.5.0",
"piexif==1.1.3", # this dep is a nightmare in terms of release management, better pinned just like in optimize-images anyway
"idna>=2.5,<4.0",
"xxhash>=2.0,<4.0",
Expand All @@ -52,36 +52,36 @@ scripts = [
"invoke==2.2.0",
# jinja2 is required to generate JS and Python rules at build time
# PyYAML is used to parse fuzzy rules and generate Python/JS code
# also update version in build-system above and in build_js.sh
"jinja2==3.1.5",
# also update version in build-system above
"jinja2==3.1.6",
"PyYAML==6.0.2",

]
lint = [
"black==25.1.0",
"ruff==0.9.6",
"ruff==0.11.8",
]
check = [
"pyright==1.1.394",
"pytest==8.3.4",
"pyright==1.1.400",
"pytest==8.3.5",
]
test = [
"pytest==8.3.4",
"pytest==8.3.5",
"pytest-mock==3.14.0",
"coverage==7.6.12",
"coverage==7.8.0",
]
docs = [
"mkdocs==1.6.1",
"mkdocstrings[python]==0.28.1",
"mkdocs-material==9.6.4",
"pymdown-extensions==10.14.3",
"mkdocstrings[python]==0.29.1",
"mkdocs-material==9.6.12",
"pymdown-extensions==10.15",
"mkdocs-gen-files==0.5.0",
"mkdocs-literate-nav==0.6.1",
"mkdocs-include-markdown-plugin==7.1.4",
"mkdocs-literate-nav==0.6.2",
"mkdocs-include-markdown-plugin==7.1.5",
]
dev = [
"ipython==8.32.0",
"pre-commit==4.1.0",
"ipython==9.2.0",
"pre-commit==4.2.0",
"zimscraperlib[scripts]",
"zimscraperlib[lint]",
"zimscraperlib[test]",
Expand Down
2 changes: 1 addition & 1 deletion src/zimscraperlib/image/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import pathlib
from typing import Any

import cairosvg.svg # pyright: ignore[reportMissingTypeStubs]
import cairosvg # pyright: ignore[reportMissingTypeStubs]
from PIL.Image import open as pilopen

from zimscraperlib.constants import ALPHA_NOT_SUPPORTED
Expand Down