]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
⬆️ Add support for Python 3.14 (#14165)
authorSofie Van Landeghem <svlandeg@users.noreply.github.com>
Fri, 10 Oct 2025 09:44:39 +0000 (11:44 +0200)
committerGitHub <noreply@github.com>
Fri, 10 Oct 2025 09:44:39 +0000 (11:44 +0200)
.github/workflows/test.yml
pyproject.toml
requirements-tests.txt
tests/test_tutorial/test_sql_databases/test_tutorial001.py
tests/test_tutorial/test_sql_databases/test_tutorial002.py

index ba69519b3d9144d0ab9d7f48b1648f13679f9608..cbf1a8567ad4c74793983baa13d5f544f69a968c 100644 (file)
@@ -48,6 +48,7 @@ jobs:
     strategy:
       matrix:
         python-version:
+          - "3.14"
           - "3.13"
           - "3.12"
           - "3.11"
@@ -55,6 +56,9 @@ jobs:
           - "3.9"
           - "3.8"
         pydantic-version: ["pydantic-v1", "pydantic-v2"]
+        exclude:
+          - python-version: "3.14"
+            pydantic-version: "pydantic-v1"
       fail-fast: false
     steps:
       - name: Dump GitHub context
index 41ef1eb768ed9a9e71956881cbb5cd105f47e81b..cac8059f47eefa517ea438a6145710c01d60d517 100644 (file)
@@ -39,6 +39,7 @@ classifiers = [
     "Programming Language :: Python :: 3.11",
     "Programming Language :: Python :: 3.12",
     "Programming Language :: Python :: 3.13",
+    "Programming Language :: Python :: 3.14",
     "Topic :: Internet :: WWW/HTTP :: HTTP Servers",
     "Topic :: Internet :: WWW/HTTP",
 ]
index 79aac7e7e38eef43190b761617a0d7855159fff0..c5de4157e777af3f4f8ae3274def49809769df42 100644 (file)
@@ -4,7 +4,7 @@ pytest >=7.1.3,<9.0.0
 coverage[toml] >= 6.5.0,< 8.0
 mypy ==1.14.1
 dirty-equals ==0.9.0
-sqlmodel==0.0.25
+sqlmodel==0.0.27
 flask >=1.1.2,<4.0.0
 anyio[trio] >=3.2.1,<5.0.0
 PyJWT==2.9.0
index cc7e590df0280f3fea3833b4cfb3678d4741f0ea..6604a2fd384e27344d7da5cee674c81734455338 100644 (file)
@@ -45,6 +45,8 @@ def get_client(request: pytest.FixtureRequest):
 
     with TestClient(mod.app) as c:
         yield c
+    # Clean up connection explicitely to avoid resource warning
+    mod.engine.dispose()
 
 
 def test_crud_app(client: TestClient):
index 8a98f9a2d02368cf2319573aa99eb487ef0b36ed..2c4e0988ce9fc676c2fdfc0440f37aceb70c64ff 100644 (file)
@@ -45,6 +45,8 @@ def get_client(request: pytest.FixtureRequest):
 
     with TestClient(mod.app) as c:
         yield c
+    # Clean up connection explicitely to avoid resource warning
+    mod.engine.dispose()
 
 
 def test_crud_app(client: TestClient):