Skip to content

Commit 1d88248

Browse files
committed
should be a bit better
1 parent e19dd0c commit 1d88248

File tree

2 files changed

+36
-52
lines changed

2 files changed

+36
-52
lines changed

scripts/populate_tox/populate_tox.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@ def get_releases(integration: str, pypi_data: dict) -> list[Version]:
189189
if min_supported and version < min_supported:
190190
continue
191191

192+
if version.is_prerelease or version.is_postrelease:
193+
# TODO: consider the newest prerelease unless obsolete
194+
continue
195+
192196
# The release listing that you get via the package endpoint doesn't
193197
# contain all metadata for a release. `requires_python` is included,
194198
# but classifiers are not (they require a separate call to the release
@@ -218,10 +222,6 @@ def get_releases(integration: str, pypi_data: dict) -> list[Version]:
218222
if not version.python_versions:
219223
continue
220224

221-
if version.is_prerelease or version.is_postrelease:
222-
# TODO: consider the newest prerelease unless obsolete
223-
continue
224-
225225
for i, saved_version in enumerate(releases):
226226
if (
227227
version.major == saved_version.major

tox.ini

Lines changed: 32 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -48,29 +48,29 @@ envlist =
4848
{py3.8,py3.13}-cohere-v4.38
4949
{py3.9,py3.13}-cohere-v5.13.6
5050

51-
{py3.9,py3.13}-langchain-v0.0.99
52-
{py3.9,py3.13}-langchain-v0.1.9
53-
{py3.9,py3.13}-langchain-v0.2.9
51+
{py3.9,py3.13}-langchain-v0.0.354
52+
{py3.9,py3.13}-langchain-v0.1.20
53+
{py3.9,py3.13}-langchain-v0.2.17
5454
{py3.9,py3.13}-langchain-v0.3.14
5555

5656
{py3.9,py3.13}-langchain-notiktoken-v0.0.99
5757
{py3.9,py3.13}-langchain-notiktoken-v0.1.9
5858
{py3.9,py3.13}-langchain-notiktoken-v0.2.9
5959
{py3.9,py3.13}-langchain-notiktoken-v0.3.14
6060

61-
{py3.6,py3.13}-openai-v0.1.3
62-
{py3.8,py3.13}-openai-v1.2.4
63-
{py3.8,py3.13}-openai-v1.31.2
61+
{py3.8,py3.13}-openai-v1.0.1
62+
{py3.8,py3.13}-openai-v1.21.2
63+
{py3.8,py3.13}-openai-v1.40.8
6464
{py3.8,py3.13}-openai-v1.59.6
6565

6666
{py3.6,py3.13}-openai-notiktoken-v0.1.3
6767
{py3.8,py3.13}-openai-notiktoken-v1.2.4
6868
{py3.8,py3.13}-openai-notiktoken-v1.31.2
6969
{py3.8,py3.13}-openai-notiktoken-v1.59.6
7070

71-
{py3.6,py3.13}-huggingface_hub-v0.0.9
72-
{py3.7,py3.13}-huggingface_hub-v0.9.1
73-
{py3.8,py3.13}-huggingface_hub-v0.18.0
71+
{py3.8,py3.13}-huggingface_hub-v0.22.2
72+
{py3.8,py3.13}-huggingface_hub-v0.24.7
73+
{py3.8,py3.13}-huggingface_hub-v0.26.5
7474
{py3.8,py3.13}-huggingface_hub-v0.27.1
7575

7676
# ~~~ Cloud ~~~
@@ -79,9 +79,9 @@ envlist =
7979
{py3.7,py3.13}-boto3-v1.26.9
8080
{py3.8,py3.13}-boto3-v1.35.96
8181

82-
{py3.6,py3.8}-chalice-v1.13.1
83-
{py3.6,py3.8}-chalice-v1.19.0
84-
{py3.6,py3.8}-chalice-v1.25.0
82+
{py3.6,py3.8}-chalice-v1.16.0
83+
{py3.6,py3.8}-chalice-v1.21.9
84+
{py3.6,py3.9}-chalice-v1.26.6
8585
{py3.8,py3.12}-chalice-v1.31.3
8686

8787
# ~~~ DBs ~~~
@@ -111,19 +111,11 @@ envlist =
111111
{py3.7,py3.13}-sqlalchemy-v2.0.37
112112

113113
# ~~~ Flags ~~~
114-
{py3.6,py3.7}-launchdarkly-v6.12.2
115-
{py3.6,py3.10}-launchdarkly-v7.5.1
116-
{py3.8,py3.12}-launchdarkly-v9.1.0
114+
{py3.8,py3.13}-launchdarkly-v9.8.1
117115
{py3.8,py3.13}-launchdarkly-v9.9.0
118116

119-
{py3.8,py3.13}-openfeature-v0.0.9
120-
{py3.8,py3.13}-openfeature-v0.2.0
121-
{py3.8,py3.13}-openfeature-v0.4.2
122117
{py3.8,py3.13}-openfeature-v0.7.4
123118

124-
{py3.6,py3.8}-unleash-v3.5.1
125-
{py3.6,py3.9}-unleash-v5.0.1
126-
{py3.7,py3.13}-unleash-v5.7.1
127119
{py3.8,py3.13}-unleash-v6.0.1
128120

129121
# ~~~ GraphQL ~~~
@@ -216,9 +208,9 @@ envlist =
216208
{py3.8,py3.13}-starlette-v0.35.1
217209
{py3.9,py3.13}-starlette-v0.45.2
218210

219-
{py3.6,py3.13}-fastapi-v0.47.1
220-
{py3.7,py3.13}-fastapi-v0.70.1
221-
{py3.7,py3.13}-fastapi-v0.93.0
211+
{py3.7,py3.13}-fastapi-v0.79.1
212+
{py3.7,py3.13}-fastapi-v0.91.0
213+
{py3.7,py3.13}-fastapi-v0.103.2
222214
{py3.8,py3.13}-fastapi-v0.115.6
223215

224216
# ~~~ Web 2 ~~~
@@ -334,9 +326,9 @@ deps =
334326
cohere-v5.13.6: cohere==5.13.6
335327
cohere: httpx
336328

337-
langchain-v0.0.99: langchain==0.0.99
338-
langchain-v0.1.9: langchain==0.1.9
339-
langchain-v0.2.9: langchain==0.2.9
329+
langchain-v0.0.354: langchain==0.0.354
330+
langchain-v0.1.20: langchain==0.1.20
331+
langchain-v0.2.17: langchain==0.2.17
340332
langchain-v0.3.14: langchain==0.3.14
341333
langchain: langchain-community
342334
langchain: openai
@@ -350,9 +342,9 @@ deps =
350342
langchain-notiktoken: langchain-openai
351343
langchain-notiktoken: openai
352344

353-
openai-v0.1.3: openai==0.1.3
354-
openai-v1.2.4: openai==1.2.4
355-
openai-v1.31.2: openai==1.31.2
345+
openai-v1.0.1: openai==1.0.1
346+
openai-v1.21.2: openai==1.21.2
347+
openai-v1.40.8: openai==1.40.8
356348
openai-v1.59.6: openai==1.59.6
357349
openai: pytest-asyncio
358350
openai: tiktoken
@@ -364,9 +356,9 @@ deps =
364356
openai-notiktoken-v1.59.6: openai==1.59.6
365357
openai-notiktoken: pytest-asyncio
366358

367-
huggingface_hub-v0.0.9: huggingface_hub==0.0.9
368-
huggingface_hub-v0.9.1: huggingface_hub==0.9.1
369-
huggingface_hub-v0.18.0: huggingface_hub==0.18.0
359+
huggingface_hub-v0.22.2: huggingface_hub==0.22.2
360+
huggingface_hub-v0.24.7: huggingface_hub==0.24.7
361+
huggingface_hub-v0.26.5: huggingface_hub==0.26.5
370362
huggingface_hub-v0.27.1: huggingface_hub==0.27.1
371363

372364
# ~~~ Cloud ~~~
@@ -375,9 +367,9 @@ deps =
375367
boto3-v1.26.9: boto3==1.26.9
376368
boto3-v1.35.96: boto3==1.35.96
377369

378-
chalice-v1.13.1: chalice==1.13.1
379-
chalice-v1.19.0: chalice==1.19.0
380-
chalice-v1.25.0: chalice==1.25.0
370+
chalice-v1.16.0: chalice==1.16.0
371+
chalice-v1.21.9: chalice==1.21.9
372+
chalice-v1.26.6: chalice==1.26.6
381373
chalice-v1.31.3: chalice==1.31.3
382374
chalice: pytest-chalice==0.0.5
383375

@@ -413,19 +405,11 @@ deps =
413405
sqlalchemy-v2.0.37: sqlalchemy==2.0.37
414406

415407
# ~~~ Flags ~~~
416-
launchdarkly-v6.12.2: launchdarkly-server-sdk==6.12.2
417-
launchdarkly-v7.5.1: launchdarkly-server-sdk==7.5.1
418-
launchdarkly-v9.1.0: launchdarkly-server-sdk==9.1.0
408+
launchdarkly-v9.8.1: launchdarkly-server-sdk==9.8.1
419409
launchdarkly-v9.9.0: launchdarkly-server-sdk==9.9.0
420410

421-
openfeature-v0.0.9: openfeature-sdk==0.0.9
422-
openfeature-v0.2.0: openfeature-sdk==0.2.0
423-
openfeature-v0.4.2: openfeature-sdk==0.4.2
424411
openfeature-v0.7.4: openfeature-sdk==0.7.4
425412

426-
unleash-v3.5.1: UnleashClient==3.5.1
427-
unleash-v5.0.1: UnleashClient==5.0.1
428-
unleash-v5.7.1: UnleashClient==5.7.1
429413
unleash-v6.0.1: UnleashClient==6.0.1
430414

431415
# ~~~ GraphQL ~~~
@@ -554,9 +538,9 @@ deps =
554538
starlette: jinja2
555539
starlette: httpx
556540

557-
fastapi-v0.47.1: fastapi==0.47.1
558-
fastapi-v0.70.1: fastapi==0.70.1
559-
fastapi-v0.93.0: fastapi==0.93.0
541+
fastapi-v0.79.1: fastapi==0.79.1
542+
fastapi-v0.91.0: fastapi==0.91.0
543+
fastapi-v0.103.2: fastapi==0.103.2
560544
fastapi-v0.115.6: fastapi==0.115.6
561545
fastapi: httpx
562546
fastapi: anyio<4.0.0

0 commit comments

Comments
 (0)