From 0f345e9e2d084429a3493b3c99a72fa6a7359afc Mon Sep 17 00:00:00 2001
From: Maari Tamm <maari.tamm@cleura.com>
Date: Thu, 3 Oct 2024 11:01:21 +0200
Subject: [PATCH] chore: Drop Python 3.8 support

Python 3.8 will end security support on 2024-10-31; drop support
for Python 3.8 in this plugin.
---
 .github/workflows/tox.yml                                      | 1 -
 setup.py                                                       | 3 +--
 tox.ini                                                        | 3 +--
 .../templates/retirement/build/retirement/Dockerfile           | 2 +-
 4 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml
index ca37cd6..76e0984 100644
--- a/.github/workflows/tox.yml
+++ b/.github/workflows/tox.yml
@@ -10,7 +10,6 @@ jobs:
     strategy:
       matrix:
         python-version:
-          - 3.8
           - 3.9
           - "3.10"
           - 3.11
diff --git a/setup.py b/setup.py
index 770dd2d..47c442f 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ def load_readme():
     long_description_content_type='text/markdown',
     packages=find_packages(exclude=["tests*"]),
     include_package_data=True,
-    python_requires=">=3.8",
+    python_requires=">=3.9",
     install_requires=["tutor <19, >=16.1.7"],
     setup_requires=["setuptools-scm"],
     entry_points={
@@ -39,7 +39,6 @@ def load_readme():
         "License :: OSI Approved :: GNU Affero General Public License v3",
         "Operating System :: OS Independent",
         "Programming Language :: Python",
-        "Programming Language :: Python :: 3.8",
         "Programming Language :: Python :: 3.9",
         "Programming Language :: Python :: 3.10",
         "Programming Language :: Python :: 3.11",
diff --git a/tox.ini b/tox.ini
index 9b98fcd..4da841e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,9 +1,8 @@
 [tox]
-envlist = gitlint,py{38,39,310,311,312},flake8
+envlist = gitlint,py{39,310,311,312},flake8
 
 [gh-actions]
 python =
-    3.8: gitlint,py38,flake8
     3.9: gitlint,py39,flake8
     3.10: gitlint,py310,flake8
     3.11: gitlint,py311,flake8
diff --git a/tutorretirement/templates/retirement/build/retirement/Dockerfile b/tutorretirement/templates/retirement/build/retirement/Dockerfile
index 06e2571..a0c8ca3 100644
--- a/tutorretirement/templates/retirement/build/retirement/Dockerfile
+++ b/tutorretirement/templates/retirement/build/retirement/Dockerfile
@@ -1,4 +1,4 @@
-FROM python:3.8
+FROM python:3.11
 ENV PYTHONUNBUFFERED 1
 RUN python3 -m venv /retirement/venv/
 ENV PATH "/retirement/venv/bin:$PATH"