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:           Tue Feb 17 06:36:11 UTC 2026

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

Log Message:
py-pybind11: updated to 3.0.2

3.0.2

New Features:

Added helper functions to py::array that return shape and strides as std::span when available.

Bug fixes:

Added fallback locking for Python 3.13t where PyCriticalSection_BeginMutex is unavailable.

Fixed race condition in py::make_key_iterator with free-threaded Python.

MSVC 19.16 and earlier were blocked from using std::launder due to internal compiler errors.

Internals destructors were updated to check the owning interpreter before clearing Python objects.

Internals shutdown handling was refined in two iterations before release: an initial finalization-time cleanup was followed by a safety adjustment to avoid late-shutdown py::cast segfaults.

Fixed ambiguous str(handle) construction for object-derived types like kwargs or dict by templatizing the constructor with SFINAE.

Fixed concurrency consistency for internals_pp_manager under multiple-interpreters.

Fixed MSVC LNK2001 in C++20 builds when /GL (whole program optimization) is enabled.

Added per-interpreter storage for gil_safe_call_once_and_store to make it safe under multi-interpreters.

A workaround for a GCC -Warray-bounds false positive in argument_vector was added.

Corrected a mistake where support for __index__ was added, but the type hints did not reflect acceptance of SupportsIndex objects. Also fixed a long-standing bug: the complex-caster did not accept 
__index__ in convert mode.

Fixed *args/**kwargs return types. Added type hinting to py::make_tuple.

Fixed compiler error in type_caster_generic when casting a T implicitly convertible from T*.

Updated py::native_enum bindings to unregister enum types on destruction, preventing a use-after-free when returning a destroyed enum instance.

Fixed undefined behavior that occurred when importing pybind11 modules from non-main threads created by C API modules or embedded python interpreters.

Fixed dangling pointer in internals::registered_types_cpp_fast.

Added support for std::shared_ptr<T> when loading module-local or conduit types from other modules.

Fixed thread-safety issues if types were concurrently registered while get_local_type_info() was called in free threaded Python.

Fixed py::float_ casting and py::int_ and py::float_ type hints.

Fixed two smart_holder bugs in shared_ptr and unique_ptr adoption with multiple/virtual inheritance:

shared_ptr to-Python caster was updated to register the correct subobject pointer.
unique_ptr adoption was updated to own the proper object start while aliasing subobject pointers for registration, which fixed MSVC crashes during destruction.
Constrained accessor::operator= templates to avoid obscuring special members.

Fixed crash that can occur when finalizers acquire and release the GIL.

Fixed compiler detection in pybind11/detail/pybind11_namespace_macros.h for clang-cl on Windows, to address warning suppression macros.

Fixed compatibility with CMake policy CMP0190 by not always requiring a Python interpreter when cross-compiling.

Added a static assertion to disallow keep_alive and call_guard on properties.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 pkgsrc/devel/py-pybind11/Makefile
cvs rdiff -u -r1.14 -r1.15 pkgsrc/devel/py-pybind11/PLIST
cvs rdiff -u -r1.25 -r1.26 pkgsrc/devel/py-pybind11/distinfo

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.29 pkgsrc/devel/py-pybind11/Makefile:1.30
--- pkgsrc/devel/py-pybind11/Makefile:1.29      Sat Aug 23 08:00:16 2025
+++ pkgsrc/devel/py-pybind11/Makefile   Tue Feb 17 06:36:11 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.29 2025/08/23 08:00:16 adam Exp $
+# $NetBSD: Makefile,v 1.30 2026/02/17 06:36:11 adam Exp $
 
-DISTNAME=      pybind11-3.0.1
+DISTNAME=      pybind11-3.0.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pybind11/}

Index: pkgsrc/devel/py-pybind11/PLIST
diff -u pkgsrc/devel/py-pybind11/PLIST:1.14 pkgsrc/devel/py-pybind11/PLIST:1.15
--- pkgsrc/devel/py-pybind11/PLIST:1.14 Mon Jul 14 10:54:52 2025
+++ pkgsrc/devel/py-pybind11/PLIST      Tue Feb 17 06:36:11 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.14 2025/07/14 10:54:52 wiz Exp $
+@comment $NetBSD: PLIST,v 1.15 2026/02/17 06:36:11 adam Exp $
 bin/pybind11-config-${PYVERSSUFFIX}
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
@@ -28,6 +28,7 @@ ${PYSITELIB}/pybind11/include/pybind11/c
 ${PYSITELIB}/pybind11/include/pybind11/conduit/pybind11_platform_abi_id.h
 ${PYSITELIB}/pybind11/include/pybind11/conduit/wrap_include_python_h.h
 ${PYSITELIB}/pybind11/include/pybind11/critical_section.h
+${PYSITELIB}/pybind11/include/pybind11/detail/argument_vector.h
 ${PYSITELIB}/pybind11/include/pybind11/detail/class.h
 ${PYSITELIB}/pybind11/include/pybind11/detail/common.h
 ${PYSITELIB}/pybind11/include/pybind11/detail/cpp_conduit.h
@@ -35,6 +36,7 @@ ${PYSITELIB}/pybind11/include/pybind11/d
 ${PYSITELIB}/pybind11/include/pybind11/detail/dynamic_raw_ptr_cast_if_possible.h
 ${PYSITELIB}/pybind11/include/pybind11/detail/exception_translation.h
 ${PYSITELIB}/pybind11/include/pybind11/detail/function_record_pyobject.h
+${PYSITELIB}/pybind11/include/pybind11/detail/holder_caster_foreign_helpers.h
 ${PYSITELIB}/pybind11/include/pybind11/detail/init.h
 ${PYSITELIB}/pybind11/include/pybind11/detail/internals.h
 ${PYSITELIB}/pybind11/include/pybind11/detail/native_enum_data.h

Index: pkgsrc/devel/py-pybind11/distinfo
diff -u pkgsrc/devel/py-pybind11/distinfo:1.25 pkgsrc/devel/py-pybind11/distinfo:1.26
--- pkgsrc/devel/py-pybind11/distinfo:1.25      Sat Aug 23 08:00:16 2025
+++ pkgsrc/devel/py-pybind11/distinfo   Tue Feb 17 06:36:11 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.25 2025/08/23 08:00:16 adam Exp $
+$NetBSD: distinfo,v 1.26 2026/02/17 06:36:11 adam Exp $
 
-BLAKE2s (pybind11-3.0.1.tar.gz) = 577bcf1d543fbb4ebc3ee3c762c3afbafdb104cd69b1534f5e62b115a8d4e3c3
-SHA512 (pybind11-3.0.1.tar.gz) = 5582473d7f7ea2cc94878fba45acb3b5f991c416341ffcd6005e0601ee6cd2dc9dbbac0cc54a6f640fa0c3fb1981ec513bb14e6d7f485ccb0968c4137809beb0
-Size (pybind11-3.0.1.tar.gz) = 546914 bytes
+BLAKE2s (pybind11-3.0.2.tar.gz) = 91f3b8aa7c305299d3db1c1e496af473cd0b35962649742b8ed51e8ea0799625
+SHA512 (pybind11-3.0.2.tar.gz) = 45ca5adef8c56ee1b2dcd66f973e4d17f647ea9359a84777a1ef60ddce471a2e3d5d8b9e20e36b5e5e6f60eb21f43b5ae332ebfac62e242c1b02952e7572c7b7
+Size (pybind11-3.0.2.tar.gz) = 577131 bytes



Home | Main Index | Thread Index | Old Index