feat(python-version): support Python 3.9-3.14, first-class 3.12/3.13#382
Merged
feat(python-version): support Python 3.9-3.14, first-class 3.12/3.13#382
Conversation
Wide-support / narrow-first-class model for Python versions across the PyAuto family. Python 3.12 and 3.13 remain the recommended versions. 3.9, 3.10, 3.11, 3.14 install cleanly but emit a loud bypassable warning at import time. JAX moved to optional [jax] extra gated on python_version >= '3.11' (so 3.9/3.10 users get numpy-only mode without install failures). Coordinated change across PyAutoConf, PyAutoArray, PyAutoFit, PyAutoGalaxy, PyAutoLens, PyAutoBuild, and the 6 workspace repos. See sibling PRs on the feature/python-version-policy branch in each repo. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Per-PR CI now tests only the first-class Python versions (3.12, 3.13). Wide-span 3.9-3.14 verification moves to PyAutoBuild's python_matrix.yml workflow (weekly + on-demand). Install commands now always use the [optional] extra so JAX is available on both 3.12 and 3.13 (the conftest.py eager `import jax` was failing on 3.13 because the previous CI only added [optional] for 3.12). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…g 3.13 install) ultranest==3.6.2 was already removed as an actual library dep some time ago — no autogalaxy/autolens code imports it. The dangling pin in the [optional] extra was breaking 3.13 install because ultranest 3.6.2's Cython source uses np.int_t (removed in newer numpy), so wheel build fails. Cut from PyAutoGalaxy and PyAutoLens optional extras. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
Part of the Python version policy change supporting Python 3.9–3.14 across PyAuto. First-class support remains 3.12/3.13.
Changes in this repo
pyproject.toml:requires-python3.12 → 3.9. Classifiers expanded to 3.9–3.14.jax_zero_contourmoved out of maindependenciesinto the new[jax]extra (gated onpython_version >= '3.11'). New[jax]extra propagates upward.autogalaxy/plot/plot_utils.pyandautogalaxy/util/plot_utils.py:_critical_curves_method()now detects whenjax_zero_contouris missing (e.g. on Python <3.11) and gracefully falls back to the existingmarching_squaresimplementation with a warning, instead of lettinglens_calc.pyraiseModuleNotFoundError. Themarching_squarespath was already implemented atlens_calc.py:625-1000— this just wires it into the dispatcher..github/workflows/main.yml: matrix expanded to[3.9, 3.10, 3.11, 3.12, 3.13, 3.14].Test plan
_critical_curves_method()returnsmarching_squareswhen no config is set; falls back gracefully when JAX path is unavailableThis is one of 12 coordinated PRs. See sibling PRs on
feature/python-version-policyin PyAutoConf, PyAutoArray, PyAutoFit, PyAutoLens, PyAutoBuild, and the 6 workspace repos.