Skip to content

Commit 8632281

Browse files
authored
toxgen: Add cohere (#4304)
1 parent e6c8798 commit 8632281

File tree

5 files changed

+16
-18
lines changed

5 files changed

+16
-18
lines changed

scripts/populate_tox/config.py

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
"clickhouse_driver": {
3030
"package": "clickhouse-driver",
3131
},
32+
"cohere": {
33+
"package": "cohere",
34+
"python": ">=3.9",
35+
},
3236
"django": {
3337
"package": "django",
3438
"deps": {

scripts/populate_tox/populate_tox.py

-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@
7474
"beam",
7575
"boto3",
7676
"chalice",
77-
"cohere",
7877
"gcp",
7978
"httpx",
8079
"langchain",

scripts/populate_tox/tox.jinja

-8
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@ envlist =
7676
# Cloud Resource Context
7777
{py3.6,py3.12,py3.13}-cloud_resource_context
7878

79-
# Cohere
80-
{py3.9,py3.11,py3.12}-cohere-v5
81-
{py3.9,py3.11,py3.12}-cohere-latest
82-
8379
# GCP
8480
{py3.7}-gcp
8581

@@ -244,10 +240,6 @@ deps =
244240
chalice-v1.16: chalice~=1.16.0
245241
chalice-latest: chalice
246242
247-
# Cohere
248-
cohere-v5: cohere~=5.3.3
249-
cohere-latest: cohere
250-
251243
# HTTPX
252244
httpx-v0.16: pytest-httpx==0.10.0
253245
httpx-v0.18: pytest-httpx==0.12.0

sentry_sdk/integrations/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ def iter_default_integrations(with_auto_enabling_integrations):
131131
"celery": (4, 4, 7),
132132
"chalice": (1, 16, 0),
133133
"clickhouse_driver": (0, 2, 0),
134+
"cohere": (5, 4, 0),
134135
"django": (1, 8),
135136
"dramatiq": (1, 9),
136137
"falcon": (1, 4),

tox.ini

+11-9
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-15T14:38:12.763407+00:00
13+
# Last generated: 2025-04-15T15:09:46.980440+00:00
1414

1515
[tox]
1616
requires =
@@ -76,10 +76,6 @@ envlist =
7676
# Cloud Resource Context
7777
{py3.6,py3.12,py3.13}-cloud_resource_context
7878

79-
# Cohere
80-
{py3.9,py3.11,py3.12}-cohere-v5
81-
{py3.9,py3.11,py3.12}-cohere-latest
82-
8379
# GCP
8480
{py3.7}-gcp
8581

@@ -148,6 +144,11 @@ envlist =
148144
# integration tests there.
149145

150146
# ~~~ AI ~~~
147+
{py3.9,py3.10,py3.11}-cohere-v5.4.0
148+
{py3.9,py3.11,py3.12}-cohere-v5.9.4
149+
{py3.9,py3.11,py3.12}-cohere-v5.13.9
150+
{py3.9,py3.11,py3.12}-cohere-v5.15.0
151+
151152
{py3.8,py3.10,py3.11}-huggingface_hub-v0.22.2
152153
{py3.8,py3.10,py3.11}-huggingface_hub-v0.25.2
153154
{py3.8,py3.12,py3.13}-huggingface_hub-v0.28.1
@@ -391,10 +392,6 @@ deps =
391392
chalice-v1.16: chalice~=1.16.0
392393
chalice-latest: chalice
393394

394-
# Cohere
395-
cohere-v5: cohere~=5.3.3
396-
cohere-latest: cohere
397-
398395
# HTTPX
399396
httpx-v0.16: pytest-httpx==0.10.0
400397
httpx-v0.18: pytest-httpx==0.12.0
@@ -518,6 +515,11 @@ deps =
518515
# integration tests there.
519516

520517
# ~~~ AI ~~~
518+
cohere-v5.4.0: cohere==5.4.0
519+
cohere-v5.9.4: cohere==5.9.4
520+
cohere-v5.13.9: cohere==5.13.9
521+
cohere-v5.15.0: cohere==5.15.0
522+
521523
huggingface_hub-v0.22.2: huggingface_hub==0.22.2
522524
huggingface_hub-v0.25.2: huggingface_hub==0.25.2
523525
huggingface_hub-v0.28.1: huggingface_hub==0.28.1

0 commit comments

Comments
 (0)