From 7f8934a647499ac7ac112704ac10099a1b2ed737 Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Tue, 8 Nov 2022 15:55:09 +0100 Subject: [PATCH] Drop Python 3.8 support, add Python 3.10 and 3.11 support Signed-off-by: Emmy D'Anello --- .gitlab-ci.yml | 24 ++++++++++++++++-------- Dockerfile | 2 +- tox.ini | 2 +- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7b3a6b4..9c34a4f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,14 +2,6 @@ stages: - test - quality-assurance -py38: - stage: test - image: python:3.8-alpine - before_script: - - apk add --no-cache libmagic - - pip install tox --no-cache-dir - script: tox -e py38 - py39: stage: test image: python:3.9-alpine @@ -18,6 +10,22 @@ py39: - pip install tox --no-cache-dir script: tox -e py39 +py310: + stage: test + image: python:3.10-alpine + before_script: + - apk add --no-cache libmagic + - pip install tox --no-cache-dir + script: tox -e py310 + +py311: + stage: test + image: python:3.11-alpine + before_script: + - apk add --no-cache libmagic + - pip install tox --no-cache-dir + script: tox -e py311 + linters: stage: quality-assurance image: python:3-alpine diff --git a/Dockerfile b/Dockerfile index 6d5d630..e61cb87 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10-alpine +FROM python:3.11-alpine ENV PYTHONUNBUFFERED 1 ENV DJANGO_ALLOW_ASYNC_UNSAFE 1 diff --git a/tox.ini b/tox.ini index c5d8537..9d4e3f3 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,8 @@ [tox] envlist = - py38 py39 py310 + py311 linters skipsdist = True