Parcourir la source

Upgrade Docker, Heroku, CI to Python 3.12

Thibaud Colas il y a 1 an
Parent
commit
e7e36b97aa
3 fichiers modifiés avec 6 ajouts et 6 suppressions
  1. 1 1
      .github/workflows/lint.yml
  2. 4 4
      Dockerfile
  3. 1 1
      runtime.txt

+ 1 - 1
.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

+ 4 - 4
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/*
 

+ 1 - 1
runtime.txt

@@ -1 +1 @@
-python-3.10.2
+python-3.12.1