Skip to content

Drop support for Pythons 3.9 - 3.11#89

Merged
mfisher87 merged 10 commits into
matplotlib:mainfrom
mfisher87:drop-support-for-python-3.9-3.11
Jun 2, 2026
Merged

Drop support for Pythons 3.9 - 3.11#89
mfisher87 merged 10 commits into
matplotlib:mainfrom
mfisher87:drop-support-for-python-3.9-3.11

Conversation

@mfisher87
Copy link
Copy Markdown
Collaborator

@mfisher87 mfisher87 commented Jun 2, 2026

Per SPEC0

Supercedes #84 -- thanks @neutrinoceros for your 2-year-old PR I never reviewed. Credited you as co-author!

  • Drop old versions of Python
  • Update CI to test with new versions
  • Update tooling (ruff, Black) for compatibility with new versions of Python
    • Run autofixes with new tool versions
    • Update tooling config to ignore some rules and avoid sidetrack and PR bloat
  • ?

Co-authored-by: Clément Robert <14075922+neutrinoceros@users.noreply.github.com>
@mfisher87 mfisher87 force-pushed the drop-support-for-python-3.9-3.11 branch from aebc083 to 5c72bfd Compare June 2, 2026 21:22
Comment thread pyproject.toml Outdated
Comment thread pyproject.toml Outdated
Comment thread pyproject.toml Outdated
requires-python = "~=3.9"
requires-python = ">=3.12"
dependencies = [
"numpy ~=1.22",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It you're going for 3.12 and newer I think you'll have to upgrade every direct dependency if only for wheels.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

643df9b

Do you think I should bump the lower bounds too? 🤔

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes. Ideally lower bounds themselves could be exercised without building dependencies. I usually visit, e.g pypi.org/simple/numpy and search for "cp312" to quickly see how far back this Python requirement allows me to go.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I uv's --resolution lowest-direct to weed out a couple bad versions. Opened PR #100 !

@mfisher87 mfisher87 force-pushed the drop-support-for-python-3.9-3.11 branch from 52b1b53 to 8b7c3fd Compare June 2, 2026 21:30
mfisher87 and others added 2 commits June 2, 2026 15:30
Co-authored-by: Clément Robert <14075922+neutrinoceros@users.noreply.github.com>
@mfisher87 mfisher87 force-pushed the drop-support-for-python-3.9-3.11 branch from 13e74d4 to d6a375f Compare June 2, 2026 21:33
@mfisher87 mfisher87 changed the title Drop support for Pythons 3.9-3.11 Drop support for Pythons 3.9 - 3.11 Jun 2, 2026
@mfisher87
Copy link
Copy Markdown
Collaborator Author

YOLO merging 😬

@mfisher87 mfisher87 merged commit 31609d2 into matplotlib:main Jun 2, 2026
7 checks passed
@mfisher87 mfisher87 deleted the drop-support-for-python-3.9-3.11 branch June 2, 2026 22:17
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