pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-pybind11



Module Name:    pkgsrc
Committed By:   adam
Date:           Mon Jul 17 19:08:10 UTC 2023

Modified Files:
        pkgsrc/devel/py-pybind11: Makefile PLIST distinfo

Log Message:
py-pybind11: updated to 2.11.1

Version 2.11.1

Changes:

PYBIND11_NO_ASSERT_GIL_HELD_INCREF_DECREF is now provided as an option for disabling the default-on PyGILState_Check()'s in pybind11::handle's inc_ref() & dec_ref().

PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF was disabled for PyPy in general (not just PyPy Windows).

Version 2.11.0

New features:

The newly added pybind11::detail::is_move_constructible trait can be specialized for cases in which std::is_move_constructible does not work as needed. This is very similar to the long-established 
pybind11::detail::is_copy_constructible.
Introduce recursive_container_traits.
pybind11/type_caster_pyobject_ptr.h was added to support automatic wrapping of APIs that make use of PyObject *. This header needs to included explicitly (i.e. it is not included implicitly with 
pybind/pybind11.h).
format_descriptor<> & npy_format_descriptor<> PyObject * specializations were added. The latter enables py::array_t<PyObject *> to/from-python conversions.
buffer_info gained an item_type_is_equivalent_to<T>() member function.
The capsule API gained a user-friendly constructor (py::capsule(ptr, "name", dtor)).

Changes:

PyGILState_Check()'s in pybind11::handle's inc_ref() & dec_ref() are now enabled by default again.
py::initialize_interpreter() using PyConfig_InitPythonConfig() instead of PyConfig_InitIsolatedConfig(), to obtain complete sys.path.
Cast errors now always include Python type information, even if PYBIND11_DETAILED_ERROR_MESSAGES is not defined. This increases binary sizes slightly (~1.5%) but the error messages are much more 
informative.
The docstring generation for the std::array-list caster was fixed. Previously, signatures included the size of the list in a non-standard, non-spec compliant way. The new format conforms to PEP 593. 
Tooling for processing the docstrings may need to be updated accordingly.
Setter return values (which are inaccessible for all practical purposes) are no longer converted to Python (only to be discarded).
Allow lambda specified to function definition to be noexcept(true) in C++17.
Get rid of recursive template instantiations for concatenating type signatures on C++17 and higher.
Compatibility with Python 3.12 (beta). Note that the minimum pybind11 ABI version for Python 3.12 is version 5. (The default ABI version for Python versions up to and including 3.11 is still version 
4.).
With PYBIND11_INTERNALS_VERSION 5 (default for Python 3.12+), MSVC builds use std::hash<std::type_index> and std::equal_to<std::type_index> instead of string-based type comparisons. This resolves 
issues when binding types defined in the unnamed namespace.
Python exception __notes__ (introduced with Python 3.11) are now added to the error_already_set::what() output.

Build system improvements:

CMake 3.27 support was added, CMake 3.4 support was dropped. FindPython will be used if FindPythonInterp is not present.
Update clang-tidy to 15 in CI.
Moved the linting framework over to Ruff.
Skip lto checks and target generation when CMAKE_INTERPROCEDURAL_OPTIMIZATION is defined.
No longer inject -stdlib=libc++, not needed for modern Pythons (macOS 10.9+).
PyPy 3.10 support was added, PyPy 3.7 support was dropped.
Testing with Python 3.12 beta releases was added.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 pkgsrc/devel/py-pybind11/Makefile \
    pkgsrc/devel/py-pybind11/distinfo
cvs rdiff -u -r1.6 -r1.7 pkgsrc/devel/py-pybind11/PLIST

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-pybind11/Makefile
diff -u pkgsrc/devel/py-pybind11/Makefile:1.16 pkgsrc/devel/py-pybind11/Makefile:1.17
--- pkgsrc/devel/py-pybind11/Makefile:1.16      Fri Mar 17 07:58:06 2023
+++ pkgsrc/devel/py-pybind11/Makefile   Mon Jul 17 19:08:10 2023
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.16 2023/03/17 07:58:06 adam Exp $
+# $NetBSD: Makefile,v 1.17 2023/07/17 19:08:10 adam Exp $
 
