Skip to content

Commit 7bc91ed

Browse files
authored
tests: Move arq under toxgen (#4739)
Remove hardcoded arq config, generate with toxgen instead.
1 parent 4e845d5 commit 7bc91ed

File tree

4 files changed

+51
-56
lines changed

4 files changed

+51
-56
lines changed

scripts/populate_tox/config.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@
2929
},
3030
"python": ">=3.8",
3131
},
32+
"arq": {
33+
"package": "arq",
34+
"deps": {
35+
"*": ["async-timeout", "pytest-asyncio", "fakeredis>=2.2.0,<2.8"],
36+
"<=0.23": ["pydantic<2"],
37+
},
38+
},
3239
"bottle": {
3340
"package": "bottle",
3441
"deps": {

scripts/populate_tox/populate_tox.py

Lines changed: 0 additions & 1 deletion
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-
"arq",
7170
"asyncpg",
7271
"beam",
7372
"boto3",

scripts/populate_tox/tox.jinja

Lines changed: 0 additions & 12 deletions
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-
# Arq
40-
{py3.7,py3.11}-arq-v{0.23}
41-
{py3.7,py3.12,py3.13}-arq-latest
42-
4339
# Asgi
4440
{py3.7,py3.12,py3.13}-asgi
4541

@@ -164,14 +160,6 @@ deps =
164160
165161
# === Integrations ===
166162
167-
# Arq
168-
arq-v0.23: arq~=0.23.0
169-
arq-v0.23: pydantic<2
170-
arq-latest: arq
171-
arq: fakeredis>=2.2.0,<2.8
172-
arq: pytest-asyncio
173-
arq: async-timeout
174-
175163
# Asgi
176164
asgi: pytest-asyncio
177165
asgi: async-asgi-testclient

tox.ini

Lines changed: 44 additions & 43 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-09-02T14:49:13.002983+00:00
13+
# Last generated: 2025-09-03T15:01:21.035943+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-
# Arq
40-
{py3.7,py3.11}-arq-v{0.23}
41-
{py3.7,py3.12,py3.13}-arq-latest
42-
4339
# Asgi
4440
{py3.7,py3.12,py3.13}-asgi
4541

@@ -123,9 +119,9 @@ envlist =
123119

124120
# ~~~ AI ~~~
125121
{py3.8,py3.11,py3.12}-anthropic-v0.16.0
126-
{py3.8,py3.11,py3.12}-anthropic-v0.32.0
127-
{py3.8,py3.11,py3.12}-anthropic-v0.48.0
128-
{py3.8,py3.12,py3.13}-anthropic-v0.64.0
122+
{py3.8,py3.11,py3.12}-anthropic-v0.33.1
123+
{py3.8,py3.11,py3.12}-anthropic-v0.50.0
124+
{py3.8,py3.12,py3.13}-anthropic-v0.66.0
129125

130126
{py3.9,py3.10,py3.11}-cohere-v5.4.0
131127
{py3.9,py3.11,py3.12}-cohere-v5.9.4
@@ -141,14 +137,14 @@ envlist =
141137
{py3.9,py3.12,py3.13}-langchain-notiktoken-v0.3.27
142138

143139
{py3.8,py3.11,py3.12}-openai-base-v1.0.1
144-
{py3.8,py3.11,py3.12}-openai-base-v1.35.15
145-
{py3.8,py3.11,py3.12}-openai-base-v1.69.0
146-
{py3.8,py3.12,py3.13}-openai-base-v1.103.0
140+
{py3.8,py3.11,py3.12}-openai-base-v1.36.1
141+
{py3.8,py3.11,py3.12}-openai-base-v1.71.0
142+
{py3.8,py3.12,py3.13}-openai-base-v1.105.0
147143

148144
{py3.8,py3.11,py3.12}-openai-notiktoken-v1.0.1
149-
{py3.8,py3.11,py3.12}-openai-notiktoken-v1.35.15
150-
{py3.8,py3.11,py3.12}-openai-notiktoken-v1.69.0
151-
{py3.8,py3.12,py3.13}-openai-notiktoken-v1.103.0
145+
{py3.8,py3.11,py3.12}-openai-notiktoken-v1.36.1
146+
{py3.8,py3.11,py3.12}-openai-notiktoken-v1.71.0
147+
{py3.8,py3.12,py3.13}-openai-notiktoken-v1.105.0
152148

153149
{py3.10,py3.11,py3.12}-openai_agents-v0.0.19
154150
{py3.10,py3.12,py3.13}-openai_agents-v0.1.0
@@ -227,6 +223,11 @@ envlist =
227223

228224

229225
# ~~~ Tasks ~~~
226+
{py3.7,py3.9,py3.10}-arq-v0.23
227+
{py3.7,py3.10,py3.11}-arq-v0.24.0
228+
{py3.7,py3.10,py3.11}-arq-v0.25.0
229+
{py3.8,py3.11,py3.12}-arq-v0.26.3
230+
230231
{py3.6,py3.7,py3.8}-celery-v4.4.7
231232
{py3.6,py3.7,py3.8}-celery-v5.0.5
232233
{py3.8,py3.12,py3.13}-celery-v5.5.3
@@ -250,9 +251,9 @@ envlist =
250251
{py3.6,py3.7}-django-v1.11.29
251252
{py3.6,py3.8,py3.9}-django-v2.2.28
252253
{py3.6,py3.9,py3.10}-django-v3.2.25
253-
{py3.8,py3.11,py3.12}-django-v4.2.23
254+
{py3.8,py3.11,py3.12}-django-v4.2.24
254255
{py3.10,py3.11,py3.12}-django-v5.0.14
255-
{py3.10,py3.12,py3.13}-django-v5.2.5
256+
{py3.10,py3.12,py3.13}-django-v5.2.6
256257

257258
{py3.6,py3.7,py3.8}-flask-v1.1.4
258259
{py3.8,py3.12,py3.13}-flask-v2.3.3
@@ -353,14 +354,6 @@ deps =
353354

354355
# === Integrations ===
355356

356-
# Arq
357-
arq-v0.23: arq~=0.23.0
358-
arq-v0.23: pydantic<2
359-
arq-latest: arq
360-
arq: fakeredis>=2.2.0,<2.8
361-
arq: pytest-asyncio
362-
arq: async-timeout
363-
364357
# Asgi
365358
asgi: pytest-asyncio
366359
asgi: async-asgi-testclient
@@ -491,13 +484,12 @@ deps =
491484

492485
# ~~~ AI ~~~
493486
anthropic-v0.16.0: anthropic==0.16.0
494-
anthropic-v0.32.0: anthropic==0.32.0
495-
anthropic-v0.48.0: anthropic==0.48.0
496-
anthropic-v0.64.0: anthropic==0.64.0
487+
anthropic-v0.33.1: anthropic==0.33.1
488+
anthropic-v0.50.0: anthropic==0.50.0
489+
anthropic-v0.66.0: anthropic==0.66.0
497490
anthropic: pytest-asyncio
498491
anthropic-v0.16.0: httpx<0.28.0
499-
anthropic-v0.32.0: httpx<0.28.0
500-
anthropic-v0.48.0: httpx<0.28.0
492+
anthropic-v0.33.1: httpx<0.28.0
501493

502494
cohere-v5.4.0: cohere==5.4.0
503495
cohere-v5.9.4: cohere==5.9.4
@@ -520,21 +512,21 @@ deps =
520512
langchain-notiktoken-v0.3.27: langchain-community
521513

522514
openai-base-v1.0.1: openai==1.0.1
523-
openai-base-v1.35.15: openai==1.35.15
524-
openai-base-v1.69.0: openai==1.69.0
525-
openai-base-v1.103.0: openai==1.103.0
515+
openai-base-v1.36.1: openai==1.36.1
516+
openai-base-v1.71.0: openai==1.71.0
517+
openai-base-v1.105.0: openai==1.105.0
526518
openai-base: pytest-asyncio
527519
openai-base: tiktoken
528520
openai-base-v1.0.1: httpx<0.28
529-
openai-base-v1.35.15: httpx<0.28
521+
openai-base-v1.36.1: httpx<0.28
530522

531523
openai-notiktoken-v1.0.1: openai==1.0.1
532-
openai-notiktoken-v1.35.15: openai==1.35.15
533-
openai-notiktoken-v1.69.0: openai==1.69.0
534-
openai-notiktoken-v1.103.0: openai==1.103.0
524+
openai-notiktoken-v1.36.1: openai==1.36.1
525+
openai-notiktoken-v1.71.0: openai==1.71.0
526+
openai-notiktoken-v1.105.0: openai==1.105.0
535527
openai-notiktoken: pytest-asyncio
536528
openai-notiktoken-v1.0.1: httpx<0.28
537-
openai-notiktoken-v1.35.15: httpx<0.28
529+
openai-notiktoken-v1.36.1: httpx<0.28
538530

539531
openai_agents-v0.0.19: openai-agents==0.0.19
540532
openai_agents-v0.1.0: openai-agents==0.1.0
@@ -635,6 +627,15 @@ deps =
635627

636628

637629
# ~~~ Tasks ~~~
630+
arq-v0.23: arq==0.23
631+
arq-v0.24.0: arq==0.24.0
632+
arq-v0.25.0: arq==0.25.0
633+
arq-v0.26.3: arq==0.26.3
634+
arq: async-timeout
635+
arq: pytest-asyncio
636+
arq: fakeredis>=2.2.0,<2.8
637+
arq-v0.23: pydantic<2
638+
638639
celery-v4.4.7: celery==4.4.7
639640
celery-v5.0.5: celery==5.0.5
640641
celery-v5.5.3: celery==5.5.3
@@ -661,23 +662,23 @@ deps =
661662
django-v1.11.29: django==1.11.29
662663
django-v2.2.28: django==2.2.28
663664
django-v3.2.25: django==3.2.25
664-
django-v4.2.23: django==4.2.23
665+
django-v4.2.24: django==4.2.24
665666
django-v5.0.14: django==5.0.14
666-
django-v5.2.5: django==5.2.5
667+
django-v5.2.6: django==5.2.6
667668
django: psycopg2-binary
668669
django: djangorestframework
669670
django: pytest-django
670671
django: Werkzeug
671672
django-v2.2.28: channels[daphne]
672673
django-v3.2.25: channels[daphne]
673-
django-v4.2.23: channels[daphne]
674+
django-v4.2.24: channels[daphne]
674675
django-v5.0.14: channels[daphne]
675-
django-v5.2.5: channels[daphne]
676+
django-v5.2.6: channels[daphne]
676677
django-v2.2.28: six
677678
django-v3.2.25: pytest-asyncio
678-
django-v4.2.23: pytest-asyncio
679+
django-v4.2.24: pytest-asyncio
679680
django-v5.0.14: pytest-asyncio
680-
django-v5.2.5: pytest-asyncio
681+
django-v5.2.6: pytest-asyncio
681682
django-v1.11.29: djangorestframework>=3.0,<4.0
682683
django-v1.11.29: Werkzeug<2.1.0
683684
django-v2.2.28: djangorestframework>=3.0,<4.0

0 commit comments

Comments
 (0)