ansys / pyaedt

AEDT Python Client Package
https://aedt.docs.pyansys.com
MIT License
201 stars 120 forks source link

CHORE: Update numpy requirement from <2,>=1.20.0 to >=1.20.0,<3 #4822

Closed dependabot[bot] closed 1 month ago

dependabot[bot] commented 3 months ago

Updates the requirements on numpy to permit the latest version.

Release notes

Sourced from numpy's releases.

v2.0.0

NumPy 2.0.0 Release Notes

NumPy 2.0.0 is the first major release since 2006. It is the result of 11 months of development since the last feature release and is the work of 212 contributors spread over 1078 pull requests. It contains a large number of exciting new features as well as changes to both the Python and C APIs.

This major release includes breaking changes that could not happen in a regular minor (feature) release - including an ABI break, changes to type promotion rules, and API changes which may not have been emitting deprecation warnings in 1.26.x. Key documents related to how to adapt to changes in NumPy 2.0, in addition to these release notes, include:

Highlights

Highlights of this release include:

  • New features:
    • A new variable-length string dtype, numpy.dtypes.StringDType and a new numpy.strings namespace with performant ufuncs for string operations,
    • Support for float32 and longdouble in all numpy.fft functions,
    • Support for the array API standard in the main numpy namespace.
  • Performance improvements:
    • Sorting functions sort, argsort, partition, argpartition have been accelerated through the use of the Intel x86-simd-sort and Google Highway libraries, and may see large (hardware-specific) speedups,
    • macOS Accelerate support and binary wheels for macOS >=14, with significant performance improvements for linear algebra operations on macOS, and wheels that are about 3 times smaller,
    • numpy.char fixed-length string operations have been accelerated by implementing ufuncs that also support numpy.dtypes.StringDType in addition to the fixed-length string dtypes,
    • A new tracing and introspection API, numpy.lib.introspect.opt_func_info, to determine which hardware-specific kernels are available and will be dispatched to.
    • numpy.save now uses pickle protocol version 4 for saving arrays with object dtype, which allows for pickle objects larger than 4GB and improves saving speed by about 5% for large arrays.
  • Python API improvements:

... (truncated)

Commits
  • 1d49c7f Merge pull request #26698 from charris/prepare-2.0.0
  • 2103511 DOC: Remove duplicate in author list.
  • db8030e BUG: Change cibuildwheel version [wheel build]
  • 1a68264 REL: Prepare for the NumPy 2.0.0 release [wheel build]
  • c8665ba Merge pull request #26696 from charris/backport-26582
  • 103f4dd Merge pull request #26697 from charris/backport-25963
  • c193dcd Merge pull request #26695 from charris/backport-26667
  • 8fa8191 BUG: Fix bug in numpy.pad() (#25963)
  • ece3559 BUG: weighted nanpercentile, nanquantile and multi-dim q (#26582)
  • b31e195 BUG: Adds asanyarray to start of linalg.cross (#26667)
  • Additional commits viewable in compare view


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 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.

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 82.47%. Comparing base (8bf2543) to head (7f6bab0). Report is 136 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #4822 +/- ## ======================================= Coverage 82.47% 82.47% ======================================= Files 118 118 Lines 54388 54388 ======================================= + Hits 44855 44856 +1 + Misses 9533 9532 -1 ```
Samuelopez-ansys commented 3 months ago

Looks like new numpy version is working, I think we can merge, what do you think?

@SMoraisAnsys @maxcapodi78

SMoraisAnsys commented 3 months ago

The tests didn't run using numpy >2.0 but used 1.26.4. Please wait a bit for other packages to make the changes as some of our dependencies may not yet be compatible with numpy >2.0. For example pyvista released yesterday a version that is compatible with 2.0, we might have to wait for others.

MaxJPRey commented 3 months ago

The tests didn't run using numpy >2.0 but used 1.26.4. Please wait a bit for other packages to make the changes as some of our dependencies may not yet be compatible with numpy >2.0. For example pyvista released yesterday a version that is compatible with 2.0, we might have to wait for others.

Agreed.

dependabot[bot] commented 2 months ago

A newer version of numpy exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

dependabot[bot] commented 1 month ago

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.