You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add script to determine lowest supported versions (#4867)
### 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
- Please add tests to validate your changes, and lint your code using
`tox -e linters`.
- Add GH Issue ID _&_ Linear ID (if applicable)
- PR title should use [conventional
commit](https://develop.sentry.dev/engineering-practices/commit-messages/#type)
style (`feat:`, `fix:`, `ref:`, `meta:`)
- For external contributors:
[CONTRIBUTING.md](https://github.com/getsentry/sentry-python/blob/master/CONTRIBUTING.md),
[Sentry SDK development docs](https://develop.sentry.dev/sdk/), [Discord
community](https://discord.gg/Ww9hbqr)
0 commit comments