Skip to content

Commit

Permalink
Merge pull request #376 from openzim/release
Browse files Browse the repository at this point in the history
Upgrade dependencies before release
  • Loading branch information
benoit74 authored Aug 9, 2024
2 parents e80b30f + ab68df2 commit 7d47375
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/psf/black
rev: "24.4.2"
rev: "24.8.0"
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.9
rev: v0.5.7
hooks:
- id: ruff
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.367
rev: v1.1.375
hooks:
- id: pyright
name: pyright (system)
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Store `ContentDate` as metadata, based on `WARC-Date` (#358)
- Remove domain specific rules (#328)
- Revisit retrieve_illustration logic to prefer best favicons (#352 and #369)
- Upgrade dependencies (zimscraperlib 4.0.0, wombat.js 3.7.12 and others) (#376)

### Fixed

Expand Down
2 changes: 1 addition & 1 deletion build_js.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ python3 -m venv /local
/local/bin/python -m pip install --no-cache-dir -U \
pip \
jinja2==3.1.4 \
PyYAML==6.0.1
PyYAML==6.0.2

/local/bin/python /src/rules/generate_rules.py

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

[files.assets.actions."wombat.js"]
action="get_file"
source="https://cdn.jsdelivr.net/npm/@webrecorder/[email protected].11/dist/wombat.js"
source="https://cdn.jsdelivr.net/npm/@webrecorder/[email protected].12/dist/wombat.js"
target_file="wombat.js"

[files.assets.actions."wombatSetup.js"] # fallback if this script has not been properly build (should happen only in dev)
Expand Down
18 changes: 9 additions & 9 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.1", "jinja2==3.1.4", "PyYAML==6.0.1"]
requires = ["hatchling", "hatch-openzim==0.2.1", "jinja2==3.1.4", "PyYAML==6.0.2"]
build-backend = "hatchling.build"

[project]
Expand Down Expand Up @@ -37,22 +37,22 @@ email="[email protected]"
[project.optional-dependencies]
scripts = [
"invoke==2.2.0",
"PyYAML==6.0.1", # used to parse fuzzy rules and generate Python/JS code ; also update version in build-system above and in build_js.sh
"PyYAML==6.0.2", # used to parse fuzzy rules and generate Python/JS code ; also update version in build-system above and in build_js.sh
]
lint = [
"black==24.4.2",
"ruff==0.4.9",
"black==24.8.0",
"ruff==0.5.7",
]
check = [
"pyright==1.1.367",
"pyright==1.1.375",
]
test = [
"pytest==8.2.2",
"coverage==7.5.3",
"pytest==8.3.2",
"coverage==7.6.1",
]
dev = [
"pre-commit==3.7.1",
"debugpy==1.8.1",
"pre-commit==3.8.0",
"debugpy==1.8.5",
"warc2zim[scripts]",
"warc2zim[lint]",
"warc2zim[test]",
Expand Down

0 comments on commit 7d47375

Please sign in to comment.