From 7f77c1b783bab60a48ac3dac7c675ade3c4edc11 Mon Sep 17 00:00:00 2001
From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Date: Wed, 7 Aug 2024 20:52:21 +0300
Subject: [PATCH] Add support for Python 3.13 (#972)

* Add support for Python 3.13

* Run other jobs if one fails
---
 .github/workflows/main.yml | 3 ++-
 setup.cfg                  | 1 +
 tox.ini                    | 3 ++-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index aa29addf..b884a687 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -16,9 +16,10 @@ jobs:
       USING_COVERAGE: '3.8'
 
     strategy:
+      fail-fast: false
       matrix:
         platform: ["ubuntu-latest", "windows-latest"]
-        python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.8", "pypy3.9"]
+        python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.8", "pypy3.9"]
 
     steps:
       - uses: "actions/checkout@v4"
diff --git a/setup.cfg b/setup.cfg
index e6d9f3f9..c9a60c23 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -28,6 +28,7 @@ classifiers =
     Programming Language :: Python :: 3.10
     Programming Language :: Python :: 3.11
     Programming Language :: Python :: 3.12
+    Programming Language :: Python :: 3.13
     Topic :: Utilities
 
 [options]
diff --git a/tox.ini b/tox.ini
index 84940242..606a9b6b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -13,6 +13,7 @@ python =
     3.10: py310
     3.11: py311, docs
     3.12: py312
+    3.13: py313
     pypy3.8: pypy3
     pypy3.9: pypy3
 
@@ -21,7 +22,7 @@ python =
 envlist =
     lint
     typing
-    py{38,39,310,311,312,py3}-{crypto,nocrypto}
+    py{38,39,310,311,312,313,py3}-{crypto,nocrypto}
     docs
     pypi-description
     coverage-report