Skip to content

Commit 21b1cda

Browse files
committed
fix(testing): Changed httpx anyio version pin to >=3, <5
The previous version pin of httpx anyio was incompatible with httpcore's asyncio extension, therefore it is necessary to modify it to allow the dependencies to be resolved. GH-4601
1 parent 09034b7 commit 21b1cda

File tree

3 files changed

+43
-39
lines changed

3 files changed

+43
-39
lines changed

requirements-testing.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ asttokens
1212
responses
1313
pysocks
1414
socksio
15-
httpcore[http2]
15+
httpcore[http2,asyncio]
1616
setuptools
1717
freezegun
1818
Brotli

scripts/populate_tox/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"pytest-asyncio",
9797
"python-multipart",
9898
"requests",
99-
"anyio<4",
99+
"anyio>=3,<5",
100100
],
101101
# There's an incompatibility between FastAPI's TestClient, which is
102102
# actually Starlette's TestClient, which is actually httpx's Client.

tox.ini

Lines changed: 41 additions & 37 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-15T08:55:25.785747+00:00
13+
# Last generated: 2025-07-29T08:10:08.981379+00:00
1414

1515
[tox]
1616
requires =
@@ -132,9 +132,9 @@ envlist =
132132

133133
# ~~~ AI ~~~
134134
{py3.8,py3.11,py3.12}-anthropic-v0.16.0
135-
{py3.8,py3.11,py3.12}-anthropic-v0.30.1
136-
{py3.8,py3.11,py3.12}-anthropic-v0.44.0
137-
{py3.8,py3.11,py3.12}-anthropic-v0.57.1
135+
{py3.8,py3.11,py3.12}-anthropic-v0.31.2
136+
{py3.8,py3.11,py3.12}-anthropic-v0.46.0
137+
{py3.8,py3.12,py3.13}-anthropic-v0.60.0
138138

139139
{py3.9,py3.10,py3.11}-cohere-v5.4.0
140140
{py3.9,py3.11,py3.12}-cohere-v5.9.4
@@ -143,11 +143,13 @@ envlist =
143143

144144
{py3.9,py3.11,py3.12}-openai_agents-v0.0.19
145145
{py3.9,py3.12,py3.13}-openai_agents-v0.1.0
146+
{py3.9,py3.12,py3.13}-openai_agents-v0.2.3
146147

147148
{py3.8,py3.10,py3.11}-huggingface_hub-v0.22.2
148149
{py3.8,py3.11,py3.12}-huggingface_hub-v0.26.5
149150
{py3.8,py3.12,py3.13}-huggingface_hub-v0.30.2
150-
{py3.8,py3.12,py3.13}-huggingface_hub-v0.33.4
151+
{py3.8,py3.12,py3.13}-huggingface_hub-v0.34.2
152+
{py3.8,py3.12,py3.13}-huggingface_hub-v0.35.0rc0
151153

152154

153155
# ~~~ DBs ~~~
@@ -176,9 +178,9 @@ envlist =
176178
{py3.9,py3.12,py3.13}-openfeature-v0.8.1
177179

178180
{py3.7,py3.12,py3.13}-statsig-v0.55.3
179-
{py3.7,py3.12,py3.13}-statsig-v0.56.0
180181
{py3.7,py3.12,py3.13}-statsig-v0.57.3
181-
{py3.7,py3.12,py3.13}-statsig-v0.59.0
182+
{py3.7,py3.12,py3.13}-statsig-v0.59.1
183+
{py3.7,py3.12,py3.13}-statsig-v0.61.0
182184

183185
{py3.8,py3.12,py3.13}-unleash-v6.0.1
184186
{py3.8,py3.12,py3.13}-unleash-v6.1.0
@@ -200,17 +202,16 @@ envlist =
200202
{py3.8,py3.12,py3.13}-graphene-v3.4.3
201203

202204
{py3.8,py3.10,py3.11}-strawberry-v0.209.8
203-
{py3.8,py3.11,py3.12}-strawberry-v0.231.1
204-
{py3.8,py3.12,py3.13}-strawberry-v0.253.1
205-
{py3.9,py3.12,py3.13}-strawberry-v0.276.0
205+
{py3.8,py3.11,py3.12}-strawberry-v0.232.2
206+
{py3.8,py3.12,py3.13}-strawberry-v0.255.0
207+
{py3.9,py3.12,py3.13}-strawberry-v0.278.0
206208

207209

208210
# ~~~ Network ~~~
209211
{py3.7,py3.8}-grpc-v1.32.0
210212
{py3.7,py3.9,py3.10}-grpc-v1.46.5
211213
{py3.7,py3.11,py3.12}-grpc-v1.60.2
212-
{py3.9,py3.12,py3.13}-grpc-v1.73.1
213-
{py3.9,py3.12,py3.13}-grpc-v1.74.0rc1
214+
{py3.9,py3.12,py3.13}-grpc-v1.74.0
214215

