Bump minimum python version to 3.11#2275
Open
iplay88keys wants to merge 2 commits into
Open
Conversation
Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
Contributor
There was a problem hiding this comment.
Pull request overview
Aligns the declared minimum supported Python version with actual runtime requirements by raising the Python workspace floor from 3.10 to 3.11, and updates CI/lint tooling targets accordingly.
Changes:
- Bump
requires-pythonfrom>=3.10to>=3.11across workspace packages and samples (keeping existing<3.14caps where present). - Update Ruff/Black target versions from
py310topy311. - Update CI to drop Python 3.10 from the test matrix and run linting on Python 3.11; regenerate
python/uv.lock.
Reviewed changes
Copilot reviewed 16 out of 17 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| python/samples/openai/basic_agent/pyproject.toml | Raise sample’s requires-python to >=3.11. |
| python/samples/langgraph/kebab/pyproject.toml | Raise sample’s requires-python to >=3.11. |
| python/samples/langgraph/hitl-tools/pyproject.toml | Raise sample’s requires-python to >=3.11. |
| python/samples/langgraph/currency/pyproject.toml | Raise sample’s requires-python to >=3.11. |
| python/samples/crewai/research-crew/pyproject.toml | Raise sample’s requires-python to >=3.11, <3.14. |
| python/samples/crewai/poem_flow/pyproject.toml | Raise sample’s requires-python to >=3.11, <3.14. |
| python/pyproject.toml | Update Ruff target-version to py311 for the workspace. |
| python/packages/kagent-skills/pyproject.toml | Bump requires-python and update Black/Ruff target versions to py311. |
| python/packages/kagent-openai/pyproject.toml | Bump requires-python and update Black/Ruff target versions to py311. |
| python/packages/kagent-langgraph/pyproject.toml | Bump requires-python and update Black/Ruff target versions to py311. |
| python/packages/kagent-crewai/pyproject.toml | Bump requires-python to >=3.11, <3.14. |
| python/packages/kagent-core/pyproject.toml | Bump requires-python to >=3.11. |
| python/packages/kagent-adk/pyproject.toml | Bump requires-python to >=3.11. |
| python/packages/agentsts-core/pyproject.toml | Bump requires-python to >=3.11. |
| python/packages/agentsts-adk/pyproject.toml | Bump requires-python to >=3.11. |
| .github/workflows/ci.yaml | Drop Python 3.10 from the test matrix; use Python 3.11 for lint job. |
| python/uv.lock | Regenerate lockfile to reflect the updated Python version floor and resolution. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…targets Signed-off-by: Jeremy Alvis <jeremy.alvis@solo.io>
Contributor
Author
|
@EItanya, |
Collaborator
|
removed 3.10 from the status checks |
peterj
approved these changes
Jul 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Raises the minimum supported Python version from 3.10 to 3.11 across the Python workspace.
kagent-adkalready callsasyncio.Task.uncancel()(added in Python 3.11) in its A2A agent executor (#2176), so 3.10 was broken in practice; this makes the declared floor match. 3.10 also reaches end of life in October 2026.requires-python:>=3.10→>=3.11in all 15 workspace pyprojects (root, packages, samples). The existing<3.14caps on the crewai packages are unchanged.target-version:py310→py311where set.python-testmatrix drops 3.10 (now 3.11/3.12/3.13);python-lintinstalls 3.11.uv.lockregenerated: removesasync-timeout,exceptiongroup, andbackports-asyncio-runner(3.10-only stdlib backports) and collapses the numpy 2.2.6/2.3.2 split resolution to 2.3.2 only.from datetime import UTCtry/except 3.10 fallbacks inkagent-langgraphandkagent-openai(ruff UP017 flags them at the py311 target; its autofix mangles the fallback branch, so they are deleted instead). Thetyping.overridefallbacks stay — those need 3.12.go/core/cli/internal/mcp/frameworks/python/templates/pyproject.toml.tmpl): ruff/blacktarget-versionand mypypython_versionbumpedpy310/3.10→py312/3.12to match the template's ownrequires-python = ">=3.12".Test plan
python-testmatrix (3.11–3.13) runs the full test suite.uv lockresolves cleanly (272 packages).