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

chore(deps): bump numpy from 1.26.4 to 2.1.2 #189

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

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 14, 2024

Bumps numpy from 1.26.4 to 2.1.2.

Release notes

Sourced from numpy's releases.

2.1.2 (Oct 5, 2024)

NumPy 2.1.2 Release Notes

NumPy 2.1.2 is a maintenance release that fixes bugs and regressions discovered after the 2.1.1 release.

The Python versions supported by this release are 3.10-3.13.

Contributors

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

  • Charles Harris
  • Chris Sidebottom
  • Ishan Koradia +
  • João Eiras +
  • Katie Rust +
  • Marten van Kerkwijk
  • Matti Picus
  • Nathan Goldbaum
  • Peter Hawkins
  • Pieter Eendebak
  • Slava Gorloff +

Pull requests merged

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

  • #27333: MAINT: prepare 2.1.x for further development
  • #27400: BUG: apply critical sections around populating the dispatch cache
  • #27406: BUG: Stub out get_build_msvc_version if distutils.msvccompiler...
  • #27416: BUILD: fix missing include for std::ptrdiff_t for C++23 language...
  • #27433: BLD: pin setuptools to avoid breaking numpy.distutils
  • #27437: BUG: Allow unsigned shift argument for np.roll
  • #27439: BUG: Disable SVE VQSort
  • #27471: BUG: rfftn axis bug
  • #27479: BUG: Fix extra decref of PyArray_UInt8DType.
  • #27480: CI: use PyPI not scientific-python-nightly-wheels for CI doc...
  • #27481: MAINT: Check for SVE support on demand
  • #27484: BUG: initialize the promotion state to be weak
  • #27501: MAINT: Bump pypa/cibuildwheel from 2.20.0 to 2.21.2
  • #27506: BUG: avoid segfault on bad arguments in ndarray.__array_function__

Checksums

MD5

4aae28b7919b126485c1aaccee37a6ba  numpy-2.1.2-cp310-cp310-macosx_10_9_x86_64.whl
172614423a82ef73d8752ad8a59cbafc  numpy-2.1.2-cp310-cp310-macosx_11_0_arm64.whl

... (truncated)

Commits
  • f5afe3d Merge pull request #27507 from charris/prepare-2.1.2
  • 6b9ef48 REL: Prepare for the NumPy 2.1.2 release [wheel build]
  • 6d85a24 MAINT: Pin setuptools for Python < 3.12 [wheel build]
  • 7f327d8 Merge pull request #27506 from charris/backport-27503
  • 09e9cd9 BUG: avoid segfault on bad arguments in ndarray.array_function
  • 06b4793 Merge pull request #27501 from charris/backport-27495
  • 364efb5 MAINT: Bump pypa/cibuildwheel from 2.21.1 to 2.21.2
  • df0e261 Merge pull request #27484 from ngoldbaum/use-weak-default
  • fa61bc6 Merge pull request #27481 from charris/backport-27472
  • d6d06ae Merge pull request #27480 from charris/backport-27475
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR 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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Oct 14, 2024
@dependabot dependabot bot requested a review from saidsef October 14, 2024 18:48
@saidsef
Copy link
Owner

saidsef commented Oct 24, 2024

/code pr

Copy link
Owner

@saidsef saidsef left a comment

Choose a reason for hiding this comment

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

🤖
File: requirements.txt

Suggestions for Enhancements:

  1. Version Compatibility Check:

    • Ensure that the new version of numpy (2.1.2) is compatible with other dependencies, especially scikit-learn and scipy, as they often rely on specific versions of numpy.
  2. Commented Dependency:

    • The scipy dependency is commented out. If it is not needed, consider removing it to keep the file clean. If it is needed, ensure its version is compatible with numpy 2.1.2.

Code Example for Compatibility Check:

import numpy as np
import sklearn
import scipy

print("Numpy version:", np.__version__)
print("Scikit-learn version:", sklearn.__version__)
print("Scipy version:", scipy.__version__)

Comments:

  • The update from numpy 1.26.4 to 2.1.2 is a major version change, which may include breaking changes. It is crucial to run tests to ensure that the application functions correctly with the new version.
  • No issues were found in the modified lines, but ensure thorough testing is conducted.

> gpt-4o [pr | 0]

@dependabot dependabot bot force-pushed the dependabot-pip-numpy-2.1.2 branch from d7445e1 to 160b298 Compare October 27, 2024 18:24
Bumps [numpy](https://github.com/numpy/numpy) from 1.26.4 to 2.1.2.
- [Release notes](https://github.com/numpy/numpy/releases)
- [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst)
- [Commits](numpy/numpy@v1.26.4...v2.1.2)

---
updated-dependencies:
- dependency-name: numpy
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot-pip-numpy-2.1.2 branch from 160b298 to a61f43d Compare October 28, 2024 23:30
@saidsef
Copy link
Owner

saidsef commented Oct 30, 2024

/code pr

Copy link
Owner

@saidsef saidsef left a comment

Choose a reason for hiding this comment

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

🤖
This PR updates NumPy from version 1.26.4 to 2.1.2, which is a major version bump. Here's my review:

⚠️ Caution Required

  • This is a major version upgrade (1.x to 2.x) which may introduce breaking changes
  • NumPy 2.0+ includes significant changes in array behaviour and API modifications
  • Could affect compatibility with scikit-learn 1.5.2 which is also in requirements.txt

Recommendations:

  1. Test thoroughly as NumPy 2.x has backwards-incompatible changes
  2. Verify scikit-learn 1.5.2 compatibility with NumPy 2.1.2
  3. Consider reviewing the NumPy 2.0 migration guide before merging

The change itself is straightforward, but given the major version bump, this requires careful testing before deployment.

> claude-3-5-sonnet-20241022 [pr | 1]

Copy link
Contributor Author

dependabot bot commented on behalf of github Nov 4, 2024

A newer version of numpy exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant