frouros
frouros copied to clipboard
Update numpy requirement from <2.2,>=1.26.3 to >=1.26.3,<2.3
Updates the requirements on numpy to permit the latest version.
Release notes
Sourced from numpy's releases.
2.2.0 (Dec 8, 2024)
NumPy 2.2.0 Release Notes
The NumPy 2.2.0 release is quick release that brings us back into sync with the usual twice yearly release cycle. There have been an number of small cleanups, as well as work bringing the new StringDType to completion and improving support for free threaded Python. Highlights are:
- New functions
matvecandvecmat, see below.- Many improved annotations.
- Improved support for the new StringDType.
- Improved support for free threaded Python
- Fixes for f2py
This release supports Python versions 3.10-3.13.
Deprecations
_add_newdoc_ufuncis now deprecated.ufunc.__doc__ = newdocshould be used instead.(gh-27735)
Expired deprecations
bool(np.array([]))and other empty arrays will now raise an error. Usearr.size > 0instead to check whether an array has no elements.(gh-27160)
Compatibility notes
numpy.covnow properly transposes single-row (2d array) design matrices whenrowvar=False. Previously, single-row design matrices would return a scalar in this scenario, which is not correct, so this is a behavior change and an array of the appropriate shape will now be returned.(gh-27661)
New Features
New functions for matrix-vector and vector-matrix products
Two new generalized ufuncs were defined:
numpy.matvec- matrix-vector product, treating the arguments as stacks of matrices and column vectors,
... (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.txtfiles 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
keyringapp 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
e7a123bMerge pull request #27928 from charris/prepare-2.2.0d97d071MAINT: Try fixing MacOS cirrus build failures. [wheel build]1ed7b67REL: Prepare for the NumPy 2.2.0 release [wheel build]fd9e7efMerge pull request #27916 from charris/backport-279152e0941fMAINT: Bump actions/cache from 4.1.2 to 4.2.0013656dMerge pull request #27912 from charris/backport-278777895ba6Merge pull request #27913 from charris/backport-27896ee8d1cdPERF: improve multithreaded ufunc scaling (#27896)77fff6bENH: Refactor__qualname__across API (#27877)b30a338Merge pull request #27911 from charris/backport-27891- 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)
📚 Documentation preview 📚: https://frouros--356.org.readthedocs.build/en/356/