Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update numpy requirement from <=2.2.0,>=1.20.0 to >=1.20.0,<=2.2.1 #1493

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 23, 2024

Updates the requirements on numpy to permit the latest version.

Release notes

Sourced from numpy's releases.

2.2.1 (DEC 21, 2024)

NumPy 2.2.1 Release Notes

NumPy 2.2.1 is a patch release following 2.2.0. It fixes bugs found after the 2.2.0 release and has several maintenance pins to work around upstream changes.

There was some breakage in downstream projects following the 2.2.0 release due to updates to NumPy typing. Because of problems due to MyPy defects, we recommend using basedpyright for type checking, it can be installed from PyPI. The Pylance extension for Visual Studio Code is also based on Pyright. Problems that persist when using basedpyright should be reported as issues on the NumPy github site.

This release supports Python 3.10-3.13.

Contributors

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

  • Charles Harris
  • Joren Hammudoglu
  • Matti Picus
  • Nathan Goldbaum
  • Peter Hawkins
  • Simon Altrogge
  • Thomas A Caswell
  • Warren Weckesser
  • Yang Wang +

Pull requests merged

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

  • #27935: MAINT: Prepare 2.2.x for further development
  • #27950: TEST: cleanups
  • #27958: BUG: fix use-after-free error in npy_hashtable.cpp (#27955)
  • #27959: BLD: add missing include
  • #27982: BUG:fix compile error libatomic link test to meson.build
  • #27990: TYP: Fix falsely rejected value types in ndarray.__setitem__
  • #27991: MAINT: Don't wrap #include <Python.h> with extern "C"
  • #27993: BUG: Fix segfault in stringdtype lexsort
  • #28006: MAINT: random: Tweak module code in mtrand.pyx to fix a Cython...
  • #28007: BUG: Cython API was missing NPY_UINTP.
  • #28021: CI: pin scipy-doctest to 1.5.1
  • #28044: TYP: allow None in operand sequence of nditer

Checksums

... (truncated)

Changelog

Sourced from numpy's changelog.

This is a walkthrough of the NumPy 2.1.0 release on Linux, modified for building with GitHub Actions and cibuildwheels and uploading to the anaconda.org staging repository for NumPy <https://anaconda.org/multibuild-wheels-staging/numpy>_. The commands can be copied into the command line, but be sure to replace 2.1.0 by 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.
  • You can use the keyring app to store the PyPI password for twine. See the online twine documentation for details.

Prior to release

Add/drop Python versions

When adding or dropping Python versions, three files need to be edited:

  • .github/workflows/wheels.yml # for github cibuildwheel
  • tools/ci/cirrus_wheels.yml # for cibuildwheel aarch64/arm64 builds
  • pyproject.toml # for classifier and minimum version check.

Make these changes in an ordinary PR against main and backport if necessary. Add [wheel build] at the end of the title line of the commit summary so that wheel builds will be run to test the changes. We currently release wheels for new Python versions after the first Python rc once manylinux and cibuildwheel support it. For Python 3.11 we were able to release within a week of the rc1 announcement.

Backport pull requests

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

Update 2.1.0 milestones

... (truncated)

Commits
  • 7469245 Merge pull request #28047 from charris/prepare-2.2.1
  • acb051e REL: Prepare for the NumPy 2.2.1 release [wheel build]
  • 28a091a Merge pull request #28044 from charris/backport-28039
  • 723605b TST: Add test for allowing None in operand sequence passed to nditer
  • 554739e TYP: allow None in operand sequence of nditer
  • 31bc4c8 Merge pull request #28021 from charris/backport-28020
  • 32f52a3 CI: pin scipy-doctest to 1.5.1 (#28020)
  • 6219aeb Merge pull request #28007 from charris/backport-28005
  • eb7071c Merge pull request #28006 from charris/backport-28003
  • 4f82c32 BUG: Cython API was missing NPY_UINTP.
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

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.2.1)

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

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Issue related to libraries we depend on and how we interface with them python Pull requests that update Python code labels Dec 23, 2024
@YigitElma YigitElma added the skip_changelog No need to update changelog on this PR label Dec 23, 2024
Copy link

codecov bot commented Dec 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.60%. Comparing base (9998c7c) to head (2f69f00).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1493   +/-   ##
=======================================
  Coverage   95.60%   95.60%           
=======================================
  Files          98       98           
  Lines       25417    25417           
=======================================
  Hits        24301    24301           
  Misses       1116     1116           

see 2 files with indirect coverage changes

Copy link
Contributor

github-actions bot commented Dec 23, 2024

