Repository navigation
Closed
Description
Summary
Add official support for Python 3.14 to UXarray. Local testing shows UXarray already works on Python 3.14.6 with no source changes required — the only necessary change is a numba>=0.63 version floor (older numba does not support 3.14).
Motivation
- Python 3.14 (released 2025-10-07) is the latest stable CPython.
- The dependency ecosystem is ready:
numba(0.63+),numpy,xarray,numba-JIT,cartopy,healpix,matplotlib,sphinx/myst-nball have working 3.14 builds/wheels. - Benefits: new tail-call interpreter (~3–5% faster general Python), officially supported free-threading (PEP 703/779), incremental GC, faster stdlib (io/pathlib/zlib), improved error messages, stdlib Zstandard.
Compatibility findings (local testing on Python 3.14.6)
Environment: fresh conda env, Python 3.14.6, numba 0.65.1, numpy 2.4.6, matplotlib 3.10.9.
Test results (all passing):
| Suite | Result |
|---|---|
uxarray import + HEALPix grid + face_areas |
pass (4π) |
numba @njit compile |
pass |
test/test_remap.py |
26/26 pass |
test/test_plot.py |
16/16 pass |
test/test_subset.py, test_helpers.py, test_dependencies.py, test_icon_io.py |
33/33 pass |
test/test_remap_yac.py (with YAC 3.18) |
15/15 pass |
Required change
- Pin
numba>=0.63inpyproject.toml. Per numba's support matrix, numba 0.63 (2025-12) is the first release supporting3.10 <= python < 3.15; numba 0.61/0.62 cap at< 3.14. Without a floor, a 3.14 install can resolve an unsupported numba and fail at import.
Watch items (not blocking)
- NumPy ceiling: numba 0.65.1 requires
numpy < 2.5. Currently fine (2.4.6), but numpy 2.5 + current numba would conflict. - matplotlib: existing
matplotlib<3.11pin (see Remapping notebook is broken on RTD #1542) is unrelated to 3.14 and still satisfied.
Proposed tasks
- Add
numba>=0.63topyproject.tomldependencies - Add
Programming Language :: Python :: 3.14classifier - Add
3.14to the CI test matrix (.github/workflows/ci.yml) - Update docs/CI conda envs (
ci/environment.yml,ci/docs.yml) as needed - Confirm docs build on 3.14
- (Optional) Decide whether to raise the minimum supported Python
Notes
Some of these changes (classifier, numba>=0.63, YAC 3.18 CI Python bump) are already staged on branch rajeeja/upgrade_yac alongside the YAC 3.18 upgrade.
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Priority
None yet
Projects
- StatusShow more project fields✅ Done
Activity
Sevans711 commentedon Jul 13, 2026
A few thoughts / flagging a few issues as related:
numba >= 0.63pin? On my machine I was able to install via pip and separately via conda, both in Python 3.14, with no issues; both resolved to a correct version of numba automatically without me needing to worry about it and without a pinned version. Related: Removenumpy <2.3constraint to enable support for Python 3.14 #1434.rajeeja commentedon Jul 13, 2026
Thanks @Sevans711!
Bigger thing we hit in the YAC 3.18 work (#1563): what actually broke on 3.14 wasn't numba, it was the old
pathlibbackport still in our env/dev deps. It shadows stdlib pathlib and itsfrom collections import Sequenceblows up on 3.10+ (killed the Cython build for YAC). #1563 drops it - pathlib's been stdlib since 3.4 anyway. Worth removing regardless of 3.14.Classifier + numba pin + YAC 3.18 on 3.14 + pathlib removal are all in #1563 and green. Still todo: add 3.14 to the main CI matrix and confirm docs build.
Sevans711 commentedon Jul 14, 2026
I'm still a bit confused about the numba pin. We aren't pinning other dependencies for other packages which don't support newer Python. For example, numpy<1.23 isn't supported on Python < 3.10, and numpy<2.0 isn't supported on Python >= 3.12, yet we do not have any pins for numpy in our pyproject.toml. Is there a compelling reason to make numba special (e.g., any observed crash without the pin)?
Other parts sound good!
rajeeja commentedon Jul 14, 2026
Good call, but I think we should keep the pin here. numpy self-gates via
requires-python, so the resolver can't pick a bad combo. numba's older releases don't gate<3.14reliably, so without a floor a 3.14 install can silently land on an unsupported numba and fail at JIT time. Keepingnumba>=0.63as a cheap guardrail - especially after the pathlib backport just bit us with the same silent-failure pattern.Reference #1561 in numba version pin comment
Support Python 3.14 and upgrade YAC to v3.18 (with DNN remapping) (#1563
Sevans711 commentedon Jul 16, 2026
It looks like #1563 completed most of these tasks, but did not add Python 3.14 to the CI test matrix. Is that the only remaining step?
Cmd/accusphere (#1579)
EFT-based compensated arithmetic for spherical geometry (GCA intersec…
Better chunking strategies for constlat intersections and zonal routi…
Add Python 3.14 to the CI test matrix, and officially drop support fo…