openkim / kliff

KIM-based Learning-Integrated Fitting Framework for interatomic potentials.
https://kliff.readthedocs.io
GNU Lesser General Public License v2.1
34 stars 20 forks source link

Bump pybind11 from 2.8.1 to 2.9.1 #34

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps pybind11 from 2.8.1 to 2.9.1.

Release notes

Sourced from pybind11's releases.

Version 2.9.1

Changes:

  • If possible, attach Python exception with py::raise_from to TypeError when casting from C++ to Python. This will give additional info if Python exceptions occur in the caster. Adds a test case of trying to convert a set from C++ to Python when the hash function is not defined in Python. #3605
  • Add a mapping of C++11 nested exceptions to their Python exception equivalent using py::raise_from. This attaches the nested exceptions in Python using the __cause__ field. #3608
  • Propagate Python exception traceback using raise_from if a pybind11 function runs out of overloads. #3671
  • py::multiple_inheritance is now only needed when C++ bases are hidden from pybind11. #3650 and #3659

Bug fixes:

  • Remove a boolean cast in numpy.h that causes MSVC C4800 warnings when compiling against Python 3.10 or newer. #3669
  • Render py::bool_ and py::float_ as bool and float respectively. #3622

Build system improvements:

  • Fix CMake extension suffix computation on Python 3.10+. #3663
  • Allow CMAKE_ARGS to override CMake args in pybind11's own setup.py. #3577
  • Remove a few deprecated c-headers. #3610
  • More uniform handling of test targets. #3590
  • Add clang-tidy readability check to catch potentially swapped function args. #3611

Version 2.9.0

This is the last version to support Python 2.7 and 3.5.

New Features:

  • Allow py::args to be followed by other arguments; the remaining arguments are implicitly keyword-only, as if a py::kw_only{} annotation had been used. #3402

Changes:

  • Make str/bytes/memoryview more interoperable with std::string_view. #3521
  • Replace _ with const_name in internals, avoid defining pybind::_ if _ defined as macro (common gettext usage) #3423

Bug fixes:

  • Fix a rare warning about extra copy in an Eigen constructor. #3486
  • Fix caching of the C++ overrides. #3465
  • Add missing std::forward calls to some cpp_function overloads. #3443
  • Support PyPy 7.3.7 and the PyPy3.8 beta. Test python-3.11 on PRs with the python dev label. #3419
  • Replace usage of deprecated Eigen::MappedSparseMatrix with Eigen::Map<Eigen::SparseMatrix<...>> for Eigen 3.3+. #3499
  • Tweaks to support Microsoft Visual Studio 2022. #3497

Build system improvements:

  • Nicer CMake printout and IDE organisation for pybind11's own tests. #3479
  • CMake: report version type as part of the version string to avoid a spurious space in the package status message. #3472
  • Flags starting with -g in $CFLAGS and $CPPFLAGS are no longer overridden by .Pybind11Extension. #3436
  • Ensure ThreadPool is closed in setup_helpers. #3548
  • Avoid LTS on mips64 and ppc64le (reported broken). #3557
Changelog

Sourced from pybind11's changelog.

Version 2.9.1 (Feb 2, 2022)

Changes:

  • If possible, attach Python exception with py::raise_from to TypeError when casting from C++ to Python. This will give additional info if Python exceptions occur in the caster. Adds a test case of trying to convert a set from C++ to Python when the hash function is not defined in Python. [#3605](https://github.com/pybind/pybind11/issues/3605) <https://github.com/pybind/pybind11/pull/3605>_

  • Add a mapping of C++11 nested exceptions to their Python exception equivalent using py::raise_from. This attaches the nested exceptions in Python using the __cause__ field. [#3608](https://github.com/pybind/pybind11/issues/3608) <https://github.com/pybind/pybind11/pull/3608>_

  • Propagate Python exception traceback using raise_from if a pybind11 function runs out of overloads. [#3671](https://github.com/pybind/pybind11/issues/3671) <https://github.com/pybind/pybind11/pull/3671>_

  • py::multiple_inheritance is now only needed when C++ bases are hidden from pybind11. [#3650](https://github.com/pybind/pybind11/issues/3650) <https://github.com/pybind/pybind11/pull/3650>_ and [#3659](https://github.com/pybind/pybind11/issues/3659) <https://github.com/pybind/pybind11/pull/3659>_

Bug fixes:

  • Remove a boolean cast in numpy.h that causes MSVC C4800 warnings when compiling against Python 3.10 or newer. [#3669](https://github.com/pybind/pybind11/issues/3669) <https://github.com/pybind/pybind11/pull/3669>_

  • Render py::bool_ and py::float_ as bool and float respectively. [#3622](https://github.com/pybind/pybind11/issues/3622) <https://github.com/pybind/pybind11/pull/3622>_

Build system improvements:

  • Fix CMake extension suffix computation on Python 3.10+. [#3663](https://github.com/pybind/pybind11/issues/3663) <https://github.com/pybind/pybind11/pull/3663>_

  • Allow CMAKE_ARGS to override CMake args in pybind11's own setup.py. [#3577](https://github.com/pybind/pybind11/issues/3577) <https://github.com/pybind/pybind11/pull/3577>_

  • Remove a few deprecated c-headers. [#3610](https://github.com/pybind/pybind11/issues/3610) <https://github.com/pybind/pybind11/pull/3610>_

  • More uniform handling of test targets. [#3590](https://github.com/pybind/pybind11/issues/3590) <https://github.com/pybind/pybind11/pull/3590>_

... (truncated)

Commits


Dependabot compatibility score

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)