]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
⬆️ Upgrade AnyIO max version for tests, new range: `>=3.2.1,<5.0.0` (#13273)
authorSebastián Ramírez <tiangolo@gmail.com>
Tue, 28 Jan 2025 23:35:19 +0000 (23:35 +0000)
committerGitHub <noreply@github.com>
Tue, 28 Jan 2025 23:35:19 +0000 (23:35 +0000)
.github/workflows/test.yml
requirements-tests.txt

index e0daf7472d46013ac5e3def6248129add9ec7e2a..793e789e21ecfa9c183c0a27d4483fb15813f4cd 100644 (file)
@@ -81,6 +81,10 @@ jobs:
       - name: Install Pydantic v2
         if: matrix.pydantic-version == 'pydantic-v2'
         run: uv pip install --upgrade "pydantic>=2.0.2,<3.0.0"
+      # TODO: Remove this once Python 3.8 is no longer supported
+      - name: Install older AnyIO in Python 3.8
+        if: matrix.python-version == '3.8'
+        run: uv pip install "anyio[trio]<4.0.0"
       - run: mkdir coverage
       - name: Test
         run: bash scripts/test.sh
index 5be05230729380e507f27039d552fd634ab5fbc0..91e7fb7aa66af39e334f5c5663317df5d490ed2e 100644 (file)
@@ -6,7 +6,7 @@ mypy ==1.8.0
 dirty-equals ==0.8.0
 sqlmodel==0.0.22
 flask >=1.1.2,<4.0.0
-anyio[trio] >=3.2.1,<4.0.0
+anyio[trio] >=3.2.1,<5.0.0
 PyJWT==2.8.0
 pyyaml >=5.3.1,<7.0.0
 passlib[bcrypt] >=1.7.2,<2.0.0