Skip to content

tests: Remove toxgen cutoff, add statsig #4048

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions scripts/populate_tox/populate_tox.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
This script populates tox.ini automatically using release data from PYPI.
This script populates tox.ini automatically using release data from PyPI.
"""

import functools
Expand All @@ -8,7 +8,6 @@
import time
from bisect import bisect_left
from collections import defaultdict
from datetime import datetime, timedelta
from importlib.metadata import metadata
from packaging.specifiers import SpecifierSet
from packaging.version import Version
Expand All @@ -27,9 +26,6 @@
from split_tox_gh_actions.split_tox_gh_actions import GROUPS


# Only consider package versions going back this far
CUTOFF = datetime.now() - timedelta(days=365 * 5)

TOX_FILE = Path(__file__).resolve().parent.parent.parent / "tox.ini"
ENV = Environment(
loader=FileSystemLoader(Path(__file__).resolve().parent),
Expand Down Expand Up @@ -157,8 +153,6 @@ def _prefilter_releases(integration: str, releases: dict[str, dict]) -> list[Ver
continue

meta = data[0]
if datetime.fromisoformat(meta["upload_time"]) < CUTOFF:
continue

if meta["yanked"]:
continue
Expand Down
12 changes: 11 additions & 1 deletion scripts/populate_tox/tox.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ envlist =
{py3.8,py3.11}-starlite-v{1.48,1.51}
# 1.51.14 is the last starlite version; the project continues as litestar

# Statsig
{py3.8,py3.12,py3.13}-statsig-v0.55.3
{py3.8,py3.12,py3.13}-statsig-latest

# SQL Alchemy
{py3.6,py3.9}-sqlalchemy-v{1.2,1.4}
{py3.7,py3.11}-sqlalchemy-v{2.0}
Expand Down Expand Up @@ -689,6 +693,11 @@ deps =
starlite-v{1.48}: starlite~=1.48.0
starlite-v{1.51}: starlite~=1.51.0

# Statsig
statsig: typing_extensions
statsig-v0.55.3: statsig~=0.55.3
statsig-latest: statsig

# SQLAlchemy
sqlalchemy-v1.2: sqlalchemy~=1.2.0
sqlalchemy-v1.4: sqlalchemy~=1.4.0
Expand Down Expand Up @@ -794,9 +803,10 @@ setenv =
rq: TESTPATH=tests/integrations/rq
sanic: TESTPATH=tests/integrations/sanic
spark: TESTPATH=tests/integrations/spark
sqlalchemy: TESTPATH=tests/integrations/sqlalchemy
starlette: TESTPATH=tests/integrations/starlette
starlite: TESTPATH=tests/integrations/starlite
sqlalchemy: TESTPATH=tests/integrations/sqlalchemy
statsig: TESTPATH=tests/integrations/statsig
strawberry: TESTPATH=tests/integrations/strawberry
tornado: TESTPATH=tests/integrations/tornado
trytond: TESTPATH=tests/integrations/trytond
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ envlist =
{py3.8,py3.10,py3.11}-strawberry-v0.209.8
{py3.8,py3.11,py3.12}-strawberry-v0.226.2
{py3.8,py3.11,py3.12}-strawberry-v0.243.1
{py3.9,py3.12,py3.13}-strawberry-v0.259.0
{py3.9,py3.12,py3.13}-strawberry-v0.260.0



Expand Down Expand Up @@ -760,7 +760,7 @@ deps =
strawberry-v0.209.8: strawberry-graphql[fastapi,flask]==0.209.8
strawberry-v0.226.2: strawberry-graphql[fastapi,flask]==0.226.2
strawberry-v0.243.1: strawberry-graphql[fastapi,flask]==0.243.1
strawberry-v0.259.0: strawberry-graphql[fastapi,flask]==0.259.0
strawberry-v0.260.0: strawberry-graphql[fastapi,flask]==0.260.0
strawberry: httpx


Expand Down Expand Up @@ -821,9 +821,9 @@ setenv =
rq: TESTPATH=tests/integrations/rq
sanic: TESTPATH=tests/integrations/sanic
spark: TESTPATH=tests/integrations/spark
sqlalchemy: TESTPATH=tests/integrations/sqlalchemy
starlette: TESTPATH=tests/integrations/starlette
starlite: TESTPATH=tests/integrations/starlite
sqlalchemy: TESTPATH=tests/integrations/sqlalchemy
statsig: TESTPATH=tests/integrations/statsig
strawberry: TESTPATH=tests/integrations/strawberry
tornado: TESTPATH=tests/integrations/tornado
Expand Down
Loading