Skip to content

Commit c9b4e86

Browse files
committed
.
1 parent 1acffa6 commit c9b4e86

File tree

2 files changed

+102
-94
lines changed

2 files changed

+102
-94
lines changed

scripts/populate_tox/dependencies.py

Lines changed: 44 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,3 @@
1-
{
2-
"anthropic": {
3-
"main": "anthropic",
4-
"dependencies": {
5-
"*": ["anthropic", "pytest-asyncio"],
6-
"anthropic<0.35": "httpx<0.28.0",
7-
},
8-
},
9-
"celery": {"deps": [], "conditions": {"py3.7": "importlib-metadata<5.0"}},
10-
"httpx": {
11-
"deps": [],
12-
"conditions": {
13-
"httpx==0.16": "pytest-httpx==0.16",
14-
},
15-
},
16-
}
17-
18-
191
DEPENDENCIES = {
202
"aiohttp": {
213
"package": "aiohttp",
@@ -34,7 +16,6 @@
3416
"*": ["fastapi", "flask", "httpx"],
3517
},
3618
},
37-
# XXX arq-v0.23: pydantic<2
3819
"arq": {
3920
"package": "arq",
4021
"deps": {
@@ -91,34 +72,22 @@
9172
"*": ["httpx"],
9273
},
9374
},
94-
# XXX
95-
# django: psycopg2-binary
96-
# django-v{1.11,2.0,2.1,2.2,3.0,3.1,3.2}: djangorestframework>=3.0.0,<4.0.0
97-
# django-v{2.0,2.2,3.0,3.2,4.0,4.1,4.2,5.0,5.1}: channels[daphne]
98-
# django-v{2.2,3.0}: six
99-
# django-v{1.11,2.0,2.2,3.0,3.2}: Werkzeug<2.1.0
100-
# django-v{1.11,2.0,2.2,3.0}: pytest-django<4.0
101-
# django-v{3.2,4.0,4.1,4.2,5.0,5.1}: pytest-django
102-
# django-v{4.0,4.1,4.2,5.0,5.1}: djangorestframework
103-
# django-v{4.0,4.1,4.2,5.0,5.1}: pytest-asyncio
104-
# django-v{4.0,4.1,4.2,5.0,5.1}: Werkzeug
105-
# django-latest: djangorestframework
106-
# django-latest: pytest-asyncio
107-
# django-latest: pytest-django
108-
# django-latest: Werkzeug
109-
# django-latest: channels[daphne]
11075
"django": {
11176
"package": "django",
11277
"deps": {
11378
"*": [
114-
"channels[daphne]",
115-
"djangorestframework",
11679
"psycopg2-binary",
117-
"pytest-asyncio",
118-
"pytest-django",
119-
"six",
12080
"werkzeug",
121-
]
81+
],
82+
">=2.0,<3.0": ["six"],
83+
"<=3.2": [
84+
"werkzeug<2.1.0",
85+
"djangorestframework>=3.0.0,<4.0.0]",
86+
"pytest-django",
87+
],
88+
">=2.0": ["channels[daphne]"],
89+
"<=3.0": ["pytest-django<4.0"],
90+
">=4.0": ["djangorestframework", "pytest-asyncio"],
12291
},
12392
},
12493
"dramatiq": {
@@ -162,21 +131,17 @@
162131
"*": ["protobuf", "mypy-protobuf", "types-protobuf", "pytest-asyncio"]
163132
},
164133
},
165-
# XXX
166-
# httpx-v0.16: pytest-httpx==0.10.0
167-
# httpx-v0.18: pytest-httpx==0.12.0
168-
# httpx-v0.20: pytest-httpx==0.14.0
169-
# httpx-v0.22: pytest-httpx==0.19.0
170-
# httpx-v0.23: pytest-httpx==0.21.0
171-
# httpx-v0.24: pytest-httpx==0.22.0
172-
# httpx-v0.25: pytest-httpx==0.25.0
173-
# httpx: pytest-httpx
174-
# anyio is a dep of httpx
175-
# httpx: anyio<4.0.0
176134
"httpx": {
177135
"package": "httpx",
178136
"deps": {
179-
"*": ["anyio<4.0.0"],
137+
"*": ["anyio<4.0.0", "pytest-httpx"],
138+
"==0.16": ["pytest-httpx==0.10.0"],
139+
"==0.18": ["pytest-httpx==0.12.0"],
140+
"==0.20": ["pytest-httpx==0.14.0"],
141+
"==0.22": ["pytest-httpx==0.19.0"],
142+
"==0.23": ["pytest-httpx==0.21.0"],
143+
"==0.24": ["pytest-httpx==0.22.0"],
144+
"==0.25": ["pytest-httpx==0.25.0"],
180145
},
181146
},
182147
"huey": {
@@ -191,10 +156,8 @@
191156
},
192157
# XXX
193158
# langchain-v0.1: openai~=1.0.0
194-
# langchain-v0.1: langchain~=0.1.11
195159
# langchain-v0.1: tiktoken~=0.6.0
196160
# langchain-v0.1: httpx<0.28.0
197-
# langchain-v0.3: langchain~=0.3.0
198161
# langchain-v0.3: langchain-community
199162
# langchain-v0.3: tiktoken
200163
# langchain-v0.3: openai
@@ -205,13 +168,15 @@
205168
"langchain": {
206169
"package": "langchain",
207170
"deps": {
208-
"*": ["langchain-community", "openai", "tiktoken", "httpx"],
171+
"*": ["openai", "tiktoken", "httpx"],
172+
">=0.3": ["langchain-community"],
209173
},
210174
},
211175
"langchain_notiktoken": {
212176
"package": "langchain",
213177
"deps": {
214-
"*": ["langchain-openai", "openai"],
178+
"*": ["openai", "httpx"],
179+
">=0.3": ["langchain-community"],
215180
},
216181
},
217182
"litestar": {
@@ -228,25 +193,19 @@
228193
},
229194
},
230195
# XXX
231-
# openai-v1.0: openai~=1.0.0
232-
# openai-v1.0: tiktoken
233-
# openai-v1.0: httpx<0.28.0
234-
# openai-v1.22: openai~=1.22.0
235-
# openai-v1.22: tiktoken
236-
# openai-v1.22: httpx<0.28.0
237-
# openai-v1.55: openai~=1.55.0
238-
# openai-v1.55: tiktoken
239-
# openai-latest: openai
240196
# openai-latest: tiktoken~=0.6.0
241-
# openai-notiktoken: openai
242197
"openai": {
243198
"package": "openai",
244-
"deps": {"*": ["pytest-asyncio", "tiktoken", "httpx"]},
199+
"deps": {
200+
"*": ["pytest-asyncio", "tiktoken", "httpx"],
201+
"<=1.22": ["httpx<0.28.0"],
202+
},
245203
},
246204
"openai_notiktoken": {
247205
"package": "openai",
248206
"deps": {
249-
"*": ["pytest-asyncio"],
207+
"*": ["pytest-asyncio", "httpx"],
208+
"<=1.22": ["httpx<0.28.0"],
250209
},
251210
},
252211
"openfeature": {
@@ -285,22 +244,21 @@
285244
"*": ["werkzeug<2.1.0"],
286245
},
287246
},
288-
# XXX
289-
# quart-v0.16: blinker<1.6
290-
# quart-v0.16: jinja2<3.1.0
291-
# quart-v0.16: Werkzeug<2.1.0
292-
# quart-v0.16: hypercorn<0.15.0
293-
# quart-v0.16: quart~=0.16.0
294-
# quart-v0.19: Werkzeug>=3.0.0
295-
# quart-v0.19: quart~=0.19.0
296-
# {py3.8}-quart: taskgroup==0.0.0a4
297247
"quart": {
298248
"package": "quart",
299249
"deps": {
300250
"*": [
301251
"quart-auth",
302252
"pytest-asyncio",
253+
"werkzeug",
254+
],
255+
"<=0.16": [
256+
"blinker<1.6",
257+
"jinja2<3.1.0",
258+
"Werkzeug<2.1.0",
259+
"hypercorn<0.15.0",
303260
],
261+
"py3.8": ["taskgroup==0.0.0a4"],
304262
},
305263
},
306264
"ray": {
@@ -324,19 +282,18 @@
324282
"package": "requests",
325283
"deps": {},
326284
},
327-
# XXX
328-
# https://github.com/jamesls/fakeredis/issues/245
329-
# rq-v{0.6}: fakeredis<1.0
330-
# rq-v{0.6}: redis<3.2.2
331-
# rq-v{0.13,1.0,1.5,1.10}: fakeredis>=1.0,<1.7.4
332-
# rq-v{1.15,1.16}: fakeredis
333-
# {py3.6,py3.7}-rq-v{1.15,1.16}: fakeredis!=2.26.0 # https://github.com/cunla/fakeredis-py/issues/341
334-
# rq-latest: fakeredis
335-
# {py3.6,py3.7}-rq-latest: fakeredis!=2.26.0 # https://github.com/cunla/fakeredis-py/issues/341
336285
"rq": {
337286
"package": "rq",
338287
"deps": {
339288
"*": ["fakeredis"],
289+
"<0.13": [
290+
"fakeredis<1.0",
291+
"redis<3.2.2",
292+
], # https://github.com/jamesls/fakeredis/issues/245
293+
">=0.13,<=1.10": ["fakeredis>=1.0,<1.7.4"],
294+
"py3.6,py3.7": [
295+
"fakeredis!=2.26.0"
296+
], # https://github.com/cunla/fakeredis-py/issues/341
340297
},
341298
},
342299
"sanic": {

0 commit comments

Comments
 (0)