Skip to content

Commit

Permalink
should be a bit better
Browse files Browse the repository at this point in the history
  • Loading branch information
sentrivana committed Jan 10, 2025
1 parent e19dd0c commit 1d88248
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 52 deletions.
8 changes: 4 additions & 4 deletions scripts/populate_tox/populate_tox.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ def get_releases(integration: str, pypi_data: dict) -> list[Version]:
if min_supported and version < min_supported:
continue

if version.is_prerelease or version.is_postrelease:
# TODO: consider the newest prerelease unless obsolete
continue

# The release listing that you get via the package endpoint doesn't
# contain all metadata for a release. `requires_python` is included,
# but classifiers are not (they require a separate call to the release
Expand Down Expand Up @@ -218,10 +222,6 @@ def get_releases(integration: str, pypi_data: dict) -> list[Version]:
if not version.python_versions:
continue

if version.is_prerelease or version.is_postrelease:
# TODO: consider the newest prerelease unless obsolete
continue

for i, saved_version in enumerate(releases):
if (
version.major == saved_version.major
Expand Down
80 changes: 32 additions & 48 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -48,29 +48,29 @@ envlist =
{py3.8,py3.13}-cohere-v4.38
{py3.9,py3.13}-cohere-v5.13.6

{py3.9,py3.13}-langchain-v0.0.99
{py3.9,py3.13}-langchain-v0.1.9
{py3.9,py3.13}-langchain-v0.2.9
{py3.9,py3.13}-langchain-v0.0.354
{py3.9,py3.13}-langchain-v0.1.20
{py3.9,py3.13}-langchain-v0.2.17
{py3.9,py3.13}-langchain-v0.3.14

{py3.9,py3.13}-langchain-notiktoken-v0.0.99
{py3.9,py3.13}-langchain-notiktoken-v0.1.9
{py3.9,py3.13}-langchain-notiktoken-v0.2.9
{py3.9,py3.13}-langchain-notiktoken-v0.3.14

{py3.6,py3.13}-openai-v0.1.3
{py3.8,py3.13}-openai-v1.2.4
{py3.8,py3.13}-openai-v1.31.2
{py3.8,py3.13}-openai-v1.0.1
{py3.8,py3.13}-openai-v1.21.2
{py3.8,py3.13}-openai-v1.40.8
{py3.8,py3.13}-openai-v1.59.6

{py3.6,py3.13}-openai-notiktoken-v0.1.3
{py3.8,py3.13}-openai-notiktoken-v1.2.4
{py3.8,py3.13}-openai-notiktoken-v1.31.2
{py3.8,py3.13}-openai-notiktoken-v1.59.6

{py3.6,py3.13}-huggingface_hub-v0.0.9
{py3.7,py3.13}-huggingface_hub-v0.9.1
{py3.8,py3.13}-huggingface_hub-v0.18.0
{py3.8,py3.13}-huggingface_hub-v0.22.2
{py3.8,py3.13}-huggingface_hub-v0.24.7
{py3.8,py3.13}-huggingface_hub-v0.26.5
{py3.8,py3.13}-huggingface_hub-v0.27.1

# ~~~ Cloud ~~~
Expand All @@ -79,9 +79,9 @@ envlist =
{py3.7,py3.13}-boto3-v1.26.9
{py3.8,py3.13}-boto3-v1.35.96

{py3.6,py3.8}-chalice-v1.13.1
{py3.6,py3.8}-chalice-v1.19.0
{py3.6,py3.8}-chalice-v1.25.0
{py3.6,py3.8}-chalice-v1.16.0
{py3.6,py3.8}-chalice-v1.21.9
{py3.6,py3.9}-chalice-v1.26.6
{py3.8,py3.12}-chalice-v1.31.3

# ~~~ DBs ~~~
Expand Down Expand Up @@ -111,19 +111,11 @@ envlist =
{py3.7,py3.13}-sqlalchemy-v2.0.37

# ~~~ Flags ~~~
{py3.6,py3.7}-launchdarkly-v6.12.2
{py3.6,py3.10}-launchdarkly-v7.5.1
{py3.8,py3.12}-launchdarkly-v9.1.0
{py3.8,py3.13}-launchdarkly-v9.8.1
{py3.8,py3.13}-launchdarkly-v9.9.0

{py3.8,py3.13}-openfeature-v0.0.9
{py3.8,py3.13}-openfeature-v0.2.0
{py3.8,py3.13}-openfeature-v0.4.2
{py3.8,py3.13}-openfeature-v0.7.4

{py3.6,py3.8}-unleash-v3.5.1
{py3.6,py3.9}-unleash-v5.0.1
{py3.7,py3.13}-unleash-v5.7.1
{py3.8,py3.13}-unleash-v6.0.1

# ~~~ GraphQL ~~~
Expand Down Expand Up @@ -216,9 +208,9 @@ envlist =
{py3.8,py3.13}-starlette-v0.35.1
{py3.9,py3.13}-starlette-v0.45.2

{py3.6,py3.13}-fastapi-v0.47.1
{py3.7,py3.13}-fastapi-v0.70.1
{py3.7,py3.13}-fastapi-v0.93.0
{py3.7,py3.13}-fastapi-v0.79.1
{py3.7,py3.13}-fastapi-v0.91.0
{py3.7,py3.13}-fastapi-v0.103.2
{py3.8,py3.13}-fastapi-v0.115.6

# ~~~ Web 2 ~~~
Expand Down Expand Up @@ -334,9 +326,9 @@ deps =
cohere-v5.13.6: cohere==5.13.6
cohere: httpx

langchain-v0.0.99: langchain==0.0.99
langchain-v0.1.9: langchain==0.1.9
langchain-v0.2.9: langchain==0.2.9
langchain-v0.0.354: langchain==0.0.354
langchain-v0.1.20: langchain==0.1.20
langchain-v0.2.17: langchain==0.2.17
langchain-v0.3.14: langchain==0.3.14
langchain: langchain-community
langchain: openai
Expand All @@ -350,9 +342,9 @@ deps =
langchain-notiktoken: langchain-openai
langchain-notiktoken: openai

openai-v0.1.3: openai==0.1.3
openai-v1.2.4: openai==1.2.4
openai-v1.31.2: openai==1.31.2
openai-v1.0.1: openai==1.0.1
openai-v1.21.2: openai==1.21.2
openai-v1.40.8: openai==1.40.8
openai-v1.59.6: openai==1.59.6
openai: pytest-asyncio
openai: tiktoken
Expand All @@ -364,9 +356,9 @@ deps =
openai-notiktoken-v1.59.6: openai==1.59.6
openai-notiktoken: pytest-asyncio

huggingface_hub-v0.0.9: huggingface_hub==0.0.9
huggingface_hub-v0.9.1: huggingface_hub==0.9.1
huggingface_hub-v0.18.0: huggingface_hub==0.18.0
huggingface_hub-v0.22.2: huggingface_hub==0.22.2
huggingface_hub-v0.24.7: huggingface_hub==0.24.7
huggingface_hub-v0.26.5: huggingface_hub==0.26.5
huggingface_hub-v0.27.1: huggingface_hub==0.27.1

# ~~~ Cloud ~~~
Expand All @@ -375,9 +367,9 @@ deps =
boto3-v1.26.9: boto3==1.26.9
boto3-v1.35.96: boto3==1.35.96

chalice-v1.13.1: chalice==1.13.1
chalice-v1.19.0: chalice==1.19.0
chalice-v1.25.0: chalice==1.25.0
chalice-v1.16.0: chalice==1.16.0
chalice-v1.21.9: chalice==1.21.9
chalice-v1.26.6: chalice==1.26.6
chalice-v1.31.3: chalice==1.31.3
chalice: pytest-chalice==0.0.5

Expand Down Expand Up @@ -413,19 +405,11 @@ deps =
sqlalchemy-v2.0.37: sqlalchemy==2.0.37

# ~~~ Flags ~~~
launchdarkly-v6.12.2: launchdarkly-server-sdk==6.12.2
launchdarkly-v7.5.1: launchdarkly-server-sdk==7.5.1
launchdarkly-v9.1.0: launchdarkly-server-sdk==9.1.0
launchdarkly-v9.8.1: launchdarkly-server-sdk==9.8.1
launchdarkly-v9.9.0: launchdarkly-server-sdk==9.9.0

openfeature-v0.0.9: openfeature-sdk==0.0.9
openfeature-v0.2.0: openfeature-sdk==0.2.0
openfeature-v0.4.2: openfeature-sdk==0.4.2
openfeature-v0.7.4: openfeature-sdk==0.7.4

unleash-v3.5.1: UnleashClient==3.5.1
unleash-v5.0.1: UnleashClient==5.0.1
unleash-v5.7.1: UnleashClient==5.7.1
unleash-v6.0.1: UnleashClient==6.0.1

# ~~~ GraphQL ~~~
Expand Down Expand Up @@ -554,9 +538,9 @@ deps =
starlette: jinja2
starlette: httpx

fastapi-v0.47.1: fastapi==0.47.1
fastapi-v0.70.1: fastapi==0.70.1
fastapi-v0.93.0: fastapi==0.93.0
fastapi-v0.79.1: fastapi==0.79.1
fastapi-v0.91.0: fastapi==0.91.0
fastapi-v0.103.2: fastapi==0.103.2
fastapi-v0.115.6: fastapi==0.115.6
fastapi: httpx
fastapi: anyio<4.0.0
Expand Down

0 comments on commit 1d88248

Please sign in to comment.