Skip to content

feat: Python 3.10 reached end of life in October 2026; OpenAdapt now requires Python 3.11 or newer - #2382

Draft
abrichr wants to merge 4 commits into
mainfrom
claude/py311-floor-2026-11-20
Draft

abrichr wants to merge 4 commits into
mainfrom
claude/py311-floor-2026-11-20

Conversation

@abrichr

@abrichr abrichr commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Python 3.10 reached end of life in October 2026; OpenAdapt now requires Python 3.11 or newer.

Stacked on claude/dep-security-2026-11-20, the dependency-security PR #2383. Until that merges, this diff includes its three commits; rebase onto main once it does. Merge only after the openadapt-flow-v3.4.0 tag exists. This change ships in the release after Flow 3.4.0: the next Flow minor and launcher release carry it together.

Why

The fixed releases of Pillow (13.0.0), filelock (4.2.1) and dnspython (2.9.2) require Python 3.11 or newer, and Pillow has no patched 12.x. While the locks resolve Python 3.10, each of them keeps a vulnerable Pillow 12.3.0 entry for that fork. Dependabot flags those entries: 30 critical and 149 high alerts. Projected against these locks, the open alerts drop to 0 critical, 0 high, 1 medium (mako in packages/desktop/uv.lock, which the Desktop release agent owns) and 0 low.

What changes

  • Package metadata.
    • requires-python rises to 3.11 in the launcher, flow, agent, capture, privacy, tray, types and verify. Upper caps such as <3.13 don't change.
    • Types and verify have no Pillow dependency; they move for consistency, so that every package has one floor.
    • The 3.10 classifier is removed everywhere.
  • Build settings. The uv required-environments, the ruff target-version and the mypy python_version (including .github/mypy-interop.ini) now target 3.11.
  • Flow dependencies. Flow drops tomli (only needed below 3.11) and the now-redundant python_version >= '3.11' markers on sigstore and the openenv extra.
  • Locks. The 3.11 lockfile floors that the dependency PR added are removed, because there is no 3.10 fork left. Every lock was regenerated with uv 0.11.29. It now holds Pillow 13.0.0, filelock 4.2.12 and dnspython 2.9.2 only, and drops the 3.10-only packages: tomli, exceptiongroup, async-timeout, coloredlogs, humanfriendly, pyreadline3, importlib-metadata and zipp.
  • CI.
    • The main-tier matrices change from 3.10/3.11/3.12 to 3.11/3.12, and from 3.10/3.12 to 3.11/3.12. The "Syntax at the oldest supported Python" steps use 3.11.
    • capture's leg that checks AT-SPI against older GLib keeps running on ubuntu-22.04, now with Python 3.11.
    • The unsupported-Python guard checks for the new message.
  • Launcher.
    • _SUPPORTED_PYTHON is now (3.11, 3.12), and the engine messages and the --help quick start say 3.11–3.12.
    • The tests that read the range follow it.
    • On Python 3.10, pip now picks the newest launcher that still supports 3.10, instead of this one.
  • Docs. The root README badge and install line, docs/cli.md, docs/getting-started/*, the package READMEs and contributing guides, the benchmark and example READMEs, privacy COMPLIANCE.md, the claude-code demo script, the .github/workflows/README.md tier table, and llms-full.txt (regenerated) all now say 3.11.

Release notes

Flow and the launcher take their changelog entries from semantic-release, which uses the commit subject. This PR's commit subject is the sentence above, so the squash title must stay feat: .... That gives a minor release. A ! or a BREAKING CHANGE footer would make the launcher 2.0 and Flow 4.0.

Agent, capture, privacy, tray, types and verify publish when a reviewed version bump starts their changelog. This PR doesn't bump them, so it releases nothing. Each one's next release entry should carry the same sentence.

Not changed

  • Historical evidence documents: docs/python-313-314-install-evidence.md, docs/monorepo/INSTALL_WEIGHT.md, the legacy freeze docs and the design notes.
  • .github/ci-tools, the apt-install helper (Ubuntu 22.04's system Python is 3.10), and the stdlib-only vocabulary lint.py, which runs on any Python 3.10 or later.
  • Dead tomllib fallbacks in code.
  • legacy/.

Docs site

OpenAdaptAI/openadapt-ops#350 (draft) makes the same change on docs.openadapt.ai. Merge it after these releases are on PyPI: its compatibility-table test checks the published metadata.

Overlap

#2365 (quickstart, approved) rewrites some of the same launcher strings: the --help quick start, the README install line and the remedy message. Whichever merges second rebases, keeping #2365's wording with 3.11 in place of 3.10.

Tests

On Python 3.12:

  • Root suite: 2166 passed, 17 skipped. The one failure, the review-brief check, passed after regenerating llms-full.txt.
  • Privacy (without Presidio): 125 passed.
  • Tray: 408 passed.
  • Types: 770 passed.
  • Flow's classifier, release-contract, dependency-security and consistency tests on the zenbook: 218 passed. mypy matches main apart from one new tomllib redefinition, fixed here in sanitized_artifact.py; tests touching that module: 465 passed, and 2 fail in test_runtime_validation.py the same way on the base branch (destination trust classification on this host).

Also checked:

  • uv lock --check passes in all eight directories.
  • scripts/ci/check_lock_wheels.py passes: every lock installs on its oldest Python on each platform.
  • ruff findings match main's baseline in every package.

…requires Python 3.11 or newer

Raise requires-python to 3.11 in the launcher, flow, agent, capture,
privacy, tray, types and verify; drop the 3.10 classifiers; move the uv
required-environments, ruff and mypy targets, and the main-tier CI
matrices to 3.11 (capture's AT-SPI leg stays on ubuntu-22.04, now with
3.11). The launcher's supported range is 3.11-3.12.

With no 3.10 fork, every lock now holds only Pillow 13.0.0, filelock
4.2.12 and dnspython 2.9.2, so the lockfile-only 3.11 floors are gone.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant