From e9f74ec0c1e32ff1b9c6d3bc167f01f3654ac553 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 11 Jan 2024 09:26:39 +0000 Subject: [PATCH] Upgrade to Python 3.12 This required installing `setuptools`, as Honcho implicitly depends on it --- .gitlab-ci.yml | 4 ++-- Dockerfile | 2 +- dev-requirements.txt | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 34c356f..e0d107d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,7 +23,7 @@ static: expire_in: 2 hours pip: - image: python:3.11-slim + image: python:3.12-slim stage: build variables: PIP_CACHE_DIR: $CI_PROJECT_DIR/.pip-cache @@ -45,7 +45,7 @@ pip: expire_in: 2 hours .python_test_template: - image: python:3.11-slim + image: python:3.12-slim stage: test dependencies: - pip diff --git a/Dockerfile b/Dockerfile index cb9ff9c..ff5b868 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ COPY ./static/src ./static/src RUN npm run build # The actual container -FROM python:3.11-slim as production +FROM python:3.12-slim as production ENV VIRTUAL_ENV=/venv diff --git a/dev-requirements.txt b/dev-requirements.txt index 2830876..f50a7ad 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -11,3 +11,4 @@ coverage==7.4.0 djlint==1.34.1 types-pyyaml ruff==0.1.11 +setuptools # required for Honcho to work on Python 3.12+