From e63e065a340a7b4a2fd648a35c83f31ab52634d1 Mon Sep 17 00:00:00 2001
From: Richard R <58728519+rrjbca@users.noreply.github.com>
Date: Sat, 29 Jun 2024 14:23:26 +0100
Subject: [PATCH] BLD: Set python latest supported version to 3.12 (#619)

---
 .github/workflows/compatibility.yaml |  4 ++--
 .github/workflows/tests.yaml         | 12 ++++++------
 tox.ini                              |  8 ++++----
 3 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/.github/workflows/compatibility.yaml b/.github/workflows/compatibility.yaml
index 2cd8c586..66818c9e 100644
--- a/.github/workflows/compatibility.yaml
+++ b/.github/workflows/compatibility.yaml
@@ -9,8 +9,8 @@ jobs:
       fail-fast: false
       matrix:
         os: [ubuntu-latest]
-        python: ['3.11']
-        toxenv: [py311-test, py311-test-dev]
+        python: ['3.12']
+        toxenv: [py312-test, py312-test-dev]
         release: [main, latest]
     steps:
     - name: Checkout Repository
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
index 9e58c74a..ea2b43a9 100644
--- a/.github/workflows/tests.yaml
+++ b/.github/workflows/tests.yaml
@@ -19,8 +19,8 @@ jobs:
 
           - name: latest supported versions
             os: ubuntu-latest
-            python: '3.11'
-            toxenv: py311-test-all-latest-cov
+            python: '3.12'
+            toxenv: py312-test-all-latest-cov
             toxposargs: --cov-report=xml:${GITHUB_WORKSPACE}/coverage.xml
 
           - name: oldest supported versions
@@ -30,13 +30,13 @@ jobs:
 
           - name: macOS latest supported
             os: macos-latest
-            python: '3.11'
-            toxenv: py311-test-latest
+            python: '3.12'
+            toxenv: py312-test-latest
 
           - name: Windows latest supported
             os: windows-latest
-            python: '3.11'
-            toxenv: py311-test-latest
+            python: '3.12'
+            toxenv: py312-test-latest
 
     steps:
     - name: Checkout Repository
diff --git a/tox.ini b/tox.ini
index 985219cb..f3ced749 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,9 +1,9 @@
 [tox]
 envlist =
-    py{37,38,39,310,311}-test{,-all}{,-dev,-latest,-oldest}{,-cov}
-    py{37,38,39,310,311}-test-numpy{116,117,118,119,120,121,122,123,124,125,126}
-    py{37,38,39,310,311}-test-scipy{16,17,18,19,110,111,112,113}
-    py{37,38,39,310,311}-test-astropy{40,41,42,43,50,51,52,53,60,61}
+    py{37,38,39,310,311,312}-test{,-all}{,-dev,-latest,-oldest}{,-cov}
+    py{37,38,39,310,311,312}-test-numpy{116,117,118,119,120,121,122,123,124,125,126}
+    py{37,38,39,310,311,312}-test-scipy{16,17,18,19,110,111,112,113}
+    py{37,38,39,310,311,312}-test-astropy{40,41,42,43,50,51,52,53,60,61}
     build_docs
     linkcheck
     codestyle