Repository navigation
Description
Overview
pip install autolens on Python 3.9, 3.10 or 3.11 does not fail — it silently
backtracks to the last pre-floor release, 2026.7.29.1, and installs the whole
stack: no JAX, no warning, exit 0, three weeks stale and predating the
JAX-default install (PyAutoLens#702). The install docs claim it "will fail with
a no matching distribution error"; it does not. A quietly stale, JAX-less
install is worse than the documented hard failure, because nothing tells the
user which version they are actually running.
The cause is not a defect in our metadata. 2026.7.29.2 was the first release
published with Requires-Python >=3.12; everything at or below 2026.7.29.1
was published with >=3.9 and stays a permanently valid pip candidate, because
PyPI metadata is immutable. Raising a floor never invalidates the back
catalogue. The fix is to make the sub-3.12 path fail loudly.
Plan
- Publish a one-off tombstone release per package —
2026.7.29.1.post1,
sdist-only,Requires-Python <3.12— whose build raises a clear message
naming the user's Python version and telling them to upgrade. It becomes the
highest sub-3.12 candidate forever, so it never needs republishing. - Keep the tombstone machinery in PyAutoHands, which owns PyPI release
execution — not scattered into the five library repos, where asetup.py
that raises could be picked up by a real build. - Correct the install-doc notes in PyAutoLens, PyAutoGalaxy and PyAutoFit: they
state a failure that does not happen, and name the wrong cut release. - Extend PyAutoHeart
verify_installCheck B so the unpinned sub-3.12
install is asserted to fail, closing a gap the check already documents but
does not test. - File the
autoreduce 0.9published-floor drift separately.
Detailed implementation plan
Affected Repositories
- PyAutoHands (primary) — tombstone mechanism + publish
- PyAutoLens, PyAutoGalaxy, PyAutoFit —
docs/installation/pip.mdprose - PyAutoHeart —
verify_installCheck B
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| ./PyAutoHands | main | clean |
| ./PyAutoLens | main | clean |
| ./PyAutoGalaxy | main | clean |
| ./PyAutoFit | main | clean |
| ./PyAutoHeart | main | clean |
worktree_check_conflict exit 0 — no claims. Warning only: a
feature/version-stamp-sync-guards worktree exists across Hands/Lens/Galaxy/Fit
with zero commits ahead of main — a stale empty worktree, not live work.
Suggested branch: feature/sub-312-install-tombstone
Confirmed behaviour
Reproduced on real interpreters (3.9/3.10/3.11 venvs, pip 26.2.1), not simulated:
| Python | pip install autolens |
|---|---|
| 3.9 | silently installs the 2026.7.29.1 stack, exit 0 |
| 3.10 | same |
| 3.11 | same |
| 3.12 | 2026.8.17.1 (current) |
Rejected alternatives
- Lower the floor so 3.10 gets the latest release. Reverses the fully
shippedpython-312-floorcampaign (five phases, ~15 merged PRs). CI is
3.12/3.13/3.14, and 3.11 is additionally hard-blocked by nufftax (0.4.x
needs>=3.12; 0.6.x is broken against jax 0.10). - Yank the pre-floor releases. ~330 autolens releases x 5 packages, and
PyPI exposes no bulk-yank API.
Implementation Steps
Phase 1 — PyAutoHands: mechanism + publish
- Add
autohands/tombstone/— a generator emitting a minimal sdist per
package:PKG-INFOcarryingRequires-Python: <3.12, and asetup.py
guarded onsys.version_info < (3, 12)(conditional so the sdist can still
be built on 3.12) raising a message that names the user's actual version,
states the older PyPI releases are unsupported and months out of date, and
says to upgrade to 3.12+. - Tests: build the five sdists, serve them from a local PEP 503 index with
data-requires-python, and assert all four behaviours below. - Human-authorized publish of
2026.7.29.1.post1forautolens,
autogalaxy,autoarray,autofit,autonerves. All five are required —
the exact==inter-pins mean tombstoningautolensalone still leaves
pip install autogalaxybacktracking..post1sorts above2026.7.29.1
and below2026.8.4.1, so PyPI's displayed latest stays2026.8.17.1. - Re-verify live on real 3.9/3.10/3.11/3.12 venvs against real PyPI.
Phase 2 — docs + Heart (after phase 1 is live, so the prose describes reality)
-
Rewrite the note in
docs/installation/pip.mdfor PyAutoLens, PyAutoGalaxy
and PyAutoFit. Two facts are currently wrong in each:- "
pip install autolenswill fail with a no matching distribution
error" — it does not; see the table above. - "We dropped support for Python 3.9, 3.10, and 3.11 in release
2026.4.5.3" — wrong release. The April floor was reverted on 2026-04-30
(PyAutoLens62f893a) and2026.5.1.4…2026.7.29.1all shipped
>=3.9again. The real cut is2026.7.29.2.
The rewrite states what the tombstone actually produces, and states the
--only-binary=:all:hole plainly rather than hiding it. - "
-
Extend
PyAutoHeart/skills/verify_install/verify_install.mdCheck B to
assert the unpinned sub-3.12 install fails. It currently tests only the
pinned rejection and notes "An unpinned 3.11 install is not evidence
because pip may select an older compatible release" — that caveat becomes
obsolete once the tombstone lands.
Phase 2 follows phase 1 rather than leading, because the alternative is writing
the docs twice. If phase 1 stalls at the publish gate, phase 2 falls back to
documenting the silent-backtrack reality instead.
Mechanism control test
Validated against a local PEP 503 index before any of this was proposed —
four scenarios, all confirmed:
| scenario | result |
|---|---|
py3.10 pip install X |
loud failure carrying our message |
py3.12 pip install X |
latest; tombstone excluded by Requires-Python, never seen |
py3.10 X==<old version> |
old release still installs — reproducibility preserved |
py3.10 --only-binary=:all: |
silently falls back to the old wheel — the one hole |
Done when
pip install autolens(and the four siblings) on 3.9/3.10/3.11 fails with the
tombstone message instead of installing 2026.7.29.1.pip install autolenson 3.12/3.13/3.14 is byte-for-byte unaffected.pip install autolens==<old version>on 3.10 still resolves, so pinned
historical installs keep working.- The three
pip.mdnotes describe real behaviour and name2026.7.29.2. - Heart Check B fails if the unpinned sub-3.12 install ever succeeds again.
Key Files
PyAutoHands/autohands/tombstone/— new; generator + template (to be created)PyAutoLens/docs/installation/pip.md:6-8,:122— false claimsPyAutoGalaxy/docs/installation/pip.md:6-8,:100— samePyAutoFit/docs/installation/pip.md:6-8,:50— samePyAutoHeart/skills/verify_install/verify_install.md:17— Check B
Follow-up filed separately
autoreduce 0.9 (published 2026-08-12, after phase 4b of the 3.12 floor
campaign) still declares Requires-Python >=3.9,<=3.14.7 on PyPI — the floor
never reached the published artifact, and the <=3.14.7 cap is unexplained.
Prompt: PyAutoMind/draft/bug/pyautoreduce/published_autoreduce_09_missing_312_floor.md.
(autocti on PyPI is stale at 2024 with >=3.7, so it is not a live install
path.)
Original Prompt
Click to expand starting prompt
- Python 3.10 fails silently rather than loudly. The docs say a sub-3.12
install "will fail with a no matching distribution error". It doesn't — on
this box's default 3.10, pip backtracked and cheerfully installed autolens
2026.7.29.1 with no JAX and no warning. A user on 3.10 gets a quietly stale,
JAX-less install. That's worse than the documented hard failure.two issues here, one python3.10 should not backtrap to an old version, so it
should raise an error and if a user has to use python 3.10 (which might still
work, they should end up on the latest verison. Same issue for 3.11 and 3.9 I
assume
Activity
Jammy2211 commentedon Aug 19, 2026
Phase 1 shipped — PR #240
Mechanism (
autohands/tombstone.py), 15 tests, and aworkflow_dispatch-onlypublish workflow. Full PyAutoHands suite: 329 passed.
The built artifacts were verified against the real PyPI candidate set on
real interpreters, not simulated:
pip install autolenspip install autolens2026.8.17.1— unaffectedautolens==2026.7.29.1--only-binary=:all:Workspace impact: none. No PyAuto* library API is touched, so there are no
downstream scripts to migrate and no smoke surface to exercise.
Remaining, in order:
workflow_dispatchonly registers on the default branch, so thepublish workflow cannot be run until it is on
main.publish_tombstoneagainst testpypi, verify on a sub-3.12interpreter, then against pypi with the confirm phrase. Both are human
acts; the PyPI tokens are Actions secrets and stay there.
docs/installation/pip.mdnotes (which also name thewrong cut release: the real one is
2026.7.29.2, not2026.4.5.3) andPyAutoHeart
verify_installCheck B.Heart at ship time:
verdict: stale, score 85, zero red and zero yellow. Thesingle stale reason concerns the five library repos' release rehearsal and is
unrelated to this change.
fix: tombstone releases so sub-3.12 pip install fails loudly (#240)
fix: tombstone build needs setuptools installed explicitly (#242)
Jammy2211 commentedon Aug 19, 2026
TestPyPI rehearsal green — run 32309854365. All five tombstones live on test.pypi.org at
2026.7.29.1.post1, each declaringRequires-Python <3.12.First attempt (32309423898) failed at build, before any upload —
--no-isolationwith no setuptools on a 3.12 runner. Fixed in #242.Verified by resolving against the live index on real interpreters:
pip install autolensautogalaxy/autoarray/autofit/autonervespip install autolens2026.8.17.1— unaffected, tombstone never seenautolens==2026.7.29.1twine checkPASSED on all five, so the metadata is acceptable to a real index.Remaining: the PyPI publish (permanent — a released filename can never be reused), then phase 2.
docs: the supported range says 3.12 - 3.13 but 3.14 is supported
docs: the supported range says 3.12 - 3.13 but 3.14 is supported
docs: the supported range says 3.12 - 3.13 but 3.14 is supported
docs: release_validation must describe both Check B refusals
Jammy2211 commentedon Aug 19, 2026
Tombstones live on PyPI — run 32310162773. The original bug is fixed. Verified against the real index on real interpreters:
pip install autolensautogalaxy/autoarray/autofit/autonervespip install autolens2026.8.17.1— unaffectedautolens==2026.7.29.1Phase 2 PRs, all CI green, awaiting merge:
What the sweep turned up beyond the original scope
The docs had a third false claim, and it was the load-bearing one. "Pre-
2026.4.5.3releases on PyPI have been yanked, so they will not install." They were never yanked — 396 of 421autolensreleases are live. The intended design was evidently "yank the back catalogue so resolver fallback is blocked"; it was never executed, and the page then described the intent as though it had been. That is why the fallback it claimed was blocked was wide open.A fifth surface:
autogalaxy_assistanttold the assistant that 3.11 "fails with no matching distribution rather than silently resolving to an ancient version" — the exact inverse of reality.Support range:
overview.mdin the three libraries said "Python 3.12 - 3.13" though 3.14 has been a required matrix leg since 2026-07-31. Now "Python 3.12 or later". Checked and deliberately left alone: PyAutoCTI's "3.12 or 3.13" is accurate (never promoted), and the workspaceAGENTS.mdclaims match the reusable smoke workflow's["3.12","3.13"]default.Follow-up filed: PyAutoLabs/PyAutoReduce#71 —
autoreduce 0.9still declares>=3.9,<=3.14.7on PyPI, a fortnight after its floor merged.Not fixed, and it cannot be
pip install --only-binary=:all:skips source distributions, so it steps past the tombstone and installs the old wheel silently. Closing it would mean retracting the back catalogue; yanking ~330 releases per package is semantically wrong and impossible in bulk. It is stated in the install docs rather than pretended away.docs: correct the install page — wrong failure mode, wrong cut releas…
docs: correct the install page — wrong failure mode, wrong cut releas…
docs: correct the install page — wrong failure mode, wrong cut releas…
test: Check B must assert the unpinned sub-3.12 install is refused (#155
wiki: the sub-3.12 install note said the opposite of what happened (#17)
Jammy2211 commentedon Aug 19, 2026
Complete. All six PRs merged,
mainCI green everywhere.2ddab4a,8724b0584c46024577a018ccb4e0755718285f7e13The tombstones are live on PyPI.
pip install autolenson Python 3.9, 3.10 and 3.11 now stops with an explanation naming the user's version, rather than silently installing the three-week-old, JAX-less2026.7.29.1stack. 3.12+ resolution is unchanged and pinned historical installs still work.autogalaxy_assistant reports no
maincheck-runs because its workflows arepull_request-only; both were green on #17.Follow-up: PyAutoLabs/PyAutoReduce#71.