|             benchmark_name             |         dt(%)          |         dt(s)          |        t_new(s)        |        t_old(s)        | 
| -------------------------------------- | ---------------------- | ---------------------- | ---------------------- | ---------------------- |
 test_build_transform_fft_lowres         |     -1.56 +/- 6.86     | -8.61e-03 +/- 3.78e-02 |  5.43e-01 +/- 3.3e-02  |  5.52e-01 +/- 1.9e-02  |
 test_equilibrium_init_medres            |     -1.84 +/- 2.61     | -8.03e-02 +/- 1.14e-01 |  4.29e+00 +/- 9.6e-02  |  4.37e+00 +/- 6.2e-02  |
 test_equilibrium_init_highres           |     +3.39 +/- 3.05     | +1.89e-01 +/- 1.69e-01 |  5.75e+00 +/- 1.3e-01  |  5.56e+00 +/- 1.1e-01  |
 test_objective_compile_dshape_current   |     +0.05 +/- 2.64     | +2.01e-03 +/- 1.05e-01 |  4.00e+00 +/- 8.3e-02  |  4.00e+00 +/- 6.5e-02  |
 test_objective_compute_dshape_current   |     -4.84 +/- 3.96     | -2.60e-04 +/- 2.13e-04 |  5.11e-03 +/- 9.9e-05  |  5.37e-03 +/- 1.9e-04  |
 test_objective_jac_dshape_current       |     +3.66 +/- 7.15     | +1.58e-03 +/- 3.08e-03 |  4.46e-02 +/- 2.2e-03  |  4.30e-02 +/- 2.2e-03  |
 test_perturb_2                          |     -0.62 +/- 2.06     | -1.27e-01 +/- 4.22e-01 |  2.03e+01 +/- 3.6e-01  |  2.05e+01 +/- 2.3e-01  |
 test_proximal_freeb_jac                 |     +0.92 +/- 1.72     | +6.86e-02 +/- 1.28e-01 |  7.51e+00 +/- 8.8e-02  |  7.45e+00 +/- 9.3e-02  |
 test_solve_fixed_iter                   |     -0.94 +/- 3.11     | -3.07e-01 +/- 1.01e+00 |  3.23e+01 +/- 6.4e-01  |  3.26e+01 +/- 7.8e-01  |
 test_LinearConstraintProjection_build   |     -1.68 +/- 4.61     | -1.82e-01 +/- 4.99e-01 |  1.07e+01 +/- 3.6e-01  |  1.08e+01 +/- 3.5e-01  |
 test_build_transform_fft_midres         |     +1.30 +/- 4.06     | +8.01e-03 +/- 2.50e-02 |  6.24e-01 +/- 2.3e-02  |  6.16e-01 +/- 1.0e-02  |
 test_build_transform_fft_highres        |     +0.40 +/- 2.97     | +3.89e-03 +/- 2.92e-02 |  9.87e-01 +/- 2.1e-02  |  9.83e-01 +/- 2.0e-02  |
 test_equilibrium_init_lowres            |     +0.50 +/- 2.65     | +1.96e-02 +/- 1.04e-01 |  3.96e+00 +/- 8.5e-02  |  3.94e+00 +/- 6.1e-02  |
 test_objective_compile_atf              |     -0.41 +/- 2.30     | -3.35e-02 +/- 1.90e-01 |  8.25e+00 +/- 1.4e-01  |  8.28e+00 +/- 1.2e-01  |
 test_objective_compute_atf              |     +3.80 +/- 3.26     | +6.05e-04 +/- 5.20e-04 |  1.65e-02 +/- 4.0e-04  |  1.59e-02 +/- 3.3e-04  |
 test_objective_jac_atf                  |     +0.27 +/- 3.36     | +5.27e-03 +/- 6.63e-02 |  1.98e+00 +/- 3.5e-02  |  1.97e+00 +/- 5.6e-02  |
 test_perturb_1                          |     -0.78 +/- 2.22     | -1.18e-01 +/- 3.36e-01 |  1.50e+01 +/- 2.0e-01  |  1.52e+01 +/- 2.7e-01  |
 test_proximal_jac_atf                   |     +0.16 +/- 0.82     | +1.30e-02 +/- 6.83e-02 |  8.34e+00 +/- 5.6e-02  |  8.33e+00 +/- 4.0e-02  |
 test_proximal_freeb_compute             |     -0.18 +/- 1.13     | -3.52e-04 +/- 2.27e-03 |  2.00e-01 +/- 1.8e-03  |  2.00e-01 +/- 1.4e-03  |
 test_solve_fixed_iter_compiled          |     +0.21 +/- 1.17     | +4.29e-02 +/- 2.42e-01 |  2.08e+01 +/- 1.4e-01  |  2.07e+01 +/- 2.0e-01  |

@YigitElma YigitElma requested review from a team, rahulgaur104, f0uriest, ddudt, dpanici, kianorr, sinaatalay and unalmis and removed request for a team December 23, 2024 21:55
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 python Pull requests that update Python code 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