215216

216217
# ~~~ Tasks ~~~
@@ -249,7 +250,7 @@ envlist =
249250
{py3.7,py3.9,py3.10}-starlette-v0.16.0
250251
{py3.7,py3.10,py3.11}-starlette-v0.26.1
251252
{py3.8,py3.11,py3.12}-starlette-v0.36.3
252-
{py3.9,py3.12,py3.13}-starlette-v0.47.1
253+
{py3.9,py3.12,py3.13}-starlette-v0.47.2
253254

254255
{py3.7,py3.9,py3.10}-fastapi-v0.79.1
255256
{py3.7,py3.10,py3.11}-fastapi-v0.91.0
@@ -261,14 +262,15 @@ envlist =
261262
{py3.7}-aiohttp-v3.4.4
262263
{py3.7,py3.8,py3.9}-aiohttp-v3.7.4
263264
{py3.8,py3.12,py3.13}-aiohttp-v3.10.11
264-
{py3.9,py3.12,py3.13}-aiohttp-v3.12.14
265+
{py3.9,py3.12,py3.13}-aiohttp-v3.12.15
265266

266267
{py3.7}-bottle-v0.12.25
267268
{py3.8,py3.12,py3.13}-bottle-v0.13.4
268269

269270
{py3.7,py3.8,py3.9}-falcon-v3.0.1
270271
{py3.7,py3.11,py3.12}-falcon-v3.1.3
271272
{py3.8,py3.11,py3.12}-falcon-v4.0.2
273+
{py3.8,py3.11,py3.12}-falcon-v4.1.0a3
272274

273275
{py3.8,py3.10,py3.11}-litestar-v2.0.1
274276
{py3.8,py3.11,py3.12}-litestar-v2.5.5
@@ -295,8 +297,8 @@ envlist =
295297
{py3.7}-trytond-v5.0.63
296298
{py3.7,py3.8}-trytond-v5.8.16
297299
{py3.8,py3.10,py3.11}-trytond-v6.8.17
298-
{py3.8,py3.11,py3.12}-trytond-v7.0.33
299-
{py3.9,py3.12,py3.13}-trytond-v7.6.3
300+
{py3.8,py3.11,py3.12}-trytond-v7.0.34
301+
{py3.9,py3.12,py3.13}-trytond-v7.6.4
300302

301303
{py3.7,py3.12,py3.13}-typer-v0.15.4
302304
{py3.7,py3.12,py3.13}-typer-v0.16.0
@@ -493,13 +495,13 @@ deps =
493495

494496
# ~~~ AI ~~~
495497
anthropic-v0.16.0: anthropic==0.16.0
496-
anthropic-v0.30.1: anthropic==0.30.1
497-
anthropic-v0.44.0: anthropic==0.44.0
498-
anthropic-v0.57.1: anthropic==0.57.1
498+
anthropic-v0.31.2: anthropic==0.31.2
499+
anthropic-v0.46.0: anthropic==0.46.0
500+
anthropic-v0.60.0: anthropic==0.60.0
499501
anthropic: pytest-asyncio
500502
anthropic-v0.16.0: httpx<0.28.0
501-
anthropic-v0.30.1: httpx<0.28.0
502-
anthropic-v0.44.0: httpx<0.28.0
503+
anthropic-v0.31.2: httpx<0.28.0
504+
anthropic-v0.46.0: httpx<0.28.0
503505

504506
cohere-v5.4.0: cohere==5.4.0
505507
cohere-v5.9.4: cohere==5.9.4
@@ -508,12 +510,14 @@ deps =
508510

509511
openai_agents-v0.0.19: openai-agents==0.0.19
510512
openai_agents-v0.1.0: openai-agents==0.1.0
513+
openai_agents-v0.2.3: openai-agents==0.2.3
511514
openai_agents: pytest-asyncio
512515

513516
huggingface_hub-v0.22.2: huggingface_hub==0.22.2
514517
huggingface_hub-v0.26.5: huggingface_hub==0.26.5
515518
huggingface_hub-v0.30.2: huggingface_hub==0.30.2
516-
huggingface_hub-v0.33.4: huggingface_hub==0.33.4
519+
huggingface_hub-v0.34.2: huggingface_hub==0.34.2
520+
huggingface_hub-v0.35.0rc0: huggingface_hub==0.35.0rc0
517521

518522

519523
# ~~~ DBs ~~~
@@ -543,9 +547,9 @@ deps =
543547
openfeature-v0.8.1: openfeature-sdk==0.8.1
544548

