Skip to content

Conversation

sentrivana
Copy link
Contributor

@sentrivana sentrivana commented Sep 26, 2025

Description

With toxgen, we now have an automated way of detecting the effective minimum version of a framework. This depends on both package metadata (e.g., the min version needs to support at least some of the Python versions we support) as well as on our test matrix and explicitly defined lower bounds (in sentry_sdk/integrations/__init__.py's _MIN_VERSIONS).

When we release a new major in which we drop support for a Python version, we can use this script to automatically generate the new _MIN_VERSIONS.

Example output:

Effective minimal versions:


- The format is the same as _MIN_VERSIONS in sentry_sdk/integrations/__init__.py for easy replacing.
- When updating these, make sure to also update:
    - The docs page for the integration
    - The lower bounds in extras_require in setup.py


"aiohttp": (3, 4, 4),
"anthropic": (0, 16, 0),
"ariadne": (0, 20, 1),
"arq": (0, 23),
"asyncpg": (0, 23, 0),
"beam": (2, 14, 0),
"boto3": (1, 12, 49),
"bottle": (0, 12, 25),
"celery": (4, 4, 7),
"chalice": (1, 16, 0),
"clickhouse_driver": (0, 2, 9),
"cohere": (5, 4, 0),
"django": (1, 11, 29),
"dramatiq": (1, 9, 0),
"falcon": (1, 4, 1),
"fastapi": (0, 79, 1),
"flask": (1, 1, 4),
"gql": (3, 4, 1),
"graphene": (3, 3),
"grpc": (1, 32, 0),
"httpx": (0, 16, 1),
"huey": (2, 1, 3),
"huggingface_hub": (0, 24, 7),
"langchain": (0, 1, 20),
"langgraph": (0, 6, 7),
"launchdarkly": (9, 8, 1),
"litestar": (2, 0, 1),
"loguru": (0, 7, 3),
"openai": (1, 0, 1),
"openai_agents": (0, 0, 19),
"openfeature": (0, 7, 5),
"pure_eval": (0, 0, 3),
"pymongo": (3, 5, 1),
"pyramid": (1, 8, 6),
"quart": (0, 16, 3),
"ray": (2, 7, 2),
"redis": (2, 10, 6),
"redis_py_cluster_legacy": (1, 3, 6),
"requests": (2, 12, 5),
"rq": (0, 8, 2),
"sanic": (0, 8, 3),
"spark": (3, 0, 3),
"sqlalchemy": (1, 3, 24),
"starlette": (0, 16, 0),
"starlite": (1, 48, 1),
"statsig": (0, 55, 3),
"strawberry": (0, 209, 8),
"tornado": (6, 0, 4),
"trytond": (4, 6, 22),
"typer": (0, 15, 4),
"unleash": (6, 0, 1),

Issues

Ref #4047

Reminders

@sentrivana sentrivana marked this pull request as ready for review September 26, 2025 13:08
@sentrivana sentrivana requested a review from a team as a code owner September 26, 2025 13:08
@sentrivana sentrivana changed the title feat: Add script to determine lowest supported version meta: Add script to determine lowest supported version Sep 26, 2025
@sentrivana sentrivana changed the title meta: Add script to determine lowest supported version feat: Add script to determine lowest supported versions Sep 26, 2025
@sentrivana sentrivana enabled auto-merge (squash) September 26, 2025 13:44
@sentrivana sentrivana merged commit e13b7a7 into master Sep 26, 2025
113 checks passed
@sentrivana sentrivana deleted the ivana/min-versions-of-frameworks branch September 26, 2025 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants