Repository navigation
CI: test the supported Python window automatically - #133
Merged
Merged
Conversation
Replace the hard-coded CI test matrix with a setup job that resolves it on each run from .github/scripts/python_versions.py: every CPython release that is released and not end-of-life (endoflife.date), installable by actions/setup-python, and allowed by python_requires in setup.cfg. Old versions drop out on their own instead of failing CI, and new releases join once setup-python ships them. The job warns when python_requires still admits an end-of-life release. Raise python_requires to >=3.11 (3.9 and 3.10 are end-of-life), drop the tomli backport, and update classifiers, tox envs, the conda recipe, Read the Docs, and the developer docs to match. The build job now uses the newest supported version, and the publish workflow uses the non-deprecated packages-dir input. Closes #132 Co-Authored-By: Claude Opus 5.5 <[email protected]>
h5py has no wheels for Python 3.15 yet, so pip builds it from source and fails without the HDF5 C library. Install libhdf5 (apt on Linux, Homebrew on macOS) and point HDF5_DIR at it, so newly released Pythons in the window are tested before their compiled dependencies publish wheels. Hosted macOS runners keep timing out before picking up jobs. Test every supported version on Linux and only the oldest and newest on macOS, cutting macOS jobs from five to two. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Closes #132.
Problem
CI hard-coded
["3.9", …, "3.14"].ubuntu-latest(26.04) no longer ships Python 3.9, sosetup-pythonfailed and every nightly/push run went red. Every future end-of-life would break CI the same way.Change
Dynamic test matrix. A new
versionsjob runs.github/scripts/python_versions.py(stdlib only) and feeds thetestmatrix. It selects every CPython release that isactions/setup-python(actions/python-versions manifest), andpython_requiresinsetup.cfg.Today that resolves to 3.11–3.15. Versions now leave the matrix when they reach end-of-life and join once setup-python ships them. If
python_requiresstill admits an end-of-life release, the job emits a::warning::so the floor gets raised deliberately.Minimum raised to 3.11 (3.9 and 3.10 are end-of-life):
python_requires, classifiers (3.11–3.15), tox envs, conda recipe, and developer docs. Thetomlibackport is dropped;config.pyimportstomllibdirectly.Build job uses the newest supported version instead of a pinned 3.12; the publish workflow uses
3.xand the non-deprecatedpackages-dirinput..readthedocs.yaml: Ubuntu 20.04 / Python 3.9 → Ubuntu 24.04 / Python 3.13.Testing
python_versions.pychecked against live data, the old>=3.9setup.cfg (warning shown), a simulated 2027-11-15 date (3.11 drops out and the warning fires), and an unsatisfiablepython_requires(exits with error).Not in this PR
--max-py-versionbump in.pre-commit-config.yamlwhen 3.16 ships.actions/checkout@v2.🤖 Generated with Claude Code