Skip to content

Update numpy requirement from <=2.5,>=1.20.0 to >=1.20.0,<=2.5.1#2261

Open
dependabot[bot] wants to merge 2 commits into
masterfrom
dependabot/pip/numpy-gte-1.20.0-and-lte-2.5.1
Open

Update numpy requirement from <=2.5,>=1.20.0 to >=1.20.0,<=2.5.1#2261
dependabot[bot] wants to merge 2 commits into
masterfrom
dependabot/pip/numpy-gte-1.20.0-and-lte-2.5.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 9, 2026

Copy link
Copy Markdown
Contributor

Updates the requirements on numpy to permit the latest version.

Release notes

Sourced from numpy's releases.

v2.5.1 (July 4, 2026)

NumPy 2.5.1 Release Notes

The NumPy 2.5.1 is a patch release that fixes bugs discovered after the 2.5.0 release. The most noticeable is the fix is to the numpy datetime cython API which should allow downstream to support NumPy versions older than 2.5. Preparation for Python 3.15 continues along with typing improvements.

This release supports Python versions 3.12-3.14

Changes

  • The minimum supported GCC version has been updated from 9.3.0 to 10.3.0

    (gh-31843)

Contributors

A total of 10 people contributed to this release. People with a "+" by their names contributed a patch for the first time.

  • Adhyan Gupta +
  • Ankit Ahlawat
  • Charles Harris
  • Iason Krommydas
  • Joren Hammudoglu
  • Kumar Aditya
  • Nathan Goldbaum
  • Sebastian Berg
  • Ties Jan Hefting +
  • Vineet Kumar

Pull requests merged

A total of 20 pull requests were merged for this release.

  • #31707: MAINT: Prepare 2.5.x for further development
  • #31721: CI: fix new cython-lint errors (#31711)
  • #31723: MAINT: Update meson to match main
  • #31729: TST: use setup-sde instead of curl to get SDE binaries (#31727)
  • #31829: BUG: Relax finfo to be easier accessible for all user dtypes...
  • #31831: TYP: Fix flatiter.__next__ return type for object_ and...
  • #31832: BUG: avoid deadlocks using NpyString API (#31682)
  • #31833: BUG: fix out array leak in reduceat and accumulate when dtype...
  • #31835: BUG: fix numpy datetime cython APIs to be compatible with older...
  • #31836: TYP: Fix incorrect dtype inference of asarray([]) (#31732)
  • #31837: TYP: Fix np.ma.masked_array 2.5.0 regression
  • #31838: FIX: Refactor error handling in array_setstate to prevent typecode...
  • #31839: TST: xfail multithreaded BLAS test more generously
  • #31840: MAINT: Rename subroutine for crackfortran tests

... (truncated)

Changelog

Sourced from numpy's changelog.

This is a walkthrough of the NumPy 2.4.0 release on Linux, which will be the first feature release using the numpy/numpy-release <https://github.com/numpy/numpy-release>__ repository.

The commands can be copied into the command line, but be sure to replace 2.4.0 with the correct version. This should be read together with the :ref:general release guide <prepare_release>.

Facility preparation

Before beginning to make a release, use the requirements/*_requirements.txt files to ensure that you have the needed software. Most software can be installed with pip, but some will require apt-get, dnf, or whatever your system uses for software. You will also need a GitHub personal access token (PAT) to push the documentation. There are a few ways to streamline things:

  • Git can be set up to use a keyring to store your GitHub personal access token. Search online for the details.

Prior to release

Add/drop Python versions

When adding or dropping Python versions, multiple config and CI files need to be edited in addition to changing the minimum version in pyproject.toml. Make these changes in an ordinary PR against main and backport if necessary. We currently release wheels for new Python versions after the first Python RC once manylinux and cibuildwheel support that new Python version.

Backport pull requests

Changes that have been marked for this release must be backported to the maintenance/2.4.x branch.

Update 2.4.0 milestones

Look at the issues/prs with 2.4.0 milestones and either push them off to a later version, or maybe remove the milestone. You may need to add a milestone.

Check the numpy-release repo

... (truncated)

Commits
  • 5e1d03f Merge pull request #31863 from charris/prepare-2.5.1
  • ad0b66b REL: Prepare for the NumPy 2.5.1 release.
  • 9df8516 Merge pull request #31858 from charris/backport-31688
  • 4dee265 Merge pull request #31857 from charris/backport-31775
  • dc8d553 Merge pull request #31856 from charris/backport-31846
  • 67cb4a8 fix:Signed integer overflow in datetime.c (#31688)
  • baa2589 TST: Clean up imports, formatting, and assertions
  • 2fe5ba4 TEST: Refactor tests to use np.testing.assert_raises_regex per review
  • bb46581 MAINT: Remove deprecated Python recursion fix
  • 8f34214 MAINT: Move SeedSequence recursion guard to C-layer and add tests
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Issue related to libraries we depend on and how we interface with them run_benchmarks Run timing benchmarks on this PR against current master branch skip_changelog No need to update changelog on this PR labels Jul 9, 2026
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Memory benchmark result

|               Test Name                |      %Δ      |    Master (MB)     |      PR (MB)       |    Δ (MB)    |    Time PR (s)     |  Time Master (s)   |
| -------------------------------------- | ------------ | ------------------ | ------------------ | ------------ | ------------------ | ------------------ |
  test_objective_jac_w7x                 |    3.46 %    |     3.887e+03      |     4.021e+03      |    134.36    |       33.37        |       29.84        |
  test_proximal_jac_w7x_with_eq_update   |    1.96 %    |     6.493e+03      |     6.620e+03      |    127.04    |       157.20       |       154.57       |
  test_proximal_freeb_jac                |    0.39 %    |     1.332e+04      |     1.337e+04      |    51.36     |       81.44        |       81.14        |
  test_proximal_freeb_jac_blocked        |   -0.15 %    |     7.648e+03      |     7.637e+03      |    -11.41    |       70.89        |       70.89        |
  test_proximal_freeb_jac_batched        |   -0.21 %    |     7.674e+03      |     7.658e+03      |    -16.23    |       69.81        |       71.20        |
  test_proximal_jac_ripple               |   -4.84 %    |     3.599e+03      |     3.425e+03      |   -174.02    |       55.67        |       55.87        |
  test_proximal_jac_ripple_bounce1d      |    0.56 %    |     3.728e+03      |     3.749e+03      |    20.74     |       68.42        |       71.25        |
  test_eq_solve                          |   -2.22 %    |     1.969e+03      |     1.925e+03      |    -43.70    |       57.98        |       59.30        |

For the memory plots, go to the summary of Memory Benchmarks workflow and download the artifact.

@codecov

codecov Bot commented Jul 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.32%. Comparing base (24aa7b9) to head (e7d7045).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2261      +/-   ##
==========================================
- Coverage   94.32%   94.32%   -0.01%     
==========================================
  Files         101      101              
  Lines       28866    28866              
==========================================
- Hits        27228    27227       -1     
- Misses       1638     1639       +1     

see 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@YigitElma YigitElma requested review from a team, YigitElma, ddudt, dpanici, f0uriest, rahulgaur104 and unalmis and removed request for a team July 9, 2026 18:44
Updates the requirements on [numpy](https://github.com/numpy/numpy) to permit the latest version.
- [Release notes](https://github.com/numpy/numpy/releases)
- [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst)
- [Commits](numpy/numpy@v1.20.0...v2.5.1)

---
updated-dependencies:
- dependency-name: numpy
  dependency-version: 2.5.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/pip/numpy-gte-1.20.0-and-lte-2.5.1 branch from 5f57839 to a230957 Compare July 9, 2026 18:44
@github-actions

github-actions Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor
|             benchmark_name             |         dt(%)          |         dt(s)          |        t_new(s)        |        t_old(s)        | 
| -------------------------------------- | ---------------------- | ---------------------- | ---------------------- | ---------------------- |
 test_build_transform_fft_lowres         |     -0.86 +/- 3.42     | -7.13e-03 +/- 2.85e-02 |  8.26e-01 +/- 1.9e-02  |  8.33e-01 +/- 2.1e-02  |
 test_equilibrium_init_medres            |     +0.33 +/- 3.27     | +2.27e-02 +/- 2.22e-01 |  6.81e+00 +/- 1.0e-01  |  6.79e+00 +/- 2.0e-01  |
 test_equilibrium_init_highres           |     +3.65 +/- 5.61     | +2.80e-01 +/- 4.31e-01 |  7.96e+00 +/- 3.8e-01  |  7.68e+00 +/- 2.0e-01  |
 test_objective_compile_dshape_current   |     +0.36 +/- 2.00     | +1.45e-02 +/- 8.12e-02 |  4.07e+00 +/- 4.3e-02  |  4.05e+00 +/- 6.9e-02  |
 test_objective_compute_dshape_current   |     +3.75 +/- 12.95    | +2.50e-05 +/- 8.62e-05 |  6.91e-04 +/- 2.9e-05  |  6.66e-04 +/- 8.1e-05  |
 test_objective_jac_dshape_current       |     -2.37 +/- 26.31    | -5.99e-04 +/- 6.64e-03 |  2.46e-02 +/- 4.8e-03  |  2.52e-02 +/- 4.6e-03  |
 test_perturb_2                          |     +0.02 +/- 2.29     | +3.15e-03 +/- 4.49e-01 |  1.96e+01 +/- 4.3e-01  |  1.96e+01 +/- 1.4e-01  |
 test_proximal_jac_atf_with_eq_update    |     +0.58 +/- 0.93     | +7.18e-02 +/- 1.16e-01 |  1.25e+01 +/- 8.6e-02  |  1.24e+01 +/- 7.8e-02  |
 test_proximal_freeb_jac                 |     -0.71 +/- 3.21     | -3.31e-02 +/- 1.50e-01 |  4.63e+00 +/- 1.1e-01  |  4.66e+00 +/- 1.0e-01  |
 test_solve_fixed_iter_compiled          |     -0.92 +/- 2.76     | -6.23e-02 +/- 1.87e-01 |  6.71e+00 +/- 1.2e-01  |  6.77e+00 +/- 1.5e-01  |
 test_LinearConstraintProjection_build   |     -3.72 +/- 6.05     | -2.59e-01 +/- 4.21e-01 |  6.71e+00 +/- 1.3e-01  |  6.97e+00 +/- 4.0e-01  |
 test_objective_compute_ripple_bounce1d  |     -1.07 +/- 6.02     | -3.01e-03 +/- 1.69e-02 |  2.77e-01 +/- 9.7e-03  |  2.80e-01 +/- 1.4e-02  |
 test_objective_grad_ripple_bounce1d     |     -2.04 +/- 2.69     | -1.98e-02 +/- 2.61e-02 |  9.51e-01 +/- 2.0e-02  |  9.71e-01 +/- 1.6e-02  |
 test_build_transform_fft_midres         |     -2.03 +/- 6.69     | -1.54e-02 +/- 5.08e-02 |  7.44e-01 +/- 3.1e-02  |  7.59e-01 +/- 4.0e-02  |
 test_build_transform_fft_highres        |     -0.30 +/- 3.53     | -2.89e-03 +/- 3.43e-02 |  9.71e-01 +/- 2.5e-02  |  9.74e-01 +/- 2.3e-02  |
 test_equilibrium_init_lowres            |     +1.42 +/- 4.35     | +8.07e-02 +/- 2.47e-01 |  5.76e+00 +/- 1.8e-01  |  5.67e+00 +/- 1.7e-01  |
 test_objective_compile_atf              |     +4.67 +/- 5.20     | +2.28e-01 +/- 2.54e-01 |  5.12e+00 +/- 1.9e-01  |  4.89e+00 +/- 1.7e-01  |
 test_objective_compute_atf              |    +18.88 +/- 9.43     | +3.29e-04 +/- 1.64e-04 |  2.07e-03 +/- 1.3e-04  |  1.74e-03 +/- 9.4e-05  |
 test_objective_jac_atf                  |     +1.62 +/- 4.11     | +2.28e-02 +/- 5.77e-02 |  1.43e+00 +/- 4.0e-02  |  1.40e+00 +/- 4.2e-02  |
 test_perturb_1                          |     +3.13 +/- 3.47     | +3.83e-01 +/- 4.24e-01 |  1.26e+01 +/- 3.4e-01  |  1.22e+01 +/- 2.5e-01  |
 test_proximal_jac_atf                   |     +0.06 +/- 2.45     | +2.56e-03 +/- 1.02e-01 |  4.18e+00 +/- 6.1e-02  |  4.18e+00 +/- 8.2e-02  |
 test_proximal_freeb_compute             |     -1.32 +/- 4.00     | -1.43e-03 +/- 4.34e-03 |  1.07e-01 +/- 3.2e-03  |  1.08e-01 +/- 2.9e-03  |
 test_solve_fixed_iter                   |     +2.74 +/- 4.27     | +5.37e-01 +/- 8.37e-01 |  2.01e+01 +/- 6.5e-01  |  1.96e+01 +/- 5.3e-01  |
 test_objective_compute_ripple           |     +2.34 +/- 7.31     | +3.89e-03 +/- 1.22e-02 |  1.70e-01 +/- 5.6e-03  |  1.67e-01 +/- 1.1e-02  |
 test_objective_grad_ripple              |     +4.87 +/- 5.98     | +3.61e-02 +/- 4.43e-02 |  7.77e-01 +/- 2.6e-02  |  7.40e-01 +/- 3.6e-02  |

Github CI performance can be noisy. When evaluating the benchmarks, developers should take this into account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Issue related to libraries we depend on and how we interface with them run_benchmarks Run timing benchmarks on this PR against current master branch skip_changelog No need to update changelog on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant