Skip to content

Commit

Permalink
Adjust numpy dependency (#372)
Browse files Browse the repository at this point in the history
Updates the requirements on [numpy](https://github.com/numpy/numpy) to
permit the latest version.
Updates `numpy` to 2.1.0
<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>2.1.0 (Aug 18, 2024)</h2>
<h1>NumPy 2.1.0 Release Notes</h1>
<p>NumPy 2.1.0 provides support for the upcoming Python 3.13 release and
drops support for Python 3.9. In addition to the usual bug fixes and
updated Python support, it helps get us back into our usual release
cycle after the extended development of 2.0. The highlights for this
release are:</p>
<ul>
<li>Support for the array-api 2023.12 standard.</li>
<li>Support for Python 3.13.</li>
<li>Preliminary support for free threaded Python 3.13.</li>
</ul>
<p>Python versions 3.10-3.13 are supported in this release.</p>
<h2>New functions</h2>
<h3>New function <code>numpy.unstack</code></h3>
<p>A new function <code>np.unstack(array, axis=...)</code> was added,
which splits an
array into a tuple of arrays along an axis. It serves as the inverse of
[numpy.stack]{.title-ref}.</p>
<p>(<a
href="https://redirect.github.com/numpy/numpy/pull/26579">gh-26579</a>)</p>
<h2>Deprecations</h2>
<ul>
<li>
<p>The <code>fix_imports</code> keyword argument in
<code>numpy.save</code> is deprecated.
Since NumPy 1.17, <code>numpy.save</code> uses a pickle protocol that no
longer
supports Python 2, and ignored <code>fix_imports</code> keyword. This
keyword
is kept only for backward compatibility. It is now deprecated.</p>
<p>(<a
href="https://redirect.github.com/numpy/numpy/pull/26452">gh-26452</a>)</p>
</li>
<li>
<p>Passing non-integer inputs as the first argument of
[bincount]{.title-ref} is now deprecated, because such inputs are
silently cast to integers with no warning about loss of precision.</p>
<p>(<a
href="https://redirect.github.com/numpy/numpy/pull/27076">gh-27076</a>)</p>
</li>
</ul>
<h2>Expired deprecations</h2>
<ul>
<li>
<p>Scalars and 0D arrays are disallowed for <code>numpy.nonzero</code>
and
<code>numpy.ndarray.nonzero</code>.</p>
<p>(<a
href="https://redirect.github.com/numpy/numpy/pull/26268">gh-26268</a>)</p>
</li>
<li>
<p><code>set_string_function</code> internal function was removed and
<code>PyArray_SetStringFunction</code> was stubbed out.</p>
</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/numpy/numpy/commit/2f7fe64b8b6d7591dd208942f1cc74473d5db4cb"><code>2f7fe64</code></a>
Merge pull request <a
href="https://redirect.github.com/numpy/numpy/issues/27236">#27236</a>
from charris/prepare-2.1.0</li>
<li><a
href="https://github.com/numpy/numpy/commit/b6f434f852e9d1ed4f7de9a3a465b38171d54a61"><code>b6f434f</code></a>
REL: Prepare for the NumPy 2.1.0 release [wheel build]</li>
<li><a
href="https://github.com/numpy/numpy/commit/3cf93948797fb81fc251c26cb90d6c44f8374c54"><code>3cf9394</code></a>
Merge pull request <a
href="https://redirect.github.com/numpy/numpy/issues/27234">#27234</a>
from charris/backport-25984</li>
<li><a
href="https://github.com/numpy/numpy/commit/7443dcc915fea1e905f354da511e9e60da82e19c"><code>7443dcc</code></a>
Merge pull request <a
href="https://redirect.github.com/numpy/numpy/issues/27233">#27233</a>
from charris/backport-27223</li>
<li><a
href="https://github.com/numpy/numpy/commit/85b1cab2ad5f418cca485042478622ce13a497a7"><code>85b1cab</code></a>
BUG: Allow fitting of degree zero polynomials with Polynomial.fit</li>
<li><a
href="https://github.com/numpy/numpy/commit/395a81dee5be52b2acff817e6f16652d23181fc3"><code>395a81d</code></a>
DOC: reword discussion about shared arrays to hopefully be clearer</li>
<li><a
href="https://github.com/numpy/numpy/commit/5af2e965a02137cd05706d8d395d8263f395f7c7"><code>5af2e96</code></a>
Move NUMUSERTYPES thread safety discussion to legacy DType API docs</li>
<li><a
href="https://github.com/numpy/numpy/commit/d902c24b684e8ba5370a160a375beaa77bae5032"><code>d902c24</code></a>
DOC: add docs on thread safety in NumPy</li>
<li><a
href="https://github.com/numpy/numpy/commit/c080180fabc1f8fcde14c27e3df2de8fcbe7cf03"><code>c080180</code></a>
Merge pull request <a
href="https://redirect.github.com/numpy/numpy/issues/27229">#27229</a>
from charris/backport-27226</li>
<li><a
href="https://github.com/numpy/numpy/commit/44ce7e8f7b43c1045ad78eecaac0435fff491fae"><code>44ce7e8</code></a>
BUG: Fix <code>PyArray_ZeroContiguousBuffer</code> (resize) with struct
dtypes</li>
<li>Additional commits viewable in <a
href="https://github.com/numpy/numpy/compare/v0.2.0...v2.1.0">compare
view</a></li>
</ul>
</details>
<br />


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-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

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 <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Nils Quetschlich <nils.quetschlich@tum.de>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nils Quetschlich <nils.quetschlich@tum.de>
  • Loading branch information
dependabot[bot] and nquetschlich authored Aug 30, 2024
1 parent 3497eb3 commit 2ba0ab8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ dependencies = [
"packaging>=21.0",
"tqdm>=4.29.0",
"joblib>=1.3.0",
"numpy<2.0.0" # some of our dependencies are not yet compatible with numpy 2.0
"numpy>=1.26; python_version >= '3.12'",
"numpy>=1.24; python_version >= '3.11'",
"numpy>=1.22",
]


Expand Down

0 comments on commit 2ba0ab8

Please sign in to comment.