From 3617137740e78db4adfa61d802658a61f9e26ad8 Mon Sep 17 00:00:00 2001 From: benoit74 Date: Mon, 3 Nov 2025 19:36:55 +0000 Subject: [PATCH 1/3] Upgrade to Python 3.14 --- .readthedocs.yaml | 2 +- CHANGELOG.md | 4 ++++ pyproject.toml | 8 ++++---- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 8c1c416..8f110d1 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -6,7 +6,7 @@ version: 2 build: os: ubuntu-24.04 tools: - python: '3.13' + python: '3.14' # custom commands to run mkdocs build within hatch, as suggested by maintainer in # https://github.com/readthedocs/readthedocs.org/issues/10706 diff --git a/CHANGELOG.md b/CHANGELOG.md index e2aa498..4c55571 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Upgrade to support only Python 3.14 (#266) + ## [5.2.0] - 2025-10-02 ### Added diff --git a/pyproject.toml b/pyproject.toml index 754e150..aca61bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" [project] name = "zimscraperlib" -requires-python = ">=3.13,<3.14" +requires-python = ">=3.14,<3.15" description = "Collection of python tools to re-use common code across scrapers" readme = "README.md" dependencies = [ @@ -157,10 +157,10 @@ build = "inv docs-build --args '{args}'" [tool.black] line-length = 88 -target-version = ['py313'] +target-version = ['py314'] [tool.ruff] -target-version = "py313" +target-version = "py314" line-length = 88 src = ["src", "contrib"] @@ -293,7 +293,7 @@ exclude_lines = [ include = ["contrib", "src", "tests", "tasks.py"] exclude = [".env/**", ".venv/**"] extraPaths = ["src"] -pythonVersion = "3.13" +pythonVersion = "3.14" typeCheckingMode="strict" disableBytesTypePromotions = true From 13233810edb85f65a5423b7df4db2e5e4811dbf5 Mon Sep 17 00:00:00 2001 From: benoit74 Date: Mon, 3 Nov 2025 19:44:18 +0000 Subject: [PATCH 2/3] Switch `yt-dlp` to `yt-dlp[default]` to install required JS dependency --- CHANGELOG.md | 1 + pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c55571..56763a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Upgrade to support only Python 3.14 (#266) +- Switch `yt-dlp` to `yt-dlp[default]` to install required JS dependency (#268) ## [5.2.0] - 2025-10-02 diff --git a/pyproject.toml b/pyproject.toml index aca61bf..6a97a29 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,7 +28,7 @@ dependencies = [ "CairoSVG>=2.2.0,<3.0", "beartype>=0.19,<0.22", # youtube-dl should be updated as frequently as possible - "yt-dlp", + "yt-dlp[default]", "pillow>=7.0.0,<12.0", "urllib3>=1.26.5,<2.6.0", "piexif==1.1.3", # this dep is a nightmare in terms of release management, better pinned just like in optimize-images anyway From 67d046ac6e5758dfd595cca4fecf08cff4eaa4fe Mon Sep 17 00:00:00 2001 From: benoit74 Date: Mon, 3 Nov 2025 19:45:15 +0000 Subject: [PATCH 3/3] Upgrade dependencies --- CHANGELOG.md | 1 + pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 56763a7..5712d8c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Upgrade to support only Python 3.14 (#266) - Switch `yt-dlp` to `yt-dlp[default]` to install required JS dependency (#268) +- Upgrade dependencies (#xxx) ## [5.2.0] - 2025-10-02 diff --git a/pyproject.toml b/pyproject.toml index 6a97a29..dd3aa13 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ dependencies = [ "regex>=2020.7.14", "pymupdf>=1.24.0,<2.0", "CairoSVG>=2.2.0,<3.0", - "beartype>=0.19,<0.22", + "beartype>=0.19,<0.23", # youtube-dl should be updated as frequently as possible "yt-dlp[default]", "pillow>=7.0.0,<12.0",