The NumPy 2.5.3 is a patch release that fixes bugs discovered after the 2.5.2
release. Apart from the usual bug and maintenance work, there are a number of
StringDType related fixes for problems discovered during the ongoing string
work in the main branch.
This release supports Python versions 3.12-3.15
Changes
Casting a fixed-width byte string array (np.bytes_) to StringDType
now raises TypeError when the bytes are not valid UTF-8. Previously the
invalid bytes were stored as-is and later caused undefined behavior in
string operations.
MaskedArray._fill_value would become stale when ufuncs that change dtype
left the result holding a fill_value typed for the old dtype. The mismatch
was silent until something later called _check_fill_value, such as
.view(), and then a TypeError would be raised. Now, when the copied
fill_value is no longer valid for the new dtype, fall back to the
default fill_value for that dtype instead of propagating the stale value.
This may raise a ComplexWarning if the fill_value is complex and the
new dtype is real.
This is a walkthrough of the NumPy 2.4.0 release on Linux, which will be the
first feature release using the numpy/numpy-release <https://github.com/numpy/numpy-release>__ repository.
The commands can be copied into the command line, but be sure to replace 2.4.0
with 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.
Prior to release
Add/drop Python versions
When adding or dropping Python versions, multiple config and CI files need to
be edited in addition to changing the minimum version in pyproject.toml.
Make these changes in an ordinary PR against main and backport if necessary.
We currently release wheels for new Python versions after the first Python RC
once manylinux and cibuildwheel support that new Python version.
Backport pull requests
Changes that have been marked for this release must be backported to the
maintenance/2.4.x branch.
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
... (truncated)
Commits
dd88c0c Merge pull request #32511 from charris/prepare-2.5.3
Updates the requirements on [numpy](https://github.com/numpy/numpy) to permit the latest version.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/numpy/numpy/releases">numpy's releases</a>.</em></p>
<blockquote>
<h2>v2.5.3 (Sep 6, 2026)</h2>
<h1>NumPy 2.5.3 Release Notes</h1>
<p>The NumPy 2.5.3 is a patch release that fixes bugs discovered after the 2.5.2
release. Apart from the usual bug and maintenance work, there are a number of
StringDType related fixes for problems discovered during the ongoing string
work in the main branch.</p>
<p>This release supports Python versions 3.12-3.15</p>
<h2>Changes</h2>
<ul>
<li>
<p>Casting a fixed-width byte string array (<code>np.bytes_</code>) to <code>StringDType</code>
now raises <code>TypeError</code> when the bytes are not valid UTF-8. Previously the
invalid bytes were stored as-is and later caused undefined behavior in
string operations.</p>
<p>(<a href="https://redirect.github.com/numpy/numpy/pull/32296">gh-32296</a>)</p>
</li>
<li>
<p><code>MaskedArray._fill_value</code> would become stale when ufuncs that change dtype
left the result holding a fill_value typed for the old dtype. The mismatch
was silent until something later called <code>_check_fill_value</code>, such as
<code>.view()</code>, and then a <code>TypeError</code> would be raised. Now, when the copied
fill_value is no longer valid for the new dtype, fall back to the
default fill_value for that dtype instead of propagating the stale value.
This may raise a <code>ComplexWarning</code> if the fill_value is complex and the
new dtype is real.</p>
<p>(<a href="https://redirect.github.com/numpy/numpy/pull/32423">gh-32423</a>)</p>
</li>
</ul>
<h2>Contributors</h2>
<p>A total of 9 people contributed to this release. People with a "+" by their
names contributed a patch for the first time.</p>
<ul>
<li>Charles Harris</li>
<li>Iason Krommydas</li>
<li>James Davies +</li>
<li>Joren Hammudoglu</li>
<li>Maanas Arora</li>
<li>Matti Picus</li>
<li>Nathan Goldbaum</li>
<li>Shikhar Goel +</li>
<li>Yeonho Kim +</li>
</ul>
<h2>Pull requests merged</h2>
<p>A total of 27 pull requests were merged for this release.</p>
<ul>
<li><a href="https://redirect.github.com/numpy/numpy/pull/32235">#32235</a>: MAINT: Prepare 2.5.x for further development</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst">numpy's changelog</a>.</em></p>
<blockquote>
<p>This is a walkthrough of the NumPy 2.4.0 release on Linux, which will be the
first feature release using the <code>numpy/numpy-release <https://github.com/numpy/numpy-release></code>__ repository.</p>
<p>The commands can be copied into the command line, but be sure to replace 2.4.0
with the correct version. This should be read together with the
:ref:<code>general release guide <prepare_release></code>.</p>
<h1>Facility preparation</h1>
<p>Before beginning to make a release, use the <code>requirements/*_requirements.txt</code> 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:</p>
<ul>
<li>Git can be set up to use a keyring to store your GitHub personal access token.
Search online for the details.</li>
</ul>
<h1>Prior to release</h1>
<h2>Add/drop Python versions</h2>
<p>When adding or dropping Python versions, multiple config and CI files need to
be edited in addition to changing the minimum version in <code>pyproject.toml</code>.
Make these changes in an ordinary PR against main and backport if necessary.
We currently release wheels for new Python versions after the first Python RC
once manylinux and cibuildwheel support that new Python version.</p>
<h2>Backport pull requests</h2>
<p>Changes that have been marked for this release must be backported to the
maintenance/2.4.x branch.</p>
<h2>Update 2.4.0 milestones</h2>
<p>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.</p>
<h2>Check the numpy-release repo</h2>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/numpy/numpy/commit/dd88c0c19b54ad9ed3533224221285bf0873249a"><code>dd88c0c</code></a> Merge pull request <a href="https://redirect.github.com/numpy/numpy/issues/32511">#32511</a> from charris/prepare-2.5.3</li>
<li><a href="https://github.com/numpy/numpy/commit/edcac6acc392f4010933ee83e8a4769a7cfe92c5"><code>edcac6a</code></a> REL: Prepare for the NumPy 2.5.3 release</li>
<li><a href="https://github.com/numpy/numpy/commit/fd4d908aff89773ead13f7c6a0ab31153f14439e"><code>fd4d908</code></a> Merge pull request <a href="https://redirect.github.com/numpy/numpy/issues/32509">#32509</a> from charris/backport-32496</li>
<li><a href="https://github.com/numpy/numpy/commit/65bb1da13d0ee784be84d173b86784f0d64bdaca"><code>65bb1da</code></a> BUG: fix crash in ufunc.resolve_dtypes with a Python scalar type (<a href="https://redirect.github.com/numpy/numpy/issues/32496">#32496</a>)</li>
<li><a href="https://github.com/numpy/numpy/commit/294956e85dfaea149aada1278c2ed6be0f6f28c8"><code>294956e</code></a> Merge pull request <a href="https://redirect.github.com/numpy/numpy/issues/32506">#32506</a> from charris/backport-32503</li>
<li><a href="https://github.com/numpy/numpy/commit/26428d9a3f5ab4f604b326347e3a9c6dcc00c1cb"><code>26428d9</code></a> DOC: fix scipy docs links in intersphinx mapping (<a href="https://redirect.github.com/numpy/numpy/issues/32507">#32507</a>)</li>
<li><a href="https://github.com/numpy/numpy/commit/5fab1cbc6aa9e119d9f931243a56c6fbca989476"><code>5fab1cb</code></a> DOC: use static scipy doc site for intershpinx (<a href="https://redirect.github.com/numpy/numpy/issues/32503">#32503</a>)</li>
<li><a href="https://github.com/numpy/numpy/commit/7beed2f7e9a24e493a04ff7e2eb1db0d7f9c50e6"><code>7beed2f</code></a> Merge pull request <a href="https://redirect.github.com/numpy/numpy/issues/32481">#32481</a> from ngoldbaum/stringdtype-backport</li>
<li><a href="https://github.com/numpy/numpy/commit/8972f70798a2ba1bb4557157982fd6001906f993"><code>8972f70</code></a> Merge pull request <a href="https://redirect.github.com/numpy/numpy/issues/32478">#32478</a> from charris/backport-32466</li>
<li><a href="https://github.com/numpy/numpy/commit/ab1b58902a868d4151ef3cf8dbeb91d8a1924fa4"><code>ab1b589</code></a> Merge pull request <a href="https://redirect.github.com/numpy/numpy/issues/32477">#32477</a> from charris/backport-32423</li>
<li>Additional commits viewable in <a href="https://github.com/numpy/numpy/compare/v1.24.0...v2.5.3">compare view</a></li>
</ul>
</details>
<br />
---
GitHub 来源:https://github.com/xixu-me/scps/pull/9
作者:dependabot[bot] · 创建时间:2026-10-08T07:31:03Z
GitHub PR 状态:已合并,合并提交 67d4b515361eee3654b938dd95852e16f0779786
<!-- github-archive:4783432646 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Updates the requirements on numpy to permit the latest version.
Release notes
Sourced from numpy's releases.
... (truncated)
Changelog
Sourced from numpy's changelog.
... (truncated)
Commits
dd88c0cMerge pull request #32511 from charris/prepare-2.5.3edcac6aREL: Prepare for the NumPy 2.5.3 releasefd4d908Merge pull request #32509 from charris/backport-3249665bb1daBUG: fix crash in ufunc.resolve_dtypes with a Python scalar type (#32496)294956eMerge pull request #32506 from charris/backport-3250326428d9DOC: fix scipy docs links in intersphinx mapping (#32507)5fab1cbDOC: use static scipy doc site for intershpinx (#32503)7beed2fMerge pull request #32481 from ngoldbaum/stringdtype-backport8972f70Merge pull request #32478 from charris/backport-32466ab1b589Merge pull request #32477 from charris/backport-32423GitHub 来源:https://github.com/xixu-me/scps/pull/9
作者:dependabot[bot] · 创建时间:2026-10-08T07:31:03Z
GitHub PR 状态:已合并,合并提交
67d4b515363b9b6b63d8to8930ea7836Pull request closed