Repository navigation
Commit 662b424
authored
feat: Add Python 3.15 to test matrix (#7326)
### 1. Lazy imports
Tried manually testing with a lazy import of `sentry_sdk`, looked ok.
#### `PYTHON_LAZY_IMPORTS=all`
Guarding the optional `httpcore` import with an additional
`AttributeError` now, since `httpcore` doesn't work with
`PYTHON_LAZY_IMPORTS=all`.
Notified other frameworks/libraries:
- [httpcore](encode/httpcore#1106)
-
[sqlalchemy](sqlalchemy/sqlalchemy#13557)
Other libraries/frameworks that are problematic under
`PYTHON_LAZY_IMPORTS=all` but already have a tracking issue for 3.15
support:
- [fastapi](pydantic/pydantic#13173)
**Caveat:** It's not 100% clear to me whether this forcing of
`PYTHON_LAZY_IMPORTS=all` is something libraries are supposed to
support, see also
https://peps.python.org/pep-0810/#global-lazy-imports-control. Probably
fine to wait for the ecosystem to stabilize a bit here, rather than
patching everything to be ready on day one.
### 2. CI
Marked some test suites as not python 3.15 ready yet:
- `langgraph`, `cohere`: fail to install on 3.15
- `statsig`: hangs on 3.15
- anything `otlp`/`otel`: hangs on 3.15
- `integration_deactivation`: fails to install on 3.15
### 3. Misc
Ran the common test suite with `PYTHON_LAZY_IMPORTS=all`. Everything
looked fine.
## Issues
Closes https://linear.app/getsentry/issue/PY-2649/test-with-python-315
Closes
https://linear.app/getsentry/issue/PY-2651/declare-support-for-3151 parent 9d9bfc4 commit 662b424
17 files changed
Lines changed: 2965 additions & 2948 deletions
File tree
- .github/workflows
- scripts/populate_tox
- sentry_sdk
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments