Skip to content

Backport PR #31504 on branch v3.10.x (Re-order variants to prioritize narrower types) - #31511

Merged
ksunden merged 1 commit into
matplotlib:v3.10.xfrom
meeseeksmachine:auto-backport-of-pr-31504-on-v3.10.x
Apr 17, 2026
Merged

ksunden merged 1 commit into
matplotlib:v3.10.xfrom
meeseeksmachine:auto-backport-of-pr-31504-on-v3.10.x

Conversation

@meeseeksmachine

Copy link
Copy Markdown
Contributor

Backport PR #31504: Re-order variants to prioritize narrower types

@lumberbot-app lumberbot-app Bot added this to the v3.10.9 milestone Apr 16, 2026
@lumberbot-app lumberbot-app Bot added Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. backend: agg topic: text/fonts labels Apr 16, 2026
@meeseeksmachine meeseeksmachine added Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. backend: agg topic: text/fonts labels Apr 16, 2026
@ksunden
ksunden merged commit 6e203dc into matplotlib:v3.10.x Apr 17, 2026
66 of 71 checks passed
vbraun pushed a commit to sagemath/sage that referenced this pull request Nov 14, 2026
Release Manager
gh-43125: Update Matplotlib to 3.10.9 for pybind11 3.1 compatibility
    
Building Matplotlib 3.10.8 with pybind11 3.1 makes integer arguments to
Agg and FreeType functions emit deprecation warnings intended for
floats. Ordinary plot rendering then produces unexpected output and
fails Sage doctests, as seen in the classic macOS job of #43112.

Update the Matplotlib SPKG to 3.10.9, which includes the released fix in
matplotlib/matplotlib#31511. This updates the
version and source checksums within the existing 3.10 series.

Validation on macOS arm64 with CPython 3.15:

- Built both 3.10.8 and 3.10.9 from their official source archives with
pybind11 3.1.0 and Sage's system FreeType/Qhull options.
- Reproduced warnings for integer Agg coordinates and FreeType image
dimensions on 3.10.8; both are warning-free on 3.10.9. Actual float
arguments still warn.
- Rendered the same PNG with both builds: 38 spurious deprecation
warnings on 3.10.8, zero on 3.10.9.
- All 1,074 Sage doctests in `graphics.py`, `plot.py`, `text.py`, and
`multigraphics.py` pass with the locally built 3.10.9 wheel.
- Built 3.10.9 with Sage's unchanged `sdh_build_wheel` helper and
current `meson-python` 0.19.0 / `setuptools_scm` 10.0.5, exercising its
existing `--no-isolation --skip-dependency-check` fallback.
- Verified the source archive against PyPI's SHA256 and Sage's package
checksum checker.

The new upstream `setuptools_scm<10` build constraint addresses editable
Matplotlib installs; upstream explicitly permits downstream wheel
builders to relax it in
matplotlib/matplotlib#31677. The normal wheel
build above succeeds with Sage's current toolchain.

### 📝 Checklist

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes. (Existing plotting
doctests and a local upstream regression reproducer were run.)
- [ ] I have updated the documentation and checked the documentation
preview. (Not applicable to this SPKG update.)

### ⌛ Dependencies

None; this targets `develop` independently of #43112.
    
URL: #43125
Reported by: Dima Pasechnik
Reviewer(s):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend: agg Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. topic: text/fonts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants