From cb13732d7c0fbde68a6172013ac16e294c065279 Mon Sep 17 00:00:00 2001 From: zerolab Date: Wed, 11 Dec 2024 20:41:07 +0000 Subject: [PATCH] Bump python to 3.13 --- .github/workflows/ci.yml | 6 +++--- .pre-commit-config.yaml | 2 +- Dockerfile | 4 ++-- poetry.lock | 5 ++--- pyproject.toml | 2 +- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3855738d0..27bed226e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,10 +15,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set up Python 3.12 + - name: Set up Python uses: actions/setup-python@v3 with: - python-version: '3.12' + python-version: '3.13' - uses: actions/setup-node@v3 with: node-version-file: '.nvmrc' @@ -76,7 +76,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: '3.12' + python-version: '3.13' cache: 'poetry' - name: Install Python dependencies run: poetry install diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0c84ff10b..b7090c772 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ default_language_version: node: 22.11.0 - python: python3.12 + python: python3.13 repos: - repo: https://github.com/psf/black rev: 24.10.0 diff --git a/Dockerfile b/Dockerfile index 982359fc8..d4f6ca8ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,9 +11,9 @@ RUN npm run build:prod # Build Python app - this stage is a common base for the prod and dev stages -FROM python:3.12-bookworm AS backend +FROM python:3.13-bookworm AS backend -ARG POETRY_VERSION=1.8.3 +ARG POETRY_VERSION=1.8.5 ARG UID=1000 ARG GID=1000 diff --git a/poetry.lock b/poetry.lock index 886b761ec..00d8e4264 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1113,7 +1113,6 @@ files = [ ] [package.dependencies] -typing-extensions = {version = ">=4.6", markers = "python_version < \"3.13\""} tzdata = {version = "*", markers = "sys_platform == \"win32\""} [package.extras] @@ -1717,5 +1716,5 @@ files = [ [metadata] lock-version = "2.0" -python-versions = "^3.12" -content-hash = "d644a32b0c0c2761e8f59f915c80706d35d302074b531aec2e3bd7e9a0cef23b" +python-versions = "^3.13" +content-hash = "303ad4f7e4cce38a27702ae74aa7d3176c71f2f061a5fa2f7ef5d4f024e6277f" diff --git a/pyproject.toml b/pyproject.toml index b8a4fa1f7..2136ee695 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" [tool.poetry.dependencies] -python = "^3.12" +python = "^3.13" django = "~5.1.4" wagtail = "~6.3.1" psycopg = "~3.2"