pkgsrc/devel/py-pybind11
adam fd5a0b1212 py-pybind11: updated to 2.9.1
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.
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.
Propagate Python exception traceback using raise_from if a pybind11 function runs out of overloads.
py::multiple_inheritance is now only needed when C++ bases are hidden from pybind11.

Bug fixes:

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

Build system improvements:

Fix CMake extension suffix computation on Python 3.10+.
Allow CMAKE_ARGS to override CMake args in pybind11's own setup.py.
Remove a few deprecated c-headers.
More uniform handling of test targets.
Add clang-tidy readability check to catch potentially swapped function args.
2022-02-05 14:53:33 +00:00
..
buildlink3.mk
DESCR
distinfo py-pybind11: updated to 2.9.1 2022-02-05 14:53:33 +00:00
Makefile py-pybind11: updated to 2.9.1 2022-02-05 14:53:33 +00:00
PLIST