Skip to content

Commit eb696b8

Browse files
committed
Add per-release pinned requirements files for bug-fix branch builds
Closes matplotlib#23548 - Add ci/requirements/ directory with one pinned requirements file per active bug-fix branch: v3.9.x, v3.10.x, v3.11.x - Each file pins all build, core, and test dependencies to exact versions appropriate for that release branch - Add README.md explaining the naming convention and update workflow - When a new vX.Y.x branch is cut from main, a new file should be added with versions valid for that release
1 parent 5a33910 commit eb696b8

4 files changed

Lines changed: 111 additions & 0 deletions

File tree

‎ci/requirements/README.md‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Per-release pinned requirements
2+
3+
This directory contains fully pinned requirements files for each active
4+
Matplotlib bug-fix (backport) branch.
5+
6+
## Naming convention
7+
8+
Files are named `fully-pinned-vX.Y.x.txt`, where `X.Y` matches the
9+
release branch (e.g. `v3.11.x`).
10+
11+
## Workflow
12+
13+
When a new bug-fix branch `vX.Y.x` is created from `main`:
14+
1. Copy the current `fully-pinned-vMAIN.txt` (or generate a fresh one)
15+
and rename it to `fully-pinned-vX.Y.x.txt`.
16+
2. Pin all versions to the exact releases valid for that branch.
17+
3. Use this file exclusively in CI jobs on the backport branch to
18+
ensure reproducible builds and reduce dependency-only backports.
19+
20+
## Updating
21+
22+
If a dependency needs a security patch on a backport branch, update the
23+
pinned version in the corresponding file and open a PR targeting that branch.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Fully pinned requirements for Matplotlib v3.10.x bug-fix branch builds.
2+
# Ensures reproducible CI on the backport branch.
3+
# Python >= 3.10 required.
4+
5+
# Build system
6+
meson==1.3.0
7+
meson-python==0.15.0
8+
pybind11==2.13.2
9+
setuptools-scm==8.0.0
10+
11+
# Core dependencies (pinned to minimum supported versions for v3.10.x)
12+
contourpy==1.0.1
13+
cycler==0.10.0
14+
fonttools==4.22.0
15+
kiwisolver==1.3.1
16+
numpy==1.23.0
17+
packaging==20.0
18+
pillow==8.0.0
19+
pyparsing==3.0.0
20+
python-dateutil==2.7.0
21+
22+
# Testing
23+
pytest==7.0.0
24+
pytest-cov==4.1.0
25+
pytest-xdist==3.5.0
26+
27+
# Documentation (optional)
28+
sphinx==7.0.0
29+
sphinx-gallery==0.14.0
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Fully pinned requirements for Matplotlib v3.11.x bug-fix branch builds.
2+
# Ensures reproducible CI on the backport branch.
3+
# Python >= 3.11 required.
4+
5+
# Build system
6+
meson==1.6.0
7+
meson-python==0.15.0
8+
pybind11==2.13.2
9+
setuptools-scm==8.1.0
10+
11+
# Core dependencies (pinned to minimum supported versions for v3.11.x)
12+
contourpy==1.0.1
13+
cycler==0.10.0
14+
fonttools==4.22.0
15+
kiwisolver==1.3.1
16+
numpy==1.25.0
17+
packaging==20.0
18+
pillow==9.0.0
19+
pyparsing==3.0.0
20+
python-dateutil==2.7.0
21+
22+
# Testing
23+
pytest==7.0.0
24+
pytest-cov==4.1.0
25+
pytest-xdist==3.5.0
26+
27+
# Documentation (optional)
28+
sphinx==7.3.7
29+
sphinx-gallery==0.15.0
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Fully pinned requirements for Matplotlib v3.9.x bug-fix branch builds.
2+
# Ensures reproducible CI on the backport branch.
3+
# Python >= 3.9 required.
4+
5+
# Build system
6+
meson==1.1.0
7+
meson-python==0.13.2
8+
pybind11==2.11.1
9+
setuptools-scm==7.1.0
10+
11+
# Core dependencies (pinned to minimum supported versions for v3.9.x)
12+
contourpy==1.0.1
13+
cycler==0.10.0
14+
fonttools==4.22.0
15+
importlib-resources==3.2.0
16+
kiwisolver==1.3.1
17+
numpy==1.23.0
18+
packaging==20.0
19+
pillow==8.0.0
20+
pyparsing==2.3.1
21+
python-dateutil==2.7.0
22+
23+
# Testing
24+
pytest==7.0.0
25+
pytest-cov==4.1.0
26+
pytest-xdist==3.5.0
27+
28+
# Documentation (optional)
29+
sphinx==7.0.0
30+
sphinx-gallery==0.14.0

0 commit comments

Comments
 (0)