mirror of https://github.com/tiangolo/fastapi.git
⬆️ Add support for Python 3.14 (#14165)
This commit is contained in:
parent
942fce394b
commit
3611c3fc5b
|
|
@ -48,6 +48,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version:
|
python-version:
|
||||||
|
- "3.14"
|
||||||
- "3.13"
|
- "3.13"
|
||||||
- "3.12"
|
- "3.12"
|
||||||
- "3.11"
|
- "3.11"
|
||||||
|
|
@ -55,6 +56,9 @@ jobs:
|
||||||
- "3.9"
|
- "3.9"
|
||||||
- "3.8"
|
- "3.8"
|
||||||
pydantic-version: ["pydantic-v1", "pydantic-v2"]
|
pydantic-version: ["pydantic-v1", "pydantic-v2"]
|
||||||
|
exclude:
|
||||||
|
- python-version: "3.14"
|
||||||
|
pydantic-version: "pydantic-v1"
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
- name: Dump GitHub context
|
- name: Dump GitHub context
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,7 @@ classifiers = [
|
||||||
"Programming Language :: Python :: 3.11",
|
"Programming Language :: Python :: 3.11",
|
||||||
"Programming Language :: Python :: 3.12",
|
"Programming Language :: Python :: 3.12",
|
||||||
"Programming Language :: Python :: 3.13",
|
"Programming Language :: Python :: 3.13",
|
||||||
|
"Programming Language :: Python :: 3.14",
|
||||||
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
|
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
|
||||||
"Topic :: Internet :: WWW/HTTP",
|
"Topic :: Internet :: WWW/HTTP",
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ pytest >=7.1.3,<9.0.0
|
||||||
coverage[toml] >= 6.5.0,< 8.0
|
coverage[toml] >= 6.5.0,< 8.0
|
||||||
mypy ==1.14.1
|
mypy ==1.14.1
|
||||||
dirty-equals ==0.9.0
|
dirty-equals ==0.9.0
|
||||||
sqlmodel==0.0.25
|
sqlmodel==0.0.27
|
||||||
flask >=1.1.2,<4.0.0
|
flask >=1.1.2,<4.0.0
|
||||||
anyio[trio] >=3.2.1,<5.0.0
|
anyio[trio] >=3.2.1,<5.0.0
|
||||||
PyJWT==2.9.0
|
PyJWT==2.9.0
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,8 @@ def get_client(request: pytest.FixtureRequest):
|
||||||
|
|
||||||
with TestClient(mod.app) as c:
|
with TestClient(mod.app) as c:
|
||||||
yield c
|
yield c
|
||||||
|
# Clean up connection explicitely to avoid resource warning
|
||||||
|
mod.engine.dispose()
|
||||||
|
|
||||||
|
|
||||||
def test_crud_app(client: TestClient):
|
def test_crud_app(client: TestClient):
|
||||||
|
|
|
||||||
|
|
@ -45,6 +45,8 @@ def get_client(request: pytest.FixtureRequest):
|
||||||
|
|
||||||
with TestClient(mod.app) as c:
|
with TestClient(mod.app) as c:
|
||||||
yield c
|
yield c
|
||||||
|
# Clean up connection explicitely to avoid resource warning
|
||||||
|
mod.engine.dispose()
|
||||||
|
|
||||||
|
|
||||||
def test_crud_app(client: TestClient):
|
def test_crud_app(client: TestClient):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue