Skip to content

Drop support for Python 3.10#9750

Merged
radarhere merged 12 commits into
python-pillow:mainfrom
hugovk:rm-3.10
Jul 17, 2026
Merged

Drop support for Python 3.10#9750
radarhere merged 12 commits into
python-pillow:mainfrom
hugovk:rm-3.10

Conversation

@hugovk

@hugovk hugovk commented Jul 1, 2026

Copy link
Copy Markdown
Member

Python 3.10 reaches end of life in October 2026:

Pillow 13.0.0 is planned for 2026-10-15 and will drop Python 3.10:

TODO:

@hugovk hugovk added the Removal Removal of a feature, usually done in major releases label Jul 1, 2026
@hugovk
hugovk force-pushed the rm-3.10 branch 3 times, most recently from 87ab4ac to a7c52fe Compare July 1, 2026 19:05
@hugovk

hugovk commented Jul 1, 2026

Copy link
Copy Markdown
Member Author

Decide about ubuntu-22.04-jammy-amd64

Let's remove that one, we did the same two years ago for 20.04: python-pillow/docker-images#275.

and ubuntu-22.04-jammy-amd64-valgrind which use 3.10: upgrade to 3.11 or drop

I think it's time for the slower ubuntu-24.04-noble-amd64-valgrind: python-pillow/docker-images#272.

@hugovk

hugovk commented Jul 9, 2026

Copy link
Copy Markdown
Member Author

Similar to radarhere/docker-images#4, I've split the valgrind tests into four jobs.

Workflow 22.04 unsplit (main) 24.04 unsplit 24.04 split x 4
Test Valgrind 81m - 89m 99m 36m
Test Valgrind Memory Leaks 3h 08m - 3h 40m 3h 07m 54m

@hugovk

hugovk commented Jul 10, 2026

Copy link
Copy Markdown
Member Author

@hugovk
hugovk marked this pull request as ready for review July 10, 2026 13:17
radarhere and others added 3 commits July 11, 2026 09:02
Comment thread Tests/test_file_avif.py
class TestAvifAnimation:
@contextmanager
def star_frames(self) -> Generator[list[Image.Image], None, None]:
def star_frames(self) -> Generator[list[Image.Image]]:

@radarhere radarhere Jul 13, 2026

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.

I'm having a hard time finding how this change is part of Python 3.11. It appears to work in Python 3.10.

Python 3.10.20 (main, Mar  7 2026, 05:04:57) [Clang 17.0.0 (clang-1700.6.3.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from collections.abc import Generator
>>> Generator[int]
collections.abc.Generator[int]

@radarhere
radarhere merged commit 2b73839 into python-pillow:main Jul 17, 2026
111 of 113 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Removal Removal of a feature, usually done in major releases

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants