Repository navigation
Commit 7a4a9b7
committed
add Python 3.15
Add 3.15 to the noxfile Python matrix and to the trove classifiers.
Also drop 3.13t from the matrix. The free threaded 3.13 build has
been retired from the CI build followers, and no pipeline places
py313t on an axis, so the entry was inert.
Widen the supported interpreter range in tools/write_pyi.py to admit
3.15. The script refused to run outside of 3.14, so under 3.15 it
raised before writing anything and tests/test_stubs.py compared the
checked-in stubs against empty output. 3.15 renders annotations
identically to 3.14, and regenerating under 3.15 reproduces
alembic/op.pyi and alembic/context.pyi byte for byte, so no stub
changes accompany this.
A workaround in the test suite warning filters is needed for a Mako
issue under 3.15. Mako compiles in-memory templates into a bare
types.ModuleType, whose globals carry __spec__ = None together with
__loader__ = None, and Python 3.15's linecache._bless_my_loader emits
a DeprecationWarning for exactly that shape. In
TemplateArgsTest::test_bad_render in tests/test_script_production.py
the warning is raised while the traceback for the deliberately-broken
template is being formatted, and as warnings are errors here that
surfaces as a pytest INTERNALERROR, which under xdist aborts the whole
run. That specific warning is therefore ignored for now; the filter
can be dropped once a Mako release carrying the fix is required. See
sqlalchemy/mako#437.
With these in place the suite under 3.15 matches 3.14 exactly.
py315: yes
Change-Id: If4aad3366ab278ce01eba03b31e2cd3897cc7d7c1 parent a281d78 commit 7a4a9b7
4 files changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
24 | 36 | | |
25 | 37 | | |
26 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
0 commit comments