From 10baba6fc99c5ffa87abc3575c1576e04564644f Mon Sep 17 00:00:00 2001 From: Ben Falk Date: Thu, 12 Feb 2026 21:00:21 -0500 Subject: [PATCH] update to python 3.13 --- .github/workflows/backup_db.yml | 2 +- .github/workflows/pythonapp.yml | 2 +- README.md | 10 +++++----- dockerfile | 4 ++-- requirements-dev.txt | 2 +- requirements.txt | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/backup_db.yml b/.github/workflows/backup_db.yml index 53f761d..d043831 100644 --- a/.github/workflows/backup_db.yml +++ b/.github/workflows/backup_db.yml @@ -24,7 +24,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" - name: Get flyctl uses: superfly/flyctl-actions/setup-flyctl@master diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index ea78063..8796248 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -36,7 +36,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" - name: Install dependencies run: | diff --git a/README.md b/README.md index 864be14..7a6c313 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ docker run --rm -it -p 8080:8080 \ ##### Install postgres -- `sudo apt install postgresql postgresql-contrib libpq-dev python3.12 python3.12-dev` +- `sudo apt install postgresql postgresql-contrib libpq-dev python3.13 python3.13-dev` ##### Config postgres @@ -159,15 +159,15 @@ PGPASSWORD=[PASSWORD] pg_dump -Fc --no-acl --no-owner -h localhost -p 15432 -v - To generate compiled dependencies (`requirements.txt` and `requirements-dev.txt`): ```sh -uv pip compile -o requirements.txt --generate-hashes requirements.in --python-version 3.12 --quiet && \ -uv pip compile -o requirements-dev.txt --generate-hashes requirements-dev.in --python-version 3.12 --quiet +uv pip compile -o requirements.txt --generate-hashes requirements.in --python-version 3.13 --quiet && \ +uv pip compile -o requirements-dev.txt --generate-hashes requirements-dev.in --python-version 3.13 --quiet ``` #### Upgrade dependencies ```sh -uv pip compile -o requirements.txt --generate-hashes requirements.in --python-version 3.12 --upgrade --quiet && \ -uv pip compile -o requirements-dev.txt --generate-hashes requirements-dev.in --python-version 3.12 --upgrade --quiet +uv pip compile -o requirements.txt --generate-hashes requirements.in --python-version 3.13 --upgrade --quiet && \ +uv pip compile -o requirements-dev.txt --generate-hashes requirements-dev.in --python-version 3.13 --upgrade --quiet ``` This updates the lock files while still maintaining constraints in `requirements.in` (or `requirements-dev.in`) diff --git a/dockerfile b/dockerfile index 54bb91a..6014f87 100644 --- a/dockerfile +++ b/dockerfile @@ -1,6 +1,6 @@ -ARG PYTHON_VERSION=3.12 +ARG PYTHON_VERSION=3.13 -FROM python:${PYTHON_VERSION}-slim as build +FROM python:${PYTHON_VERSION}-slim AS build RUN \ export DEBIAN_FRONTEND=noninteractive && \ diff --git a/requirements-dev.txt b/requirements-dev.txt index 658d82a..9f6ed88 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,5 +1,5 @@ # This file was autogenerated by uv via the following command: -# uv pip compile -o requirements-dev.txt --generate-hashes requirements-dev.in --python-version 3.12 +# uv pip compile -o requirements-dev.txt --generate-hashes requirements-dev.in --python-version 3.13 asgiref==3.11.1 \ --hash=sha256:5f184dc43b7e763efe848065441eac62229c9f7b0475f41f80e207a114eda4ce \ --hash=sha256:e8667a091e69529631969fd45dc268fa79b99c92c5fcdda727757e52146ec133 diff --git a/requirements.txt b/requirements.txt index ee4182d..f302adf 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ # This file was autogenerated by uv via the following command: -# uv pip compile -o requirements.txt --generate-hashes requirements.in --python-version 3.12 +# uv pip compile -o requirements.txt --generate-hashes requirements.in --python-version 3.13 anyio==4.12.1 \ --hash=sha256:41cfcc3a4c85d3f05c932da7c26d0201ac36f72abd4435ba90d0464a3ffed703 \ --hash=sha256:d405828884fc140aa80a3c667b8beed277f1dfedec42ba031bd6ac3db606ab6c