From 7a92bc4abc4587c270fd86fdc44f231fdab7ab96 Mon Sep 17 00:00:00 2001
From: Stephen Finucane <stephenfin@redhat.com>
Date: Mon, 8 Jul 2024 17:15:51 +0100
Subject: [PATCH] Drop support for Python 3.8

This goes EOL in October. We don't want to be supporting it past then.
Drop it now.

Change-Id: I6166678a35092760718d4fcd0357e7195bbe8be0
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
---
 .zuul.yaml                                              | 8 ++++----
 releasenotes/notes/drop-python-38-9dcbd2b2b51f24f2.yaml | 4 ++++
 setup.cfg                                               | 3 +--
 3 files changed, 9 insertions(+), 6 deletions(-)
 create mode 100644 releasenotes/notes/drop-python-38-9dcbd2b2b51f24f2.yaml

diff --git a/.zuul.yaml b/.zuul.yaml
index 9c0f0b22ce..ac4d63a04c 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -18,8 +18,8 @@
       zuul_work_dir: src/opendev.org/openstack/python-openstackclient
 
 - job:
-    name: osc-tox-py38-tips
-    parent: openstack-tox-py38
+    name: osc-tox-py39-tips
+    parent: openstack-tox-py39
     description: |
       Run unit tests for OpenStackClient with master branch of important libs.
 
@@ -201,11 +201,11 @@
     name: osc-tox-unit-tips
     check:
       jobs:
-        - osc-tox-py38-tips
+        - osc-tox-py39-tips
         - osc-tox-py312-tips
     gate:
       jobs:
-        - osc-tox-py38-tips
+        - osc-tox-py39-tips
         - osc-tox-py312-tips
 
 - project:
diff --git a/releasenotes/notes/drop-python-38-9dcbd2b2b51f24f2.yaml b/releasenotes/notes/drop-python-38-9dcbd2b2b51f24f2.yaml
new file mode 100644
index 0000000000..6d61b9e7aa
--- /dev/null
+++ b/releasenotes/notes/drop-python-38-9dcbd2b2b51f24f2.yaml
@@ -0,0 +1,4 @@
+---
+upgrade:
+  - |
+    Support for Python 3.8 has been dropped.
diff --git a/setup.cfg b/setup.cfg
index 1308c06986..0266a4359b 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -6,7 +6,7 @@ description_file =
 author = OpenStack
 author_email = openstack-discuss@lists.openstack.org
 home_page = https://docs.openstack.org/python-openstackclient/latest/
-python_requires = >=3.8
+python_requires = >=3.9
 classifier =
     Environment :: OpenStack
     Intended Audience :: Information Technology
@@ -15,7 +15,6 @@ classifier =
     Operating System :: POSIX :: Linux
     Programming Language :: Python
     Programming Language :: Python :: 3
-    Programming Language :: Python :: 3.8
     Programming Language :: Python :: 3.9
     Programming Language :: Python :: 3.10
     Programming Language :: Python :: 3.11