Support Python 3.14, drop JAX on macOS Intel#5374
Merged
BradyPlanden merged 9 commits intomainfrom Feb 6, 2026
Merged
Conversation
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.
4d7e9e3 to
c1c3ece
Compare
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.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5374 +/- ##
=======================================
Coverage 98.29% 98.30%
=======================================
Files 328 328
Lines 28941 28952 +11
=======================================
+ Hits 28449 28460 +11
Misses 492 492 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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).
Update all workflows, documentation, Dockerfile, ReadTheDocs config, and pyproject.toml classifiers to include Python 3.14. Drop Python 3.10 from CI test matrices.
MarcBerliner
approved these changes
Feb 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Paired PR for pybamm-team/pybammsolvers#79
raise_jax_not_found()helper with a platform-aware error message so macOS Intel users get a clear explanation.3.14, drops3.10from CI. Updates corresponding documentationFixes # (issue)
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #)
Important checks:
Please confirm the following before marking the PR as ready for review:
nox -s pre-commitnox -s testsnox -s doctests