Skip to content

chore: drop Python 3.11 support#963

Merged
LalatenduMohanty merged 3 commits intomainfrom
cleanup/drop-python-3.11-support
Mar 18, 2026
Merged

chore: drop Python 3.11 support#963
LalatenduMohanty merged 3 commits intomainfrom
cleanup/drop-python-3.11-support

Conversation

@smoparth
Copy link
Contributor

@smoparth smoparth commented Mar 18, 2026

Make Python 3.12 the minimum supported version. Python 3.11 is in security-fix only mode upstream, and downstream (RHEL) has stopped using it. This reduces the CI test matrix and enables use of Python 3.12 features.

  • Remove Python 3.11 classifier from pyproject.toml and e2e plugins
  • Bump requires-python from >=3.11 to >=3.12
  • Bump ruff target-version from py311 to py312
  • Remove 3.11 from CI test matrix (unit + e2e workflows)
  • Update check, publish, and docs workflows to use Python 3.12
  • Remove all 3.11 check-success entries from Mergify config
  • Update example Containerfile to default to Python 3.12
  • refactor commands/build.py and resolver.py to use PEP 695 type keyword for type aliases
  • docs/quickstart.rst: bump prerequisite from 3.11 to 3.12
  • CONTRIBUTING.md: bump prerequisite from 3.11 to 3.12
  • docs/example/Containerfile: update comment from python-311 to python-312

Closes: #948

@smoparth smoparth requested a review from a team as a code owner March 18, 2026 17:25
Make Python 3.12 the minimum supported version. Python 3.11 is in
security-fix only mode upstream, and downstream (RHEL) has stopped
using it. This reduces the CI test matrix and enables use of Python
3.12 features.

- Remove Python 3.11 classifier from pyproject.toml and e2e plugins
- Bump requires-python from >=3.11 to >=3.12
- Bump ruff target-version from py311 to py312
- Remove 3.11 from CI test matrix (unit + e2e workflows)
- Update check, publish, and docs workflows to use Python 3.12
- Remove all 3.11 check-success entries from Mergify config
- Update example Containerfile to default to Python 3.12

Closes: #948
Made-with: Cursor
Signed-off-by: Shanmukh Pawan <smoparth@redhat.com>
@smoparth smoparth force-pushed the cleanup/drop-python-3.11-support branch from d3d8bce to 6f61dee Compare March 18, 2026 17:43
Replace typing.TypeAlias annotations with the Python 3.12 type
statement (PEP 695) in build commands and resolver modules. This
was flagged by ruff UP040 after bumping target-version to py312.

Co-Authored-By: Claude <claude@anthropic.com>
Signed-off-by: Shanmukh Pawan <smoparth@redhat.com>
@smoparth smoparth force-pushed the cleanup/drop-python-3.11-support branch from 6f61dee to 5ce3ec4 Compare March 18, 2026 17:51
- docs/quickstart.rst: bump prerequisite from 3.11 to 3.12
- CONTRIBUTING.md: bump prerequisite from 3.11 to 3.12
- docs/example/Containerfile: update comment from python-311 to python-312

Made-with: Cursor
Signed-off-by: Shanmukh Pawan <smoparth@redhat.com>
@LalatenduMohanty LalatenduMohanty merged commit 5b096c0 into main Mar 18, 2026
48 checks passed
@LalatenduMohanty
Copy link
Member

Thanks @smoparth .

@tiran tiran deleted the cleanup/drop-python-3.11-support branch March 19, 2026 05:25
@tiran
Copy link
Collaborator

tiran commented Mar 19, 2026

Excellent!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drop support for Python 3.11

3 participants