Skip to content

Drop Python 3.9 and 3.10, support Python 3.15 - #2314

Merged
kounelisagis merged 2 commits into
mainfrom
agis/drop-eol-python
Nov 3, 2026
Merged

kounelisagis merged 2 commits into
mainfrom
agis/drop-eol-python

Conversation

@kounelisagis

@kounelisagis kounelisagis commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Python 3.9 and 3.10 are end of life. The nightly builds also broke, because ubuntu-latest is now Ubuntu 26.04, which has no Python 3.9.

  • Python 3.11 is now the minimum, and Python 3.15 is supported.
  • Ubuntu runners are pinned to ubuntu-26.04, the wheels included. The issue job runs on ubuntu-slim.
  • Windows runners ship Ninja now, so the Ninja setup step is gone.
  • cibuildwheel is bumped to 4.3.5 to build cp315 wheels.
  • The nightly matrix tests the oldest and newest NumPy for each Python. NumPy 1.25 and 2.0 are still tested on 3.11.
  • Two small fixes for 3.15: typing.ByteString now warns on import, and the ast.dump output in one test changed.
  • pandas 2 has no 3.15 wheels, so the 3.15 jobs run without pandas until Add support for pandas 3 #2295 lands.

Tested locally: built the 3.11, 3.14 and 3.15 wheels, installed each in a clean env, and ran the tests with and without pandas. The sdist works on 3.15 too.

Closes #2313.

cc. @jdblischak

Python 3.9 and 3.10 reached end of life, and ubuntu-latest moved to 26.04,
which has no Python 3.9, so every 3.9 job failed to start.

- Require Python 3.11 and build and test 3.11 to 3.15.
- Pin the Ubuntu runners to ubuntu-26.04.
- Bump cibuildwheel to 4.3.5, which builds cp315 by default, and drop
  CIBW_PRERELEASE_PYTHONS, which cibuildwheel 3 removed.
- Test the oldest and newest NumPy with wheels for each Python, keeping
  NumPy 1.25 and 2.0 on 3.11.
- Skip the pandas test dependency on 3.15, where pandas 2 has no wheels.
- Stop using typing.ByteString, which warns on import from Python 3.15.
- Build the expected dot operator message with ast.dump, whose output
  changed in Python 3.15.

@teo-tsirpanis teo-tsirpanis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM after CI passes.

Comment thread .github/workflows/build-wheels.yml Resolved
needs: [build_wheels, test_sdist]
if: always() && (startsWith(github.ref, 'refs/tags/') || inputs.test_pypi) && needs.build_wheels.result == 'success' && needs.test_sdist.result == 'success'
runs-on: ubuntu-latest
runs-on: ubuntu-26.04

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
runs-on: ubuntu-26.04
runs-on: ubuntu-slim

Comment thread .github/workflows/ci.yml Resolved
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.

The nightly build with earliest supported numpy job failed on Sunday (2026-10-18)

2 participants