Skip to content

MNT: bump minimum python to 3.12 and minimum numpy to 2.0#31740

Open
rcomer wants to merge 2 commits into
matplotlib:mainfrom
rcomer:bump-python
Open

MNT: bump minimum python to 3.12 and minimum numpy to 2.0#31740
rcomer wants to merge 2 commits into
matplotlib:mainfrom
rcomer:bump-python

Conversation

@rcomer
Copy link
Copy Markdown
Member

@rcomer rcomer commented May 23, 2026

PR summary

According to NEP29 we could drop python 3.11 last month, and it should be long gone by the time we release mpl 3.12. Support for numpy v1 could be dropped last September. Contourpy v1.2.1 was the first version to support numpy v2.

Also I am having complications with warn_external in another branch and dropping python 3.11 means I only need one solution for that!

AI Disclosure

No AI used.

PR checklist

@rcomer rcomer added this to the v3.12.0 milestone May 23, 2026
@rcomer rcomer added Maintenance PR: dependencies Pull requests that update a dependency file labels May 23, 2026
@github-actions github-actions Bot added CI: Run cibuildwheel Run wheel building tests on a PR Documentation: devdocs files in doc/devel labels May 23, 2026
@rcomer rcomer marked this pull request as draft May 23, 2026 15:10
@rcomer
Copy link
Copy Markdown
Member Author

rcomer commented May 23, 2026

Looks like I can't do this without also bumping the numpy version. If I read it right, minver can't find numpy 1.25 wheels for python 3.12.

@github-actions github-actions Bot added topic: mplot3d Documentation: examples files in galleries/examples labels May 23, 2026
@rcomer rcomer changed the title MNT: bump minimum python to 3.12 MNT: bump minimum python to 3.12 and minimum numpy to 2.0 May 23, 2026
@rcomer rcomer force-pushed the bump-python branch 2 times, most recently from 9b1905a to 29bbea0 Compare May 23, 2026 16:50
CIBW_BUILD: "cp311-*"
CIBW_ARCHS: ${{ matrix.cibw_archs }}

- name: Build wheels for PyPy
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

According to the docs PyPy wheels only go up to py311. Should we add GraalPy instead, or do we just wait till someone asks for it?

@rcomer
Copy link
Copy Markdown
Member Author

rcomer commented May 23, 2026

I do like a diff that is more red than green 😎

@rcomer rcomer marked this pull request as ready for review May 23, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI: Run cibuildwheel Run wheel building tests on a PR Documentation: devdocs files in doc/devel Documentation: examples files in galleries/examples Maintenance PR: dependencies Pull requests that update a dependency file topic: mplot3d

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant