Skip to content

Commit f21e2ea

Browse files
committed
fix(test): Add fastapi anyio pin for <0.8
Anyio >=4.0 breaks fastapi for versions <0.8 GH-4601
1 parent 9d0cde4 commit f21e2ea

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

scripts/populate_tox/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
# FastAPI versions we use older httpx which still supports the
107107
# deprecated argument.
108108
"<0.110.1": ["httpx<0.28.0"],
109+
"<0.80": ["anyio<4"],
109110
"py3.6": ["aiocontextvars"],
110111
},
111112
},

tox.ini

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# The file (and all resulting CI YAMLs) then need to be regenerated via
1111
# "scripts/generate-test-files.sh".
1212
#
13-
# Last generated: 2025-07-29T08:26:02.455474+00:00
13+
# Last generated: 2025-07-29T08:45:43.951088+00:00
1414

1515
[tox]
1616
requires =
@@ -148,7 +148,7 @@ envlist =
148148
{py3.8,py3.10,py3.11}-huggingface_hub-v0.22.2
149149
{py3.8,py3.11,py3.12}-huggingface_hub-v0.26.5
150150
{py3.8,py3.12,py3.13}-huggingface_hub-v0.30.2
151-
{py3.8,py3.12,py3.13}-huggingface_hub-v0.34.2
151+
{py3.8,py3.12,py3.13}-huggingface_hub-v0.34.3
152152
{py3.8,py3.12,py3.13}-huggingface_hub-v0.35.0rc0
153153

154154

@@ -516,7 +516,7 @@ deps =
516516
huggingface_hub-v0.22.2: huggingface_hub==0.22.2
517517
huggingface_hub-v0.26.5: huggingface_hub==0.26.5
518518
huggingface_hub-v0.30.2: huggingface_hub==0.30.2
519-
huggingface_hub-v0.34.2: huggingface_hub==0.34.2
519+
huggingface_hub-v0.34.3: huggingface_hub==0.34.3
520520
huggingface_hub-v0.35.0rc0: huggingface_hub==0.35.0rc0
521521

522522

@@ -690,6 +690,7 @@ deps =
690690
fastapi-v0.79.1: httpx<0.28.0
691691
fastapi-v0.91.0: httpx<0.28.0
692692
fastapi-v0.103.2: httpx<0.28.0
693+
fastapi-v0.79.1: anyio<4
693694
py3.6-fastapi: aiocontextvars
694695

695696

0 commit comments

Comments
 (0)