build: stop testing Python 3.8, add 3.12 & 3.13

3.8 is unsupported and dependencies (such as pydantic) are now shipping
releases that fail to type check with mypy running in 3.8 compatibility
mode. We'd need to pin test dependencies to old versions supporting 3.8
to type-check 3.8.

Signed-off-by: Hal Blackburn <hwtb2@cam.ac.uk>
This commit is contained in:
Hal Blackburn 2025-05-21 14:38:19 +00:00
parent c144dbbba4
commit f6522d68d1
No known key found for this signature in database
4 changed files with 3 additions and 9 deletions

View File

@ -22,7 +22,7 @@ jobs:
test:
strategy:
matrix:
python: ['3.8', '3.9', '3.10', '3.11']
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:

View File

@ -1,6 +1,6 @@
[mypy]
plugins = pydantic.mypy
python_version = 3.8
python_version = 3.9
pretty = True
show_error_context = True

View File

@ -4,12 +4,7 @@ flake8-print
pytest
pytest-cov
# web app tests
# sanic stopped supporting 3.8 in 24.12:
# https://sanic.dev/en/release-notes/changelog.html#version-24120-
sanic ; python_version >= '3.9'
sanic<24.12.0 ; python_version < '3.9'
sanic
sanic-testing
aiohttp
Pillow

View File

@ -65,7 +65,6 @@ if __name__ == "__main__":
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",