Skip to content

Commit d394ef6

Browse files
authored
tests: Move Litestar under toxgen (#4197)
Remove hardcoded Litestar entries from `tox.ini`/`tox.jinja` and let `toxgen` handle it. (the pymongo update was pulled in by rerunning the script)
1 parent 7406113 commit d394ef6

File tree

5 files changed

+27
-39
lines changed

5 files changed

+27
-39
lines changed

Diff for: .github/workflows/test-integrations-web-2.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.8","3.9","3.11","3.12","3.13"]
32+
python-version: ["3.8","3.9","3.12","3.13"]
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

Diff for: scripts/populate_tox/config.py

+7
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,13 @@
6969
"launchdarkly": {
7070
"package": "launchdarkly-server-sdk",
7171
},
72+
"litestar": {
73+
"package": "litestar",
74+
"deps": {
75+
"*": ["pytest-asyncio", "python-multipart", "requests", "cryptography"],
76+
"<2.7": ["httpx<0.28"],
77+
},
78+
},
7279
"loguru": {
7380
"package": "loguru",
7481
},

Diff for: scripts/populate_tox/populate_tox.py

-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
"huggingface_hub",
7474
"langchain",
7575
"langchain_notiktoken",
76-
"litestar",
7776
"openai",
7877
"openai_notiktoken",
7978
"pure_eval",

Diff for: scripts/populate_tox/tox.jinja

-17
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,6 @@ envlist =
115115
{py3.9,py3.11,py3.12}-langchain-latest
116116
{py3.9,py3.11,py3.12}-langchain-notiktoken
117117

118-
# Litestar
119-
{py3.8,py3.11}-litestar-v{2.0}
120-
{py3.8,py3.11,py3.12}-litestar-v{2.6}
121-
{py3.8,py3.11,py3.12}-litestar-v{2.12}
122-
{py3.8,py3.11,py3.12}-litestar-latest
123-
124118
# OpenAI
125119
{py3.9,py3.11,py3.12}-openai-v1.0
126120
{py3.9,py3.11,py3.12}-openai-v1.22
@@ -347,17 +341,6 @@ deps =
347341
langchain-{latest,notiktoken}: openai>=1.6.1
348342
langchain-latest: tiktoken~=0.6.0
349343
350-
# Litestar
351-
litestar: pytest-asyncio
352-
litestar: python-multipart
353-
litestar: requests
354-
litestar: cryptography
355-
litestar-v{2.0,2.6}: httpx<0.28
356-
litestar-v2.0: litestar~=2.0.0
357-
litestar-v2.6: litestar~=2.6.0
358-
litestar-v2.12: litestar~=2.12.0
359-
litestar-latest: litestar
360-
361344
# OpenAI
362345
openai: pytest-asyncio
363346
openai-v1.0: openai~=1.0.0

Diff for: tox.ini

+19-20
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-03-18T10:29:17.585636+00:00
13+
# Last generated: 2025-03-25T13:14:20.133361+00:00
1414

1515
[tox]
1616
requires =
@@ -115,12 +115,6 @@ envlist =
115115
{py3.9,py3.11,py3.12}-langchain-latest
116116
{py3.9,py3.11,py3.12}-langchain-notiktoken
117117

118-
# Litestar
119-
{py3.8,py3.11}-litestar-v{2.0}
120-
{py3.8,py3.11,py3.12}-litestar-v{2.6}
121-
{py3.8,py3.11,py3.12}-litestar-v{2.12}
122-
{py3.8,py3.11,py3.12}-litestar-latest
123-
124118
# OpenAI
125119
{py3.9,py3.11,py3.12}-openai-v1.0
126120
{py3.9,py3.11,py3.12}-openai-v1.22
@@ -178,7 +172,7 @@ envlist =
178172
{py3.6}-pymongo-v3.5.1
179173
{py3.6,py3.10,py3.11}-pymongo-v3.13.0
180174
{py3.6,py3.9,py3.10}-pymongo-v4.0.2
181-
{py3.9,py3.12,py3.13}-pymongo-v4.11.2
175+
{py3.9,py3.12,py3.13}-pymongo-v4.11.3
182176

183177
{py3.6}-redis_py_cluster_legacy-v1.3.6
184178
{py3.6,py3.7}-redis_py_cluster_legacy-v2.0.0
@@ -271,6 +265,11 @@ envlist =
271265
{py3.6,py3.11,py3.12}-falcon-v3.1.3
272266
{py3.8,py3.11,py3.12}-falcon-v4.0.2
273267

268+
{py3.8,py3.10,py3.11}-litestar-v2.0.1
269+
{py3.8,py3.11,py3.12}-litestar-v2.5.5
270+
{py3.8,py3.11,py3.12}-litestar-v2.10.0
271+
{py3.8,py3.12,py3.13}-litestar-v2.15.1
272+
274273
{py3.6}-pyramid-v1.8.6
275274
{py3.6,py3.8,py3.9}-pyramid-v1.10.8
276275
{py3.6,py3.10,py3.11}-pyramid-v2.0.2
@@ -464,17 +463,6 @@ deps =
464463
langchain-{latest,notiktoken}: openai>=1.6.1
465464
langchain-latest: tiktoken~=0.6.0
466465

467-
# Litestar
468-
litestar: pytest-asyncio
469-
litestar: python-multipart
470-
litestar: requests
471-
litestar: cryptography
472-
litestar-v{2.0,2.6}: httpx<0.28
473-
litestar-v2.0: litestar~=2.0.0
474-
litestar-v2.6: litestar~=2.6.0
475-
litestar-v2.12: litestar~=2.12.0
476-
litestar-latest: litestar
477-
478466
# OpenAI
479467
openai: pytest-asyncio
480468
openai-v1.0: openai~=1.0.0
@@ -568,7 +556,7 @@ deps =
568556
pymongo-v3.5.1: pymongo==3.5.1
569557
pymongo-v3.13.0: pymongo==3.13.0
570558
pymongo-v4.0.2: pymongo==4.0.2
571-
pymongo-v4.11.2: pymongo==4.11.2
559+
pymongo-v4.11.3: pymongo==4.11.3
572560
pymongo: mockupdb
573561

574562
redis_py_cluster_legacy-v1.3.6: redis-py-cluster==1.3.6
@@ -694,6 +682,17 @@ deps =
694682
falcon-v3.1.3: falcon==3.1.3
695683
falcon-v4.0.2: falcon==4.0.2
696684

685+
litestar-v2.0.1: litestar==2.0.1
686+
litestar-v2.5.5: litestar==2.5.5
687+
litestar-v2.10.0: litestar==2.10.0
688+
litestar-v2.15.1: litestar==2.15.1
689+
litestar: pytest-asyncio
690+
litestar: python-multipart
691+
litestar: requests
692+
litestar: cryptography
693+
litestar-v2.0.1: httpx<0.28
694+
litestar-v2.5.5: httpx<0.28
695+
697696
pyramid-v1.8.6: pyramid==1.8.6
698697
pyramid-v1.10.8: pyramid==1.10.8
699698
pyramid-v2.0.2: pyramid==2.0.2

0 commit comments

Comments
 (0)