Bump numpy from 2.0.0 to 2.2.1
Bumps numpy from 2.0.0 to 2.2.1.
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>
withextern "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 nditerChecksums
... (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 allowingNone
in operand sequence passed tonditer
-
554739e
TYP: allowNone
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 commands
You can trigger Dependabot actions by commenting on this MR
-
$dependabot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts