Browse Source

⬆️ Add support for Python 3.14 (#14165)

pull/12066/merge
Sofie Van Landeghem 6 days ago
committed by GitHub
parent
commit
3611c3fc5b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      .github/workflows/test.yml
  2. 1
      pyproject.toml
  3. 2
      requirements-tests.txt
  4. 2
      tests/test_tutorial/test_sql_databases/test_tutorial001.py
  5. 2
      tests/test_tutorial/test_sql_databases/test_tutorial002.py

4
.github/workflows/test.yml

@ -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

1
pyproject.toml

@ -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",
]

2
requirements-tests.txt

@ -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

2
tests/test_tutorial/test_sql_databases/test_tutorial001.py

@ -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):

2
tests/test_tutorial/test_sql_databases/test_tutorial002.py

@ -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):

Loading…
Cancel
Save