Skip to content

Administriva: Include Python 3.15 and update workflows version - #2125

Merged
rocky merged 6 commits into
masterfrom
Python-3.15-tolerance
Nov 10, 2026
Merged

rocky merged 6 commits into
masterfrom
Python-3.15-tolerance

Conversation

@rocky

@rocky rocky commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Update to GitHub workflows to @v7. Start using Python 3.15 where we can.

The mesonpy package is not available on 3.15 yet, so "full" package installation isn't fully available. But this dips our toes into the water with Python 3.15.

@rocky
rocky force-pushed the Python-3.15-tolerance branch from 93eb268 to 602bee8 Compare November 7, 2026 20:47
However there is still some 3.15 used CI testing
@rocky
rocky force-pushed the Python-3.15-tolerance branch from 88cfd27 to 185adc5 Compare November 7, 2026 21:13
@rocky
rocky requested review from mmatera and tombouctou November 7, 2026 22:15
@tombouctou

Copy link
Copy Markdown
Collaborator

Thanks for this. All checks pass, but a few things cost test coverage on Python versions that don't have the mesonpy problem:

Should change

  1. ubuntu.yml no longer installs the full dependencies on any Python. Its matrix is still 3.11–3.14 (3.15 isn't in it), yet remake -x develop-full became remake -x develop. The main Linux run then no longer installs llvmlite, lxml, pyocr, scikit-image, wordcloud, unidecode, psutil or ipywidgets. Tests that need them skip themselves (e.g. test/builtin/test_compile.py:90 when llvmlite is missing), so CI stays green while that code goes untested. It also leaves the tesseract-ocr apt install with nothing to do. Suggest changing it back to develop-full.
  2. ubuntu-cython.yml has the same problem. It still runs on 3.14, but develop-full-cython became develop-cython. Suggest keeping develop-full-cython. The new Makefile target is fine to keep, though nothing would use it then.
  3. Some actions are still at v6: ubuntu.yml (checkout and setup-python), isort-and-black-checks.yml (checkout; its setup-python was bumped), and all of pyodide.yml.

Worth considering

  1. benchmark.yml moves from 3.14 to 3.15 and also drops the full dependencies. The cache key for the stored results (${{ runner.os }}-benchmark) doesn't include the Python version, so the benchmark history will show a jump caused by the interpreter rather than by code. Maybe keep benchmarks on 3.14 + develop-full until 3.15 has the full dependencies, or note the jump.
  2. windows.yml changes 3.12 to 3.15, so Windows now tests only a pre-release Python. Maybe ['3.12', '3.15']?
  3. Taken together, the full dependencies would then be installed only by macos.yml (3.13/3.14) and plot-tests.yml. No Linux job would run the full make check with them.

The rest looks good: '**' → ['**'], the 3.15 classifier, removing the outdated setup.py develop comments, and moving mypy, consistency checks and packages to 3.15. Nit: there's a doubled blank line after the new develop-cython target in the Makefile.

@rocky

rocky commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Should change

  1. ubuntu.yml no longer installs the full dependencies on any Python. Its matrix is still 3.11–3.14 (3.15 isn't in it), yet remake -x develop-full became remake -x develop. The main Linux run then no longer installs llvmlite, lxml, pyocr, scikit-image, wordcloud, unidecode, psutil or ipywidgets. Tests that need them skip themselves (e.g. test/builtin/test_compile.py:90 when llvmlite is missing), so CI stays green while that code goes untested. It also leaves the tesseract-ocr apt install with nothing to do. Suggest changing it back to develop-full.

Yes. This should be handled in commit 4fb5ccb

  1. ubuntu-cython.yml has the same problem. It still runs on 3.14, but develop-full-cython became develop-cython. Suggest keeping develop-full-cython. The new Makefile target is fine to keep, though nothing would use it then.

Yes. This should be handled in commit 4fb5ccb

@rocky

rocky commented Nov 7, 2026

Copy link
Copy Markdown
Member Author
  1. Some actions are still at v6: ubuntu.yml (checkout and setup-python), isort-and-black-checks.yml (checkout; its setup-python was bumped), and all of pyodide.yml.

Should be handled by commit ed67fc3

@rocky

rocky commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Worth considering

  1. benchmark.yml moves from 3.14 to 3.15 and also drops the full dependencies. The cache key for the stored results (${{ runner.os }}-benchmark) doesn't include the Python version, so the benchmark history will show a jump caused by the interpreter rather than by code. Maybe keep benchmarks on 3.14 + develop-full until 3.15 has the full dependencies, or note the jump.
  2. windows.yml changes 3.12 to 3.15, so Windows now tests only a pre-release Python. Maybe ['3.12', '3.15']?
  3. Taken together, the full dependencies would then be installed only by macos.yml (3.13/3.14) and plot-tests.yml. >No Linux job would run the full make check with them.

Should be handled by commit ed67fc3 along with the one before.

@rocky

rocky commented Nov 9, 2026

Copy link
Copy Markdown
Member Author

@tombouctou and @mmatera with PR #2121 merged and PR #2128 on the horizon, unless I hear otherwise we should drop support for 3.11. Unless I hear otherwise in a day, I'll merge this.

@rocky

rocky commented Nov 10, 2026

Copy link
Copy Markdown
Member Author

Merging. If there are problems, we'll deal with in another PR.

@rocky
rocky merged commit 0fcb088 into master Nov 10, 2026
16 checks passed
@rocky
rocky deleted the Python-3.15-tolerance branch November 10, 2026 11:30
rocky added a commit that referenced this pull request Nov 10, 2026
I believe this addresses blocking concern

1. "__dict__" in Definition.__slots__ makes each Definition bigger.

Not related, but we now require at least 3.12 (and tolerate 3.15) which was mostly done in PR #2125.

I believe this
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