diff --git a/CHANGELOG.md b/CHANGELOG.md index 2998c36..0012153 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- Upgrade to Python 3.12 and Node.JS 22, adopt new openZIM practices, upgrade all dependencies (including zimscraperlib 5.0.0), add support for 'legacy' browsers (#43) +- Upgrade to Python 3.13 and Node.JS 22, adopt new openZIM practices, upgrade all dependencies (including zimscraperlib 5.x), add support for 'legacy' browsers (#43 + #77) - Add clearer visual indication of external links (#70) - Cleanup JS code with a Pinia store and add header toolbar (#73) diff --git a/Dockerfile b/Dockerfile index bb26f63..37ec420 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,8 +6,7 @@ RUN yarn install --frozen-lockfile RUN yarn build -# FROM python:3.13.1-bookworm -FROM python:3.12.8-bookworm +FROM python:3.13.1-bookworm LABEL org.opencontainers.image.source=https://github.com/openzim/freecodecamp RUN python -m pip install --no-cache-dir -U \ diff --git a/scraper/pyproject.toml b/scraper/pyproject.toml index 78d00e6..fac9fb8 100644 --- a/scraper/pyproject.toml +++ b/scraper/pyproject.toml @@ -4,11 +4,11 @@ build-backend = "hatchling.build" [project] name = "fcc2zim" -requires-python = ">=3.12,<3.13" +requires-python = ">=3.13,<3.14" description = "Make ZIM files from freeCodeCamp courses" readme = "../README.md" dependencies = [ - "zimscraperlib==5.0.0", + "zimscraperlib==5.1.0", "requests==2.32.3", "types-requests==2.32.0.20241016", "PyYAML==6.0.2", @@ -69,7 +69,7 @@ html = "inv coverage --html --args '{args}'" [tool.hatch.envs.lint] template = "lint" -python = "py312" +python = "py313" skip-install = false features = ["scripts", "lint"] @@ -90,11 +90,11 @@ all = "inv checkall --args '{args}'" [tool.black] line-length = 88 -target-version = ['py312'] +target-version = ['py313'] exclude = "(.hatch/.*)" [tool.ruff] -target-version = "py312" +target-version = "py313" line-length = 88 src = ["src"] @@ -215,6 +215,6 @@ exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"] include = ["src", "tests", "tasks.py"] exclude = [".env/**", ".venv/**", ".hatch"] extraPaths = ["src"] -pythonVersion = "3.12" +pythonVersion = "3.13" typeCheckingMode = "strict" disableBytesTypePromotions = true