Skip to content

build: drop Python 3.10 support and add Python 3.15 support - #4489

Merged
petyaslavova merged 3 commits into
masterfrom
ps_drop_py310_add_py315
Oct 27, 2026
Merged

petyaslavova merged 3 commits into
masterfrom
ps_drop_py310_add_py315

Conversation

@petyaslavova

@petyaslavova petyaslavova commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Change summary

This pull request removes support for Python 3.10, which has reached end of life, and adds support for Python 3.15.

  • pyproject.toml: requires-python = ">=3.11", 3.10 classifier removed, 3.15 classifier added, ruff target-version = "py311".
  • CI: the 3.10 jobs move to 3.11, and the newest-version jobs move from 3.14 to 3.15 (3.15t in the hiredis-py workflow). PyPy 3.10 is dropped, leaving pypy-3.11. PyPy 3.12 is not added, because it is still officially beta. The lint, docs, Read the Docs and publish builds use 3.11.
  • dev_requirements.txt: the PyPy 3.10 cryptography pin is removed.
  • Version checks that can never fail with a 3.11 floor are removed: the typing_extensions fallback for Self in hybrid_query.py, and old version checks in the async command and pubsub tests.
  • README and AGENTS.md are updated.

The async-timeout dependency and the sys.version_info >= (3, 11, 3) guards stay, because asyncio.timeout is broken before 3.11.3 (#2633). Because of requires-python, pip keeps installing redis-py 8.1.x on Python 3.10.

Test coverage

No tests were added, because this change only touches packaging, CI and version checks. The linters pass with the py311 target, and the updated CI matrices run the full suite on 3.11 and 3.15.


Note

Medium Risk
Intentional compatibility break for Python 3.10 installs via requires-python; no Redis client logic changes, but release timing affects who can upgrade.

Overview
Raises the minimum supported Python to 3.11 and adds 3.15 to packaging and CI, reflecting Python 3.10 EOL (documented in README as 8.1.0 last on 3.10, 8.2.0+ on 3.11+).

pyproject.toml sets requires-python = ">=3.11", drops the 3.10 Trove classifier, adds 3.15, and moves Ruff to py311. Docs, lint, publish, and Read the Docs jobs use 3.11; integration matrices shift primary pins from 3.10/3.14 to 3.11/3.15 (plus 3.15t in hiredis-py). PyPy 3.10 is removed (only pypy-3.11); install-from-commit adds 3.15. The hiredis job excludes Python 3.15 with hiredis-version: '<3.0.0' because 2.x does not build on 3.15.

Code cleanup for the new floor: hybrid_query.py imports Self from typing (no typing_extensions fallback), async tests drop guards for uncancel() and pre-3.8 CancelledError behavior, and the PyPy 3.10 cryptography pin is removed from dev_requirements.txt. AGENTS.md matches the new Python/Ruff targets.

Reviewed by Cursor Bugbot for commit e1bbe9c. Bugbot is set up for automated code reviews on this repo. Configure here.

@petyaslavova petyaslavova added the maintenance Maintenance (CI, Releases, etc) label Oct 22, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
πŸ“ Code Review βœ… Completed 2026-10-27T12:18:18.971015Z 5290d03 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with πŸ‘€ while any review is running, comments if it has suggestions, and reacts with πŸ‘ once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ’‘ Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ee10094171

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with πŸ‘.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread .github/workflows/integration.yaml Resolved

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread .github/workflows/integration.yaml Resolved
@petyaslavova
petyaslavova force-pushed the ps_drop_py310_add_py315 branch from ee10094 to e1bbe9c Compare October 27, 2026 11:52

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit e1bbe9c. Configure here.

Comment thread .github/workflows/integration.yaml Resolved
@petyaslavova
petyaslavova merged commit 3a6c462 into master Oct 27, 2026
130 checks passed
@petyaslavova
petyaslavova deleted the ps_drop_py310_add_py315 branch October 27, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Maintenance (CI, Releases, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant