]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
Add Python 3.13 support
authorStephen Finucane <stephen@that.guru>
Wed, 23 Oct 2024 16:47:54 +0000 (17:47 +0100)
committerStephen Finucane <stephen@that.guru>
Wed, 23 Oct 2024 16:58:04 +0000 (17:58 +0100)
Signed-off-by: Stephen Finucane <stephen@that.guru>
.github/workflows/ci.yaml
releasenotes/notes/python-3-13-support-dc538fa3bc716863.yaml [new file with mode: 0644]
tox.ini

index 52b18602729e6ad12a29cc1a79fafdc37a9c0ac8..5fb784df30856d250da9525432857bf46ef06617 100644 (file)
@@ -13,7 +13,7 @@ jobs:
       - name: Set up Python
         uses: actions/setup-python@v4
         with:
-          python-version: "3.12"
+          python-version: "3.13"
       - name: Set up Go
         uses: actions/setup-go@v4
         with:
@@ -29,7 +29,7 @@ jobs:
       matrix:
         # NOTE: If you add a version here, don't forget to update the
         # '[gh-actions]' section in tox.ini
-        python: ["3.9", "3.10", "3.11", "3.12"]
+        python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
         db: [postgres, mysql, sqlite3]
     env:
       DATABASE_TYPE: "${{ matrix.db }}"
@@ -105,7 +105,7 @@ jobs:
       - name: Set up Python
         uses: actions/setup-python@v4
         with:
-          python-version: "3.12"
+          python-version: "3.13"
       - name: Install dependencies
         run: python -m pip install tox
       - name: Build docs (via tox)
@@ -132,7 +132,7 @@ jobs:
       - name: Set up Python
         uses: actions/setup-python@v4
         with:
-          python-version: "3.12"
+          python-version: "3.13"
       - name: Build docker-compose service
         run: |
           docker compose build --build-arg UID=$(id -u) --build-arg GID=$(id -g)
diff --git a/releasenotes/notes/python-3-13-support-dc538fa3bc716863.yaml b/releasenotes/notes/python-3-13-support-dc538fa3bc716863.yaml
new file mode 100644 (file)
index 0000000..f6831d8
--- /dev/null
@@ -0,0 +1,5 @@
+---
+features:
+  - |
+    `Python 3.13 <https://www.python.org/downloads/release/python-3130/>`_ is
+    now supported.
diff --git a/tox.ini b/tox.ini
index b101b796b5af6c566014a23316fcacaf528f34f7..f1385fda7d4e5b6967c51a20e796534b3226f195 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -1,6 +1,6 @@
 [tox]
 minversion = 3.2
-envlist = pep8,docs,py{39,310,311}-django42,py{310,311,312}-django{50,51}
+envlist = pep8,docs,py{39,310,311}-django42,py{310,311,312}-django{50,51},py313-django51
 
 [testenv]
 skip_install = true
@@ -78,3 +78,4 @@ python =
     3.10: py310
     3.11: py311
     3.12: py312
+    3.13: py313