-DISTNAME=      pybind11-2.10.4
+DISTNAME=      pybind11-2.11.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pybind11/}
Index: pkgsrc/devel/py-pybind11/distinfo
diff -u pkgsrc/devel/py-pybind11/distinfo:1.16 pkgsrc/devel/py-pybind11/distinfo:1.17
--- pkgsrc/devel/py-pybind11/distinfo:1.16      Fri Mar 17 07:58:06 2023
+++ pkgsrc/devel/py-pybind11/distinfo   Mon Jul 17 19:08:10 2023
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.16 2023/03/17 07:58:06 adam Exp $
+$NetBSD: distinfo,v 1.17 2023/07/17 19:08:10 adam Exp $
 
-BLAKE2s (pybind11-2.10.4.tar.gz) = 3b866ed3bdd8fc460044359a8336f6bdcc00d07f1871a8fd408ce05e44a60518
-SHA512 (pybind11-2.10.4.tar.gz) = f44504aac73f02e8a63f5337d7b4b8db81d69db68518d2d0bcbd83bf54ece33870248743038ef6951571911c8d24e554b8d4b4759887cbf5e01773b6fdaa217d
-Size (pybind11-2.10.4.tar.gz) = 200838 bytes
+BLAKE2s (pybind11-2.11.1.tar.gz) = 8f998a791cb24d66c9ac51748026380b050f80674c2149668ac8730397569957
+SHA512 (pybind11-2.11.1.tar.gz) = 5f98b73ac96f08a390d8ba4ace552afaca4d06f5bce62234a1199d400560d1e3fcb17aa04a5a17661228e0eea8880b0a517dddc1f3e6c774d89c5463a628db0f
+Size (pybind11-2.11.1.tar.gz) = 205844 bytes

Index: pkgsrc/devel/py-pybind11/PLIST
diff -u pkgsrc/devel/py-pybind11/PLIST:1.6 pkgsrc/devel/py-pybind11/PLIST:1.7
--- pkgsrc/devel/py-pybind11/PLIST:1.6  Wed Dec 28 10:10:14 2022
+++ pkgsrc/devel/py-pybind11/PLIST      Mon Jul 17 19:08:10 2023
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.6 2022/12/28 10:10:14 adam Exp $
+@comment $NetBSD: PLIST,v 1.7 2023/07/17 19:08:10 adam Exp $
 bin/pybind11-config
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
@@ -33,6 +33,7 @@ ${PYSITELIB}/pybind11/include/pybind11/d
 ${PYSITELIB}/pybind11/include/pybind11/detail/type_caster_base.h
 ${PYSITELIB}/pybind11/include/pybind11/detail/typeid.h
 ${PYSITELIB}/pybind11/include/pybind11/eigen.h
+${PYSITELIB}/pybind11/include/pybind11/eigen/common.h
 ${PYSITELIB}/pybind11/include/pybind11/eigen/matrix.h
 ${PYSITELIB}/pybind11/include/pybind11/eigen/tensor.h
 ${PYSITELIB}/pybind11/include/pybind11/embed.h
@@ -48,6 +49,7 @@ ${PYSITELIB}/pybind11/include/pybind11/p
 ${PYSITELIB}/pybind11/include/pybind11/stl.h
 ${PYSITELIB}/pybind11/include/pybind11/stl/filesystem.h
 ${PYSITELIB}/pybind11/include/pybind11/stl_bind.h
+${PYSITELIB}/pybind11/include/pybind11/type_caster_pyobject_ptr.h
 ${PYSITELIB}/pybind11/py.typed
 ${PYSITELIB}/pybind11/setup_helpers.py
 ${PYSITELIB}/pybind11/setup_helpers.pyc



Home | Main Index | Thread Index | Old Index