Skip to content
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

Upgrade to Python 3.13 #77

Merged
merged 1 commit into from
Jan 21, 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
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 + #77)
- 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