545549
statsig-v0.55.3: statsig==0.55.3
546-
statsig-v0.56.0: statsig==0.56.0
547550
statsig-v0.57.3: statsig==0.57.3
548-
statsig-v0.59.0: statsig==0.59.0
551+
statsig-v0.59.1: statsig==0.59.1
552+
statsig-v0.61.0: statsig==0.61.0
549553
statsig: typing_extensions
550554

551555
unleash-v6.0.1: UnleashClient==6.0.1
@@ -576,21 +580,20 @@ deps =
576580
py3.6-graphene: aiocontextvars
577581

578582
strawberry-v0.209.8: strawberry-graphql[fastapi,flask]==0.209.8
579-
strawberry-v0.231.1: strawberry-graphql[fastapi,flask]==0.231.1
580-
strawberry-v0.253.1: strawberry-graphql[fastapi,flask]==0.253.1
581-
strawberry-v0.276.0: strawberry-graphql[fastapi,flask]==0.276.0
583+
strawberry-v0.232.2: strawberry-graphql[fastapi,flask]==0.232.2
584+
strawberry-v0.255.0: strawberry-graphql[fastapi,flask]==0.255.0
585+
strawberry-v0.278.0: strawberry-graphql[fastapi,flask]==0.278.0
582586
strawberry: httpx
583587
strawberry-v0.209.8: pydantic<2.11
584-
strawberry-v0.231.1: pydantic<2.11
585-
strawberry-v0.253.1: pydantic<2.11
588+
strawberry-v0.232.2: pydantic<2.11
589+
strawberry-v0.255.0: pydantic<2.11
586590

587591

588592
# ~~~ Network ~~~
589593
grpc-v1.32.0: grpcio==1.32.0
590594
grpc-v1.46.5: grpcio==1.46.5
591595
grpc-v1.60.2: grpcio==1.60.2
592-
grpc-v1.73.1: grpcio==1.73.1
593-
grpc-v1.74.0rc1: grpcio==1.74.0rc1
596+
grpc-v1.74.0: grpcio==1.74.0
594597
grpc: protobuf
595598
grpc: mypy-protobuf
596599
grpc: types-protobuf
@@ -663,7 +666,7 @@ deps =
663666
starlette-v0.16.0: starlette==0.16.0
664667
starlette-v0.26.1: starlette==0.26.1
665668
starlette-v0.36.3: starlette==0.36.3
666-
starlette-v0.47.1: starlette==0.47.1
669+
starlette-v0.47.2: starlette==0.47.2
667670
starlette: pytest-asyncio
668671
starlette: python-multipart
669672
starlette: requests
@@ -683,7 +686,7 @@ deps =
683686
fastapi: pytest-asyncio
684687
fastapi: python-multipart
685688
fastapi: requests
686-
fastapi: anyio<4
689+
fastapi: anyio>=3,<5
687690
fastapi-v0.79.1: httpx<0.28.0
688691
fastapi-v0.91.0: httpx<0.28.0
689692
fastapi-v0.103.2: httpx<0.28.0
@@ -694,10 +697,10 @@ deps =
694697
aiohttp-v3.4.4: aiohttp==3.4.4
695698
aiohttp-v3.7.4: aiohttp==3.7.4
696699
aiohttp-v3.10.11: aiohttp==3.10.11
697-
aiohttp-v3.12.14: aiohttp==3.12.14
700+
aiohttp-v3.12.15: aiohttp==3.12.15
698701
aiohttp: pytest-aiohttp
699702
aiohttp-v3.10.11: pytest-asyncio
700-
aiohttp-v3.12.14: pytest-asyncio
703+
aiohttp-v3.12.15: pytest-asyncio
701704

702705
bottle-v0.12.25: bottle==0.12.25
703706
bottle-v0.13.4: bottle==0.13.4
@@ -706,6 +709,7 @@ deps =
706709
falcon-v3.0.1: falcon==3.0.1
707710
falcon-v3.1.3: falcon==3.1.3
708711
falcon-v4.0.2: falcon==4.0.2
712+
falcon-v4.1.0a3: falcon==4.1.0a3
709713

710714
litestar-v2.0.1: litestar==2.0.1
711715
litestar-v2.5.5: litestar==2.5.5
@@ -749,8 +753,8 @@ deps =
749753
trytond-v5.0.63: trytond==5.0.63
750754
trytond-v5.8.16: trytond==5.8.16
751755
trytond-v6.8.17: trytond==6.8.17
752-
trytond-v7.0.33: trytond==7.0.33
753-
trytond-v7.6.3: trytond==7.6.3
756+
trytond-v7.0.34: trytond==7.0.34
757+
trytond-v7.6.4: trytond==7.6.4
754758
trytond: werkzeug
755759
trytond-v5.0.63: werkzeug<1.0
756760

0 commit comments

Comments
 (0)