Repository navigation
Closed
Labels
enhancementNew feature or request
Description
For team discussion. Decide which Python versions the cli supports, and whether to drop any.
Context
The cli declares support for Python 3.9 – 3.13 (pyproject.toml: python = "~3.9 || ~3.10 || ~3.11 || ~3.12 || ~3.13", published as Requires-Python: >=3.9,<3.14). The same range appears in the classifiers, README.md, SPECS.md and CLAUDE.md, and CI tests every version.
Upstream status (as of 2026-11)
| Version | Status | End of life |
|---|---|---|
| 3.9 | End of life | 2025-10 |
| 3.10 | End of life | 2026-10 |
| 3.11 | Security fixes only | 2027-10 |
| 3.12 | Security fixes only | 2028-10 |
| 3.13 | Bugfix | 2029-10 |
| 3.14 | Bugfix (released 2025-10) | 2030-10 |
Usage (PyPI downloads, 2026-05-17 → 2026-11-13, pypistats)
| Python | Downloads | Share of known |
|---|---|---|
| 3.13 | 1475 | 58% |
| 3.12 | 439 | 17% |
| 3.9 | 423 | 17% |
| 3.10 | 93 | 4% |
| 3.11 | 52 | 2% |
| 3.14 | 45 | 2% |
| Unknown | 2415 | — |
Downloads include CI and mirrors, so they are an approximation of users. The 3.9 share is worth a closer look: it may be a few pipelines rather than many people.
Concrete problems today
- Python 3.9 already breaks CI:
ubuntu-latest(Ubuntu 26.04) has no Python 3.9, so the 3.9 jobs were pinned toubuntu-24.04(BUG | CI fails on Ubuntu 26.04: no Python 3.9, and a bats teardown typo #339 / Fix | CI on Ubuntu 26.04: pin the Python 3.9 jobs, fix a bats typo #340). That pin will not last forever. - On Python 3.14,
pip install leveragesilently installs 1.12.1, a very old release. Every release since then capsRequires-Pythonbelow 3.14, and 1.12.1 is the newest one without such a cap. There is no error: users on 3.14 (the current Python, the default on some distros and on Homebrew) get a years-old cli. 45 downloads in six months came from 3.14.
Decisions
- Minimum version: keep 3.9, or move to 3.10 / 3.11?
- Dropping 3.9 and 3.10 (both end of life) leaves 3.11+, which is about 77% of known downloads today, plus 3.14.
- Users on an older Python keep getting the last release that supported it, since
Requires-Pythonmakes pip skip newer ones.
- Python 3.14: add support? That needs CI on 3.14 and checking that the dependencies work on it (
python-hcl2,boto3, etc.). - Upper bound: keep a hard cap (
<3.14), which makes pip fall back to an ancient release on a newer Python, or drop it (>=3.x), so a newer Python gets the latest release and fails loudly if something is actually incompatible. - Policy for the future: e.g. "support the versions upstream still maintains", reviewed with each new Python release (every October).
Work once decided
pyproject.toml:pythonconstraint and classifiers; regeneratepoetry.lock.- CI: the version matrix in
tests-unit.ymland the ref-arch job, and move the jobs pinned toubuntu-24.04back toubuntu-latestif 3.9 goes. - Docs:
README.md,SPECS.md,CLAUDE.md. - Release notes: announce the change; dropping a version is breaking for those users, so it may warrant a minor or major bump.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity