Skip to content

Commit

Permalink
Upgrade to Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 committed Jan 21, 2025
1 parent 711793c commit 34e83a9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 + #xx)
- Add clearer visual indication of external links (#70)
- Cleanup JS code with a Pinia store and add header toolbar (#73)

Expand Down
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
12 changes: 6 additions & 6 deletions scraper/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"]

Expand All @@ -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"]

Expand Down Expand Up @@ -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

0 comments on commit 34e83a9

Please sign in to comment.