Skip to content

Commit b3a500b

Browse files
committed
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.
1 parent 1afc35c commit b3a500b

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
test:
2323
strategy:
2424
matrix:
25-
python: ['3.8', '3.9', '3.10', '3.11']
25+
python: ['3.9', '3.10', '3.11']
2626
os: [ubuntu-latest, windows-latest, macos-latest]
2727
runs-on: ${{ matrix.os }}
2828
steps:

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[mypy]
22
plugins = pydantic.mypy
3-
python_version = 3.8
3+
python_version = 3.9
44

55
pretty = True
66
show_error_context = True

requirements/test.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@ flake8-print
44
pytest
55
pytest-cov
66
# web app tests
7-
8-
# sanic stopped supporting 3.8 in 24.12:
9-
# https://sanic.dev/en/release-notes/changelog.html#version-24120-
10-
sanic ; python_version >= '3.9'
11-
sanic<24.12.0 ; python_version < '3.9'
12-
7+
sanic
138
sanic-testing
149
aiohttp
1510
Pillow

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ def get_version(rel_path):
6565
"Programming Language :: Python",
6666
"Programming Language :: Python :: 3",
6767
"Programming Language :: Python :: 3 :: Only",
68-
"Programming Language :: Python :: 3.8",
6968
"Programming Language :: Python :: 3.9",
7069
"Programming Language :: Python :: 3.10",
7170
"Programming Language :: Python :: 3.11",

0 commit comments

Comments
 (0)