Skip to content

feat(packaging): require Python 3.11 or later - #951

Draft
petercorke wants to merge 1 commit into
mainfrom
feat/drop-python-3.10
Draft

petercorke wants to merge 1 commit into
mainfrom
feat/drop-python-3.10

Conversation

@petercorke

Copy link
Copy Markdown
Owner

What

Python 3.10 reached end of life in October 2026. This sets requires-python = ">=3.11" and removes the 3.10 classifier, the cp310 wheels, the CI matrix entry, the mypy target and the install prose in the README and docs.

Why now: numpy 2.5 and scipy 1.18 already need Python 3.12 or later, so the 3.10 CI jobs install older numpy, scipy and matplotlib than every other job and test a different dependency set. #950 had a test that failed only on 3.10 because of a typing quirk of that version.

CHANGELOG.md is generated by release-please and is not edited here.

Refs #898.

Behaviour

This is a packaging change. No code, results or public API change.

For users: pip install roboticstoolbox-python on Python 3.10 will not offer the next release, and pip falls back to the latest release that supports 3.10 (1.5.0) instead of failing. Release notes should say so. This is pushed as feat rather than feat!, to avoid release-please bumping to 2.0.

Release note (for the changelog)

Python 3.10 is no longer supported (end of life October 2026). RTB now needs Python 3.11 or later. On 3.10, pip keeps installing 1.5.0.

Not in this PR

SMTB, bdsim, MVTB, Swift and spatialgeometry still say >=3.10. Dropping 3.10 in RTB alone breaks nothing, but the ecosystem should decide together; that is being drafted as a separate policy proposal for rvc-ecosystem.

What I ran, and what I could not

  • pyproject.toml and ci.yml both parse, with the 3.11 floor, four wheel builds and a 4-version matrix.
  • grep finds no other 3.10 in .github, pyproject.toml, the README or docs/source, other than the changelog history.
  • Could not run CI locally. mypy now targets 3.11; in my local environment that surfaces 3 extra errors (Bug2.py, EKF.py) that I could not tell apart from my environment's stubs. The mypy job is advisory, and its result on this PR is the real check.
  • Draft until the ecosystem question is settled.

AI assistance

Written with Claude Code (Claude Sonnet 5.5), reviewed by the maintainer.

🤖 Generated with Claude Code

Python 3.10 reached end of life in October 2026. numpy 2.5 and scipy 1.18
already need 3.12, so the 3.10 CI jobs installed older numpy, scipy and
matplotlib than every other job and tested a different dependency set.

requires-python is now >=3.11, so pip on 3.10 keeps installing RTB 1.5.0
rather than failing. The 3.10 classifier, the cp310 wheels, the CI matrix
entry, the mypy target and the install prose follow.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

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