Commit 6d6f51a
Support Python 3.14, drop JAX on macOS Intel (#5374)
* feat: support Python 3.14, bump JAX and CasADi, drop JAX on macOS Intel
Bump requires-python to <3.15, CasADi to 3.7.2, and JAX to >=0.7.0,<0.9.0
for Python 3.14 compatibility. Add a PEP 508 platform marker to exclude
JAX on macOS x86_64 since JAX dropped Intel Mac wheels in 0.5.0. Remove
explicit casadi pin since it is managed transitively through
pybammsolvers.Update idaklu_jax.py for JAX 0.7+ API changes (explicit
np.int64 casts, type check adjustments). Add raise_jax_not_found() helper
with a platform-aware error message so macOS Intel users get a clear explanation.
* docs: add changelog entry
* fix: update deprecated JAX API calls for JAX 0.7+
Migrate jax.lib.xla_bridge.get_backend() to jax.extend.backend.get_backend()
(deprecated in JAX 0.8.0) and jax.interpreters.mlir.custom_call to
jax._src.interpreters.mlir.custom_call.
* style: pre-commit fixes
* fix: add Python >=3.11 marker for JAX and handle 3.14 math error message
Add python_version >= '3.11' to the JAX dependency marker since JAX 0.7+
requires Python 3.11. Update test_bruggeman_invalid_values_raise regex to
match both the old 'math domain error' and the new Python 3.14 message
'expected a positive input' (cpython#101410).
* fix: skip jax parametrized test when jax is not installed
* infra: increment pybammsolvers
* infra: add Python 3.14 to CI, docs, and packaging
Update all workflows, documentation, Dockerfile, ReadTheDocs config,
and pyproject.toml classifiers to include Python 3.14. Drop Python 3.10
from CI test matrices.
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent 86531fb commit 6d6f51a
File tree
21 files changed
+97
-53
lines changed- .github/workflows
- docs/source/user_guide/installation
- scripts
- src/pybamm
- expression_tree/operations
- solvers
- tests/unit
- test_parameters
- test_solvers
21 files changed
+97
-53
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
0 commit comments