Skip to content

Bump numpy to 2.4.3, ase to 3.28.0, scipy to 1.17.1 and structuretoolkit to 0.0.41#605

Open
dependabot[bot] wants to merge 13 commits intomainfrom
dependabot/pip/numpy-2.4.0
Open

Bump numpy to 2.4.3, ase to 3.28.0, scipy to 1.17.1 and structuretoolkit to 0.0.41#605
dependabot[bot] wants to merge 13 commits intomainfrom
dependabot/pip/numpy-2.4.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Jan 5, 2026

Bumps numpy from 2.3.5 to 2.4.0.

Release notes

Sourced from numpy's releases.

2.4.0 (Dec 20, 2025)

NumPy 2.4.0 Release Notes

The NumPy 2.4.0 release continues the work to improve free threaded Python support, user dtypes implementation, and annotations. There are many expired deprecations and bug fixes as well.

This release supports Python versions 3.11-3.14

Highlights

Apart from annotations and same_value kwarg, the 2.4 highlights are mostly of interest to downstream developers. They should help in implementing new user dtypes.

  • Many annotation improvements. In particular, runtime signature introspection.
  • New casting kwarg 'same_value' for casting by value.
  • New PyUFunc_AddLoopsFromSpec function that can be used to add user sort loops using the ArrayMethod API.
  • New __numpy_dtype__ protocol.

Deprecations

Setting the strides attribute is deprecated

Setting the strides attribute is now deprecated since mutating an array is unsafe if an array is shared, especially by multiple threads. As an alternative, you can create a new view (no copy) via:

  • np.lib.stride_tricks.strided_window_view if applicable,
  • np.lib.stride_tricks.as_strided for the general case,
  • or the np.ndarray constructor (buffer is the original array) for a light-weight version.

(gh-28925)

Positional out argument to np.maximum, np.minimum is deprecated

Passing the output array out positionally to numpy.maximum and numpy.minimum is deprecated. For example, np.maximum(a, b, c) will emit a deprecation warning, since c is treated as the output buffer rather than a third input.

Always pass the output with the keyword form, e.g. np.maximum(a, b, out=c). This makes intent clear and simplifies type annotations.

(gh-29052)

align= must be passed as boolean to np.dtype()

... (truncated)

Changelog

Sourced from numpy's changelog.

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

The things to check are the cibuildwheel version in .github/workflows/wheels.yml and the openblas versions in openblas_requirements.txt.

Make a release PR

Four documents usually need to be updated or created for the release PR:

  • The changelog
  • The release notes
  • The .mailmap file
  • The pyproject.toml file

These changes should be made in an ordinary PR against the maintenance branch. Other small, miscellaneous fixes may be part of this PR. The commit message might be something like::

REL: Prepare for the NumPy 2.4.0 release
  • Create 2.4.0-changelog.rst.
  • Update 2.4.0-notes.rst.
  • Update .mailmap.
  • Update pyproject.toml

Set the release version

Check the pyproject.toml file and set the release version and update the classifier if needed::

$ gvim pyproject.toml

Check the doc/source/release.rst file

make sure that the release notes have an entry in the release.rst file::

... (truncated)

Commits

Dependabot compatibility score

You can trigger a rebase of this PR 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 <dependency name> 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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [numpy](https://github.com/numpy/numpy) from 2.3.5 to 2.4.0.
- [Release notes](https://github.com/numpy/numpy/releases)
- [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst)
- [Commits](numpy/numpy@v2.3.5...v2.4.0)

---
updated-dependencies:
- dependency-name: numpy
  dependency-version: 2.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Jan 5, 2026
@dependabot dependabot bot requested a review from jan-janssen as a code owner January 5, 2026 21:10
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Jan 5, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Jan 5, 2026

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

@jan-janssen jan-janssen marked this pull request as draft January 6, 2026 07:11
@jan-janssen jan-janssen changed the title Bump numpy from 2.3.5 to 2.4.0 Bump numpy to 2.4.3, ase to 3.28.0, scipy to 1.17.1 and structuretoolkit to 0.0.41 Mar 27, 2026
@jan-janssen jan-janssen marked this pull request as ready for review March 27, 2026 21:33
Copilot AI review requested due to automatic review settings March 27, 2026 21:33
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates pinned scientific Python and related parsing/tooling dependencies across packaging and conda environment definitions, aiming to keep runtime, docs, CI, and Binder environments in sync with newer upstream releases.

Changes:

  • Bump core dependencies: numpy (2.3.5 → 2.4.3), ase (3.27.0 → 3.28.0), scipy (1.17.0 → 1.17.1).
  • Bump optional tooling/libs: structuretoolkit (0.0.40 → 0.0.41), plus lammpsparser/vaspparser (0.0.1 → 0.0.2) where pinned.
  • Update conda environments for Binder and CI/docs/lammps to reflect new pins (with one noted inconsistency).

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pyproject.toml Updates pip dependency pins for core + optional extras (phonopy/lammps/vasp).
binder/environment.yml Updates Binder conda environment pins to match the bumped dependencies.
.ci_support/environment.yml Updates CI conda environment pins, but currently pins NumPy differently than other files.
.ci_support/environment-lammps.yml Updates lammps CI environment to use lammpsparser 0.0.2.
.ci_support/environment-docs.yml Updates docs conda environment pins to match bumped dependencies.
Comments suppressed due to low confidence (1)

pyproject.toml:54

  • This PR also bumps lammpsparser and vaspparser (to 0.0.2), but those changes aren’t reflected in the PR title/description. Consider updating the PR metadata to mention these additional dependency bumps so the scope is clear.
    "pylammpsmpi==0.3.11",
    "jinja2==3.1.6",
    "pandas==2.3.3",
    "lammpsparser==0.0.2",
]

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +28 to +30
"ase==3.28.0",
"numpy==2.4.3",
"scipy==1.17.1",
Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR description/release notes text references bumping NumPy to 2.4.0, but this PR pins numpy==2.4.3. Please update the PR description (or align the pinned version) so reviewers and downstream automation aren’t misled about which version is being introduced.

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jan-janssen
Copy link
Copy Markdown
Member

      The following packages are incompatible
      ├─ ase =3.28.0 * is requested and can be installed;
      └─ sphinx_parser =0.1.6 * is not installable because it requires
         └─ ase >=3.23.0,<3.28.0 *, which conflicts with any installable versions 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants