pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-pybind11 py-pybind11: updated to 2.9.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/49de9dc6f407
branches:  trunk
changeset: 373079:49de9dc6f407
user:      adam <adam%pkgsrc.org@localhost>
date:      Sat Feb 05 14:53:33 2022 +0000

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

diffstat:

 devel/py-pybind11/Makefile |  4 ++--
 devel/py-pybind11/distinfo |  8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (25 lines):

diff -r 9d270c598a1c -r 49de9dc6f407 devel/py-pybind11/Makefile
--- a/devel/py-pybind11/Makefile        Sat Feb 05 14:50:00 2022 +0000
+++ b/devel/py-pybind11/Makefile        Sat Feb 05 14:53:33 2022 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.9 2022/01/12 06:46:15 adam Exp $
+# $NetBSD: Makefile,v 1.10 2022/02/05 14:53:33 adam Exp $
 
-DISTNAME=      pybind11-2.9.0
+DISTNAME=      pybind11-2.9.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pybind11/}
diff -r 9d270c598a1c -r 49de9dc6f407 devel/py-pybind11/distinfo
--- a/devel/py-pybind11/distinfo        Sat Feb 05 14:50:00 2022 +0000
+++ b/devel/py-pybind11/distinfo        Sat Feb 05 14:53:33 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.9 2022/01/12 06:46:15 adam Exp $
+$NetBSD: distinfo,v 1.10 2022/02/05 14:53:33 adam Exp $
 
-BLAKE2s (pybind11-2.9.0.tar.gz) = 939b9db50fc57a6b5431210596e281e88c125d74808ae390c491714ede373da4
-SHA512 (pybind11-2.9.0.tar.gz) = 7e3dbd879ecb292555650605aad9cbc4a7e1871b1a70c93681c3ce2d16f43830596f262a8e08af654e2e63cbe73c4a24416698aec79fe8662a4d2a5f6f7e19c2
-Size (pybind11-2.9.0.tar.gz) = 190015 bytes
+BLAKE2s (pybind11-2.9.1.tar.gz) = 76a0adc2741fae5b80de2432bc95a62fd3597a17411b19967bb55394d75a1c40
+SHA512 (pybind11-2.9.1.tar.gz) = 3aa39540ff29d366321f6df2291aa005aea8d4900ea51998889585c5f5a28147b52bdf9fd6b62be8b452e4a21157bc8cef708088471e5766bf807507bb33a474
+Size (pybind11-2.9.1.tar.gz) = 190977 bytes



Home | Main Index | Thread Index | Old Index