Skip to content

Discussion | Review the supported Python versions (3.9/3.10 end of life, 3.14 installs an old release) #341

Closed

Description

@diego-ojeda-binbash

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

  1. Python 3.9 already breaks CI: ubuntu-latest (Ubuntu 26.04) has no Python 3.9, so the 3.9 jobs were pinned to ubuntu-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.
  2. On Python 3.14, pip install leverage silently installs 1.12.1, a very old release. Every release since then caps Requires-Python below 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

  1. 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-Python makes pip skip newer ones.
  2. Python 3.14: add support? That needs CI on 3.14 and checking that the dependencies work on it (python-hcl2, boto3, etc.).
  3. 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.
  4. 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: python constraint and classifiers; regenerate poetry.lock.
  • CI: the version matrix in tests-unit.yml and the ref-arch job, and move the jobs pinned to ubuntu-24.04 back to ubuntu-latest if 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions