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
.travis.yml # for cibuildwheel aarch64 builds
setup.py # for classifier and minimum version check.
Make these changes in an ordinary PR against main and backport if necessary.
Using the BLD: prefix (build label) for the commit summary will cause the
wheel builds to be run so that the changes will be tested, 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
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
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 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)
Bumps numpy from 2.0.1 to 2.1.2.
Release notes
Sourced from numpy's releases.
... (truncated)
Changelog
Sourced from numpy's changelog.
... (truncated)
Commits
f5afe3d
Merge pull request #27507 from charris/prepare-2.1.26b9ef48
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-2750309e9cd9
BUG: avoid segfault on bad arguments in ndarray.array_function06b4793
Merge pull request #27501 from charris/backport-27495364efb5
MAINT: Bump pypa/cibuildwheel from 2.21.1 to 2.21.2df0e261
Merge pull request #27484 from ngoldbaum/use-weak-defaultfa61bc6
Merge pull request #27481 from charris/backport-27472d6d06ae
Merge pull request #27480 from charris/backport-27475Dependabot 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