build(deps): bump numpy from 2.3.5 to 2.4.0
Type: Pull Request
State: Open
Association: Unknown
Comments: 1
(6 months ago)
(6 months ago)
dependencies
Bumps numpy from 2.3.5 to 2.4.0.
Release notes
Sourced from numpy's releases.
2.4.0 (Dec 20, 2025)
NumPy 2.4.0 Release Notes
The NumPy 2.4.0 release continues the work to improve free threaded Python support, user dtypes implementation, and annotations. There are many expired deprecations and bug fixes as well.
This release supports Python versions 3.11-3.14
Highlights
Apart from annotations and
same_valuekwarg, the 2.4 highlights are mostly of interest to downstream developers. They should help in implementing new user dtypes.
- Many annotation improvements. In particular, runtime signature introspection.
- New
castingkwarg'same_value'for casting by value.- New
PyUFunc_AddLoopsFromSpecfunction that can be used to add user sort loops using theArrayMethodAPI.- New
__numpy_dtype__protocol.Deprecations
Setting the
stridesattribute is deprecatedSetting the strides attribute is now deprecated since mutating an array is unsafe if an array is shared, especially by multiple threads. As an alternative, you can create a new view (no copy) via:
np.lib.stride_tricks.strided_window_viewif applicable,np.lib.stride_tricks.as_stridedfor the general case,- or the
np.ndarrayconstructor (bufferis the original array) for a light-weight version.(gh-28925)
Positional
outargument tonp.maximum,np.minimumis deprecatedPassing the output array
outpositionally tonumpy.maximumandnumpy.minimumis deprecated. For example,np.maximum(a, b, c)will emit a deprecation warning, sincecis treated as the output buffer rather than a third input.Always pass the output with the keyword form, e.g.
np.maximum(a, b, out=c). This makes intent clear and simplifies type annotations.(gh-29052)
align=must be passed as boolean tonp.dtype()
... (truncated)
Changelog
Sourced from numpy's changelog.
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
The things to check are the
cibuildwheelversion in.github/workflows/wheels.ymland theopenblasversions inopenblas_requirements.txt.Make a release PR
Four documents usually need to be updated or created for the release PR:
- The changelog
- The release notes
- The
.mailmapfile- The
pyproject.tomlfileThese changes should be made in an ordinary PR against the maintenance branch. Other small, miscellaneous fixes may be part of this PR. The commit message might be something like::
REL: Prepare for the NumPy 2.4.0 release
- Create 2.4.0-changelog.rst.
- Update 2.4.0-notes.rst.
- Update .mailmap.
- Update pyproject.toml
Set the release version
Check the
pyproject.tomlfile and set the release version and update the classifier if needed::$ gvim pyproject.tomlCheck the
doc/source/release.rstfilemake sure that the release notes have an entry in the
release.rstfile::
... (truncated)
Commits
c5ab79cMerge pull request #30487 from charris/prepare-2.4.0.205e379aREL: Prepare for the NumPy 2.4.0 release (2)485f1c4REL: Prepare for the NumPy 2.4.0 release (1) (#30486)c683481REL: Prepare for the NumPy 2.4.0 release (#30439)11d9ed2Merge pull request #30459 from charris/backport-304562a17ddbTYP: restoregeneric.__hash__(#30456)d04a429Merge pull request #30432 from charris/backport-30426f94a148fix more data races in mtrand.pyx (#30426)06a9d42Merge pull request #30420 from charris/backport-3041830819cdMerge pull request #30419 from charris/backport-30373- 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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Package Dependencies
Technical Details
| ID: | 12220532 |
| UUID: | 3755535869 |
| Node ID: | PR_kwDOP8w9Q866O_HL |
| Host: | GitHub |
| Repository: | gemmadanks/python-project-template |