pyvista / pytest-pyvista

Plugin to test PyVista plot outputs
https://pytest.pyvista.org
MIT License
13 stars 5 forks source link

Update numpy requirement from <1.24 to <1.26 #63

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Updates the requirements on numpy to permit the latest version.

Release notes

Sourced from numpy's releases.

v1.25.0

NumPy 1.25.0 Release Notes

The NumPy 1.25.0 release continues the ongoing work to improve the handling and promotion of dtypes, increase the execution speed, and clarify the documentation. There has also been work to prepare for the future NumPy 2.0.0 release, resulting in a large number of new and expired deprecation. Highlights are:

  • Support for MUSL, there are now MUSL wheels.
  • Support the Fujitsu C/C++ compiler.
  • Object arrays are now supported in einsum
  • Support for inplace matrix multiplication (@=).

We will be releasing a NumPy 1.26 when Python 3.12 comes out. That is needed because distutils has been dropped by Python 3.12 and we will be switching to using meson for future builds. The next mainline release will be NumPy 2.0.0. We plan that the 2.0 series will still support downstream projects built against earlier versions of NumPy.

The Python versions supported in this release are 3.9-3.11.

Deprecations

  • np.core.MachAr is deprecated. It is private API. In names defined in np.core should generally be considered private.

    (gh-22638)

  • np.finfo(None) is deprecated.

    (gh-23011)

  • np.round_ is deprecated. Use np.round instead.

    (gh-23302)

  • np.product is deprecated. Use np.prod instead.

    (gh-23314)

  • np.cumproduct is deprecated. Use np.cumprod instead.

    (gh-23314)

  • np.sometrue is deprecated. Use np.any instead.

    (gh-23314)

  • np.alltrue is deprecated. Use np.all instead.

... (truncated)

Commits
  • db4f439 Merge pull request #23966 from charris/prepare-1.25.0-release
  • 8c6b0bc REL: Prepare for the NumPy 1.25.0 release
  • d5f9d1a Merge pull request #23963 from charris/backport-23962
  • 9b19e19 TEST: change subprocess call to capture stderr too
  • 78fa6fb Merge pull request #23957 from charris/backport-23789
  • 430fc83 Merge pull request #23956 from charris/backport-23953
  • 42ef942 Merge pull request #23955 from charris/backport-23881
  • fa62e8c delete 23789.new_feature.rst from this PR
  • 350c003 Shorten release note to single point
  • 051d307 release note
  • 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 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 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)
codecov-commenter commented 1 year ago

Codecov Report

Merging #63 (6e742df) into main (ad892ba) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #63   +/-   ##
=======================================
  Coverage   92.13%   92.13%           
=======================================
  Files           2        2           
  Lines          89       89           
=======================================
  Hits           82       82           
  Misses          7        7           
akaszynski commented 1 year ago

This will have to be delayed due to vtk 9.0.3:

/opt/hostedtoolcache/Python/3.8.17/x64/lib/python3.8/site-packages/vtkmodules/util/numpy_support.py:74: in get_vtk_to_numpy_typemap
...
    _vtk_np = {vtkConstants.VTK_BIT:numpy.bool,
banesullivan commented 1 year ago

We could set up the CI here so that older versions of VTK use older versions of numpy. Then for 9.2.x and latest we could use this version of numpy

See also:

https://github.com/pyvista/pyvista/blob/7a9503032401124cf0a234dfa9783608bc92647c/.github/workflows/testing-and-deployment.yml#L190-L192

MatthewFlamm commented 1 year ago

Should be good to go now