From e7e36b97aa316d44fcc8279ee0da27d66db67c0f Mon Sep 17 00:00:00 2001 From: Thibaud Colas Date: Thu, 4 Jan 2024 22:24:41 +0000 Subject: [PATCH] Upgrade Docker, Heroku, CI to Python 3.12 --- .github/workflows/lint.yml | 2 +- Dockerfile | 8 ++++---- runtime.txt | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 94b383f..cd36c7d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: '3.12' cache: 'pip' cache-dependency-path: 'requirements/*.txt' - name: Install dependencies diff --git a/Dockerfile b/Dockerfile index 338e9f8..d559e6c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.9-slim +FROM python:3.12-slim # Install packages needed to run your application (not build deps): # We need to recreate the /usr/share/man/man{1..8} directories first because @@ -33,9 +33,9 @@ RUN set -ex \ zlib1g-dev \ " \ && apt-get update && apt-get install -y --no-install-recommends $BUILD_DEPS \ - && python3.9 -m venv ${VIRTUAL_ENV} \ - && pip install -U pip \ - && pip install --no-cache-dir -r /requirements/production.txt \ + && python3.12 -m venv ${VIRTUAL_ENV} \ + && python3.12 -m pip install -U pip \ + && python3.12 -m pip install --no-cache-dir -r /requirements/production.txt \ && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $BUILD_DEPS \ && rm -rf /var/lib/apt/lists/* diff --git a/runtime.txt b/runtime.txt index 250d1e3..1781745 100644 --- a/runtime.txt +++ b/runtime.txt @@ -1 +1 @@ -python-3.10.2 +python-3.12.1