Skip to content

Commit 82b8a60

Browse files
committed
anthropic
1 parent 6ef2e19 commit 82b8a60

File tree

4 files changed

+38
-35
lines changed

4 files changed

+38
-35
lines changed

.github/workflows/test-integrations-ai.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
python-version: ["3.7","3.9","3.11","3.12"]
32+
python-version: ["3.9","3.11","3.12"]
3333
# python3.6 reached EOL and is no longer being supported on
3434
# new versions of hosted runners on Github Actions
3535
# ubuntu-20.04 is the last version that supported python3.6
@@ -101,7 +101,7 @@ jobs:
101101
strategy:
102102
fail-fast: false
103103
matrix:
104-
python-version: ["3.8","3.9","3.10","3.11","3.12","3.13"]
104+
python-version: ["3.7","3.8","3.9","3.10","3.11","3.12","3.13"]
105105
# python3.6 reached EOL and is no longer being supported on
106106
# new versions of hosted runners on Github Actions
107107
# ubuntu-20.04 is the last version that supported python3.6

scripts/populate_tox/populate_tox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
# suites over to this script. Some entries will probably stay forever
4545
# as they don't fit the mold (e.g. common, asgi, which don't have a 3rd party
4646
# pypi package to install in different versions).
47-
"anthropic",
47+
"aiohttp",
4848
"arq",
4949
"asgi",
5050
"asyncpg",

scripts/populate_tox/tox.jinja

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ envlist =
3131
# At a minimum, we should test against at least the lowest
3232
# and the latest supported version of a framework.
3333

34-
# Anthropic
35-
{py3.8,py3.11,py3.12}-anthropic-v{0.16,0.28,0.40}
36-
{py3.7,py3.11,py3.12}-anthropic-latest
34+
# AIOHTTP
35+
{py3.7}-aiohttp-v{3.4}
36+
{py3.7,py3.9,py3.11}-aiohttp-v{3.8}
37+
{py3.8,py3.12,py3.13}-aiohttp-latest
3738

3839
# Arq
3940
{py3.7,py3.11}-arq-v{0.23}
@@ -203,13 +204,13 @@ deps =
203204
204205
# === Integrations ===
205206
206-
# Anthropic
207-
anthropic: pytest-asyncio
208-
anthropic-v{0.16,0.28}: httpx<0.28.0
209-
anthropic-v0.16: anthropic~=0.16.0
210-
anthropic-v0.28: anthropic~=0.28.0
211-
anthropic-v0.40: anthropic~=0.40.0
212-
anthropic-latest: Anthropic
207+
# AIOHTTP
208+
aiohttp-v3.4: aiohttp~=3.4.0
209+
aiohttp-v3.8: aiohttp~=3.8.0
210+
aiohttp-latest: aiohttp
211+
aiohttp: pytest-aiohttp
212+
aiohttp-v3.8: pytest-asyncio
213+
aiohttp-latest: pytest-asyncio
213214
214215
# Arq
215216
arq-v0.23: arq~=0.23.0

tox.ini

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ envlist =
3131
# At a minimum, we should test against at least the lowest
3232
# and the latest supported version of a framework.
3333

34-
# Anthropic
35-
{py3.8,py3.11,py3.12}-anthropic-v{0.16,0.28,0.40}
36-
{py3.7,py3.11,py3.12}-anthropic-latest
34+
# AIOHTTP
35+
{py3.7}-aiohttp-v{3.4}
36+
{py3.7,py3.9,py3.11}-aiohttp-v{3.8}
37+
{py3.8,py3.12,py3.13}-aiohttp-latest
3738

3839
# Arq
3940
{py3.7,py3.11}-arq-v{0.23}
@@ -163,6 +164,11 @@ envlist =
163164
# integration tests there.
164165

165166
# ~~~ AI ~~~
167+
{py3.7,py3.11,py3.12}-anthropic-v0.16.0
168+
{py3.7,py3.11,py3.12}-anthropic-v0.25.9
169+
{py3.7,py3.11,py3.12}-anthropic-v0.34.2
170+
{py3.8,py3.11,py3.12}-anthropic-v0.43.0
171+
166172
{py3.8,py3.10,py3.11}-huggingface_hub-v0.22.2
167173
{py3.8,py3.10,py3.11}-huggingface_hub-v0.24.7
168174
{py3.8,py3.11,py3.12}-huggingface_hub-v0.26.5
@@ -258,11 +264,6 @@ envlist =
258264

259265

260266
# ~~~ Web 2 ~~~
261-
{py3.7}-aiohttp-v3.6.3
262-
{py3.7,py3.9,py3.10}-aiohttp-v3.8.6
263-
{py3.8,py3.12,py3.13}-aiohttp-v3.10.9
264-
{py3.9,py3.12,py3.13}-aiohttp-v3.11.11
265-
266267
{py3.6,py3.7}-bottle-v0.12.25
267268
{py3.6,py3.8,py3.9}-bottle-v0.13.2
268269

@@ -329,13 +330,13 @@ deps =
329330

330331
# === Integrations ===
331332

332-
# Anthropic
333-
anthropic: pytest-asyncio
334-
anthropic-v{0.16,0.28}: httpx<0.28.0
335-
anthropic-v0.16: anthropic~=0.16.0
336-
anthropic-v0.28: anthropic~=0.28.0
337-
anthropic-v0.40: anthropic~=0.40.0
338-
anthropic-latest: Anthropic
333+
# AIOHTTP
334+
aiohttp-v3.4: aiohttp~=3.4.0
335+
aiohttp-v3.8: aiohttp~=3.8.0
336+
aiohttp-latest: aiohttp
337+
aiohttp: pytest-aiohttp
338+
aiohttp-v3.8: pytest-asyncio
339+
aiohttp-latest: pytest-asyncio
339340

340341
# Arq
341342
arq-v0.23: arq~=0.23.0
@@ -545,6 +546,14 @@ deps =
545546
# integration tests there.
546547

547548
# ~~~ AI ~~~
549+
anthropic-v0.16.0: anthropic==0.16.0
550+
anthropic-v0.25.9: anthropic==0.25.9
551+
anthropic-v0.34.2: anthropic==0.34.2
552+
anthropic-v0.43.0: anthropic==0.43.0
553+
anthropic: pytest-asyncio
554+
anthropic-v0.16.0: httpx<0.28.0
555+
anthropic-v0.25.9: httpx<0.28.0
556+
548557
huggingface_hub-v0.22.2: huggingface_hub==0.22.2
549558
huggingface_hub-v0.24.7: huggingface_hub==0.24.7
550559
huggingface_hub-v0.26.5: huggingface_hub==0.26.5
@@ -674,13 +683,6 @@ deps =
674683

675684

676685
# ~~~ Web 2 ~~~
677-
aiohttp-v3.6.3: aiohttp==3.6.3
678-
aiohttp-v3.8.6: aiohttp==3.8.6
679-
aiohttp-v3.10.9: aiohttp==3.10.9
680-
aiohttp-v3.11.11: aiohttp==3.11.11
681-
aiohttp: pytest-aiohttp
682-
aiohttp: pytest-asyncio
683-
684686
bottle-v0.12.25: bottle==0.12.25
685687
bottle-v0.13.2: bottle==0.13.2
686688
bottle: werkzeug<2.1.0

0 commit comments

Comments
 (0)