Skip to content

Commit 3611c3f

Browse files
authored
⬆️ Add support for Python 3.14 (#14165)
1 parent 942fce3 commit 3611c3f

File tree

5 files changed

+10
-1
lines changed

5 files changed

+10
-1
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,17 @@ jobs:
4848
strategy:
4949
matrix:
5050
python-version:
51+
- "3.14"
5152
- "3.13"
5253
- "3.12"
5354
- "3.11"
5455
- "3.10"
5556
- "3.9"
5657
- "3.8"
5758
pydantic-version: ["pydantic-v1", "pydantic-v2"]
59+
exclude:
60+
- python-version: "3.14"
61+
pydantic-version: "pydantic-v1"
5862
fail-fast: false
5963
steps:
6064
- name: Dump GitHub context

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ classifiers = [
3939
"Programming Language :: Python :: 3.11",
4040
"Programming Language :: Python :: 3.12",
4141
"Programming Language :: Python :: 3.13",
42+
"Programming Language :: Python :: 3.14",
4243
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
4344
"Topic :: Internet :: WWW/HTTP",
4445
]

requirements-tests.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pytest >=7.1.3,<9.0.0
44
coverage[toml] >= 6.5.0,< 8.0
55
mypy ==1.14.1
66
dirty-equals ==0.9.0
7-
sqlmodel==0.0.25
7+
sqlmodel==0.0.27
88
flask >=1.1.2,<4.0.0
99
anyio[trio] >=3.2.1,<5.0.0
1010
PyJWT==2.9.0

tests/test_tutorial/test_sql_databases/test_tutorial001.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def get_client(request: pytest.FixtureRequest):
4545

4646
with TestClient(mod.app) as c:
4747
yield c
48+
# Clean up connection explicitely to avoid resource warning
49+
mod.engine.dispose()
4850

4951

5052
def test_crud_app(client: TestClient):

tests/test_tutorial/test_sql_databases/test_tutorial002.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ def get_client(request: pytest.FixtureRequest):
4545

4646
with TestClient(mod.app) as c:
4747
yield c
48+
# Clean up connection explicitely to avoid resource warning
49+
mod.engine.dispose()
4850

4951

5052
def test_crud_app(client: TestClient):

0 commit comments

Comments
 (0)