Skip to content

chore!: drop Python 3.10 and test 3.15 and 3.15t - #110

Merged
ariostas merged 2 commits into
mainfrom
drop-python-3.10
Dec 1, 2026
Merged

ariostas merged 2 commits into
mainfrom
drop-python-3.10

Conversation

@ariostas

@ariostas ariostas commented Dec 1, 2026

Copy link
Copy Markdown
Member

🤖 AI text below 🤖

Python 3.10 is end of life, so this drops support for it and adds 3.15 and free-threaded 3.15 to the CI matrix.

  • requires-python is now >=3.11. The classifiers, mypy/pylint target versions and pyupgrade's --py311-plus follow. No code changes were needed.
  • The ROOT and codecov job moves from 3.10 to 3.11. This also fixes the failure on chore(deps): bump amannn/action-semantic-pull-request from 6.1.1 to 6.1.3 in the actions group #109. On 3.10, conda-forge stops at anyio 4.14.2, whose pytest plugin imports CallSpec2, which pytest 9.2 deprecates; with filterwarnings = ["error"] that aborts the run at plugin load. On 3.11, conda-forge installs anyio 4.16.0, which already handles the rename.
  • numexpr has no 3.15 or 3.15t wheels yet, so on those jobs uv builds it from the sdist. Locally (macOS) it builds, keeps the GIL disabled on 3.15t, and the full suite passes with 100% coverage. Once numexpr publishes wheels, CI will use them without any change here.
  • The changelog notes dropping 3.10 as the release's breaking change. Docs and AGENTS.md are updated to match.

Python 3.10 has reached end of life. Require 3.11, and move the ROOT
and codecov job from 3.10 to 3.11.

Add 3.15 and free-threaded 3.15 to the CI matrix. numexpr has no wheels
for either yet, so uv builds it from the sdist on those jobs.

Assisted-by: Claude Code:claude-opus-5-5
@codecov

codecov Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (9cd7de1) to head (16d5db6).
✅ All tests successful. No failed tests found.

Additional details and impacted files

conda-forge's Windows Python 3.15 puts its headers in include\python,
which setuptools' distutils does not look in, so building numexpr from
the sdist failed to find Python.h. Pass the include directory sysconfig
reports to cl.exe through the CL environment variable.

Assisted-by: Claude Code:claude-opus-5-5
@eduardo-rodrigues

Copy link
Copy Markdown
Member

Hey @ariostas, not in any way meant to be patronising but we need to be careful removing EOL versions for packages that are much used in analysis. Indeed, let's think of the student that started 3-4 years ago, they are likely to be on a rather old version of Python if they did not evolve then env, to keep things all the same and stable.

It seems fine from a speedy check of the dependents in this instance.

@ariostas

ariostas commented Dec 1, 2026

Copy link
Copy Markdown
Member Author

Thank you, @eduardo-rodrigues. Yeah, Formulate is still not very widely used, so there's not much of a risk of breaking things. But we are also dropping support for Python 3.10 across Scikit-HEP (see for example scikit-hep/uproot#1775 and scikit-hep/awkward#4454), so it also makes sense to drop it here.

@ariostas
ariostas merged commit e8fbe8d into main Dec 1, 2026
41 of 44 checks passed
@ariostas
ariostas deleted the drop-python-3.10 branch December 1, 2026 18:41
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.

2 participants