Skip to content

Commit 1041dbb

Browse files
authored
tests: Move anthropic under toxgen (#4348)
1 parent 28a87df commit 1041dbb

File tree

5 files changed

+24
-27
lines changed

5 files changed

+24
-27
lines changed

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

+1-1
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

scripts/populate_tox/config.py

+8
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@
1414
},
1515
"python": ">=3.7",
1616
},
17+
"anthropic": {
18+
"package": "anthropic",
19+
"deps": {
20+
"*": ["pytest-asyncio"],
21+
"<0.50": ["httpx<0.28.0"],
22+
},
23+
"python": ">=3.8",
24+
},
1725
"ariadne": {
1826
"package": "ariadne",
1927
"deps": {

scripts/populate_tox/populate_tox.py

-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
"potel",
6868
# Integrations that can be migrated -- we should eventually remove all
6969
# of these from the IGNORE list
70-
"anthropic",
7170
"arq",
7271
"asyncpg",
7372
"beam",

scripts/populate_tox/tox.jinja

-12
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ envlist =
3636
# At a minimum, we should test against at least the lowest
3737
# and the latest supported version of a framework.
3838

39-
# Anthropic
40-
{py3.8,py3.11,py3.12}-anthropic-v{0.16,0.28,0.40}
41-
{py3.7,py3.11,py3.12}-anthropic-latest
42-
4339
# Arq
4440
{py3.7,py3.11}-arq-v{0.23}
4541
{py3.7,py3.12,py3.13}-arq-latest
@@ -179,14 +175,6 @@ deps =
179175
180176
# === Integrations ===
181177
182-
# Anthropic
183-
anthropic: pytest-asyncio
184-
anthropic-v{0.16,0.28}: httpx<0.28.0
185-
anthropic-v0.16: anthropic~=0.16.0
186-
anthropic-v0.28: anthropic~=0.28.0
187-
anthropic-v0.40: anthropic~=0.40.0
188-
anthropic-latest: anthropic
189-
190178
# Arq
191179
arq-v0.23: arq~=0.23.0
192180
arq-v0.23: pydantic<2

tox.ini

+15-13
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-04-29T08:15:04.584844+00:00
13+
# Last generated: 2025-04-29T08:35:44.624881+00:00
1414

1515
[tox]
1616
requires =
@@ -36,10 +36,6 @@ envlist =
3636
# At a minimum, we should test against at least the lowest
3737
# and the latest supported version of a framework.
3838

39-
# Anthropic
40-
{py3.8,py3.11,py3.12}-anthropic-v{0.16,0.28,0.40}
41-
{py3.7,py3.11,py3.12}-anthropic-latest
42-
4339
# Arq
4440
{py3.7,py3.11}-arq-v{0.23}
4541
{py3.7,py3.12,py3.13}-arq-latest
@@ -139,6 +135,11 @@ envlist =
139135
# integration tests there.
140136

141137
# ~~~ AI ~~~
138+
{py3.8,py3.11,py3.12}-anthropic-v0.16.0
139+
{py3.8,py3.11,py3.12}-anthropic-v0.27.0
140+
{py3.8,py3.11,py3.12}-anthropic-v0.38.0
141+
{py3.8,py3.11,py3.12}-anthropic-v0.50.0
142+
142143
{py3.9,py3.10,py3.11}-cohere-v5.4.0
143144
{py3.9,py3.11,py3.12}-cohere-v5.8.1
144145
{py3.9,py3.11,py3.12}-cohere-v5.11.4
@@ -335,14 +336,6 @@ deps =
335336

336337
# === Integrations ===
337338

338-
# Anthropic
339-
anthropic: pytest-asyncio
340-
anthropic-v{0.16,0.28}: httpx<0.28.0
341-
anthropic-v0.16: anthropic~=0.16.0
342-
anthropic-v0.28: anthropic~=0.28.0
343-
anthropic-v0.40: anthropic~=0.40.0
344-
anthropic-latest: anthropic
345-
346339
# Arq
347340
arq-v0.23: arq~=0.23.0
348341
arq-v0.23: pydantic<2
@@ -506,6 +499,15 @@ deps =
506499
# integration tests there.
507500

508501
# ~~~ AI ~~~
502+
anthropic-v0.16.0: anthropic==0.16.0
503+
anthropic-v0.27.0: anthropic==0.27.0
504+
anthropic-v0.38.0: anthropic==0.38.0
505+
anthropic-v0.50.0: anthropic==0.50.0
506+
anthropic: pytest-asyncio
507+
anthropic-v0.16.0: httpx<0.28.0
508+
anthropic-v0.27.0: httpx<0.28.0
509+
anthropic-v0.38.0: httpx<0.28.0
510+
509511
cohere-v5.4.0: cohere==5.4.0
510512
cohere-v5.8.1: cohere==5.8.1
511513
cohere-v5.11.4: cohere==5.11.4

0 commit comments

Comments
 (0)