From a620a53e94436e2d9f7fb19bbe5f33508ad6a6a9 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 22 Aug 2026 13:47:41 +0000 Subject: [PATCH] build: widen jax/jaxlib cap to <0.12.0 (PyAutoFit#1510) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The <0.11.0 cap guarded the message shape regression fixed in PyAutoFit (jnp.broadcast_arrays list -> tuple); with that fix on PyAutoFit main the cap can widen. jax 0.11 requires numpy>=2.1 and scipy>=1.15, noted at the cap since the widen raises those effective floors for every install that resolves jax. Merge order: PyAutoFit#1510's fix merges first, and PyAutoGalaxy / PyAutoLens must be verified green under jax 0.11 before this merges — their CI resolves jax from this cap, so pre-widen green CI does not cover 0.11; verify via matching-branch CI runs against this branch or forced jax==0.11.1 installs. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01EauVX6vD9k1N4PXaEf2wvo --- pyproject.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f95f680..6e83ecb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,11 +32,11 @@ dependencies = [ # wheels for >=0.7), so the markers let Intel Macs resolve to the # NumPy-only path instead of failing at install. jax_wrapper warns loudly # at import when JAX is absent. - # Cap stays <0.11: jax 0.11.1 breaks autofit's beta/gamma message - # log_partition under jit ('tuple' object has no attribute 'shape') — - # widen only together with that fix (tracked from PyAutoLens#702). - 'jax>=0.7.0,<0.11.0; sys_platform != "darwin" or platform_machine == "arm64"', - 'jaxlib>=0.7.0,<0.11.0; sys_platform != "darwin" or platform_machine == "arm64"', + # jax 0.11 note: 0.11 requires numpy>=2.1 and scipy>=1.15, so this cap + # widen also raises those effective floors for every install that + # resolves jax (PyAutoFit#1510). + 'jax>=0.7.0,<0.12.0; sys_platform != "darwin" or platform_machine == "arm64"', + 'jaxlib>=0.7.0,<0.12.0; sys_platform != "darwin" or platform_machine == "arm64"', 'jaxnnls==1.0.1; sys_platform != "darwin" or platform_machine == "arm64"' ]