head	1.16;
access;
symbols
	pkgsrc-2026Q3:1.16.0.2
	pkgsrc-2026Q3-base:1.16
	pkgsrc-2026Q2:1.15.0.4
	pkgsrc-2026Q2-base:1.15
	pkgsrc-2026Q1:1.15.0.2
	pkgsrc-2026Q1-base:1.15
	pkgsrc-2025Q4:1.14.0.4
	pkgsrc-2025Q4-base:1.14
	pkgsrc-2025Q3:1.14.0.2
	pkgsrc-2025Q3-base:1.14
	pkgsrc-2025Q2:1.13.0.2
	pkgsrc-2025Q2-base:1.13
	pkgsrc-2025Q1:1.12.0.6
	pkgsrc-2025Q1-base:1.12
	pkgsrc-2024Q4:1.12.0.4
	pkgsrc-2024Q4-base:1.12
	pkgsrc-2024Q3:1.12.0.2
	pkgsrc-2024Q3-base:1.12
	pkgsrc-2024Q2:1.9.0.2
	pkgsrc-2024Q2-base:1.9
	pkgsrc-2024Q1:1.8.0.4
	pkgsrc-2024Q1-base:1.8
	pkgsrc-2023Q4:1.8.0.2
	pkgsrc-2023Q4-base:1.8
	pkgsrc-2023Q3:1.7.0.2
	pkgsrc-2023Q3-base:1.7
	pkgsrc-2023Q2:1.6.0.4
	pkgsrc-2023Q2-base:1.6
	pkgsrc-2023Q1:1.6.0.2
	pkgsrc-2023Q1-base:1.6
	pkgsrc-2022Q4:1.5.0.2
	pkgsrc-2022Q4-base:1.5
	pkgsrc-2022Q3:1.3.0.10
	pkgsrc-2022Q3-base:1.3
	pkgsrc-2022Q2:1.3.0.8
	pkgsrc-2022Q2-base:1.3
	pkgsrc-2022Q1:1.3.0.6
	pkgsrc-2022Q1-base:1.3
	pkgsrc-2021Q4:1.3.0.4
	pkgsrc-2021Q4-base:1.3
	pkgsrc-2021Q3:1.3.0.2
	pkgsrc-2021Q3-base:1.3
	pkgsrc-2021Q2:1.2.0.2
	pkgsrc-2021Q2-base:1.2
	pkgsrc-2021Q1:1.1.0.8
	pkgsrc-2021Q1-base:1.1
	pkgsrc-2020Q4:1.1.0.6
	pkgsrc-2020Q4-base:1.1
	pkgsrc-2020Q3:1.1.0.4
	pkgsrc-2020Q3-base:1.1
	pkgsrc-2020Q2:1.1.0.2
	pkgsrc-2020Q2-base:1.1;
locks; strict;
comment	@# @;


1.16
date	2026.08.09.06.12.46;	author adam;	state Exp;
branches;
next	1.15;
commitid	xqonXVcU0CzywVQG;

1.15
date	2026.02.17.06.36.11;	author adam;	state Exp;
branches;
next	1.14;
commitid	8fc6FzYuPqZadHuG;

1.14
date	2025.07.14.10.54.52;	author wiz;	state Exp;
branches;
next	1.13;
commitid	xJtn4Idyj5pDEH2G;

1.13
date	2025.04.12.20.03.45;	author adam;	state Exp;
branches;
next	1.12;
commitid	nZBD4yqQXQIiGNQF;

1.12
date	2024.09.14.08.05.20;	author adam;	state Exp;
branches;
next	1.11;
commitid	b7jE8162MkgfsKpF;

1.11
date	2024.08.14.06.21.50;	author adam;	state Exp;
branches;
next	1.10;
commitid	Jjg0iOpXyeoiSKlF;

1.10
date	2024.06.30.22.02.55;	author wiz;	state Exp;
branches;
next	1.9;
commitid	FpJxq07mWFu7x3gF;

1.9
date	2024.04.06.06.34.39;	author wiz;	state Exp;
branches;
next	1.8;
commitid	nMs6YnBTWoX4835F;

1.8
date	2023.12.28.13.29.26;	author thor;	state Exp;
branches;
next	1.7;
commitid	p0oGN4kS1FwhCeSE;

1.7
date	2023.07.17.19.08.10;	author adam;	state Exp;
branches;
next	1.6;
commitid	2qrXLpi3Rs8pMbxE;

1.6
date	2022.12.28.10.10.14;	author adam;	state Exp;
branches;
next	1.5;
commitid	XI3rrhuTH2MAgj7E;

1.5
date	2022.11.02.08.47.52;	author adam;	state Exp;
branches;
next	1.4;
commitid	YiPo0NEhxhxSB60E;

1.4
date	2022.10.05.20.53.35;	author adam;	state Exp;
branches;
next	1.3;
commitid	zbUOfRCV7uQvwzWD;

1.3
date	2021.08.02.20.35.42;	author adam;	state Exp;
branches;
next	1.2;
commitid	8xYlAJGJepUldr3D;

1.2
date	2021.04.05.18.31.56;	author tnn;	state Exp;
branches;
next	1.1;
commitid	TIcwIADNShYXl8OC;

1.1
date	2020.04.28.09.42.48;	author adam;	state Exp;
branches;
next	;
commitid	LFn7g2iUDnfkq86C;


desc
@@


1.16
log
@py-pybind11: updated to 3.1.0

3.1.0

New Features:

Support for Python 3.8 was removed. The minimum supported version is now Python 3.9.

Support for MSVC 2017 has been dropped.

Changed strict-mode numeric conversions for PEP 484 compatibility: float now accepts int, and complex now accepts int and float.

Small extra features added to the pybind11 command line tool based on python-config.

Added subinterpreter_thread_state, an RAII wrapper that owns a reusable PyThreadState for a sub-interpreter, together with a subinterpreter_scoped_activate overload that activates it. This lets an OS thread re-enter one or more sub-interpreters without creating and destroying a PyThreadState on every activation.

Add py::mod_gil_used() as replacement spelling to py::mod_gil_not_used(false).

Bug fixes:

Fixed a crash in py::subinterpreter::create() when called without a current PyThreadState, which its documentation explicitly allows — for example from an embedder that ended initialization with PyEval_SaveThread(), or from a worker thread that has never touched Python. error_scope is now constructed after a thread state has been attached instead of before.

Make py::print delegate to the current frame/interpreter built-ins print entry, fixing handling of sys.stdout = None, following the active runtime's stream, keyword, and error semantics, and remaining a no-op if the entry is unavailable during teardown.

Include the builtin complex type in the input annotation of the std::complex<T> type caster.

String views (e.g. std::string_view) are now kept alive only when loaded from a transient source (such as a generator), fixing both a use-after-free and a regression where casting a view from a durable object outside a bound function would throw.

Drop Python 2 prepend to evaluated source, causing errors to be off by one.

Fix data race on last_storage_ptr_ cache in gil_safe_call_once_and_store.

Allow user defined __str__ on enum_.

Fix generated Callable type annotations for Python callbacks passed into C++ by inverting the callback's argument/return I/O context relative to the enclosing function signature.

Correct __delitem__ for negative-step slices and re-enable contiguous erase fast path.

Do not pass -fno-fat-lto-objects to GCC on macOS, which made all LTO probes fail and silently disabled LTO.

Fixed cross-compilation to Emscripten/Pyodide with CMake ≥ 4.1 by no longer overriding an explicitly set PYBIND11_USE_CROSSCOMPILING when CMAKE_CROSSCOMPILING_EMULATOR is defined.

Unset stale PYTHON_MODULE_DEBUG_POSTFIX and correct USE_PYTHON_INCLUDE_DIR variable.

Apply -undefined dynamic_lookup to all Apple platforms.
@
text
@@@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
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
${PYSITELIB}/pybind11/__init__.py
${PYSITELIB}/pybind11/__init__.pyc
${PYSITELIB}/pybind11/__init__.pyo
${PYSITELIB}/pybind11/__main__.py
${PYSITELIB}/pybind11/__main__.pyc
${PYSITELIB}/pybind11/__main__.pyo
${PYSITELIB}/pybind11/_version.py
${PYSITELIB}/pybind11/_version.pyc
${PYSITELIB}/pybind11/_version.pyo
${PYSITELIB}/pybind11/commands.py
${PYSITELIB}/pybind11/commands.pyc
${PYSITELIB}/pybind11/commands.pyo
${PYSITELIB}/pybind11/include/pybind11/attr.h
${PYSITELIB}/pybind11/include/pybind11/buffer_info.h
${PYSITELIB}/pybind11/include/pybind11/cast.h
${PYSITELIB}/pybind11/include/pybind11/chrono.h
${PYSITELIB}/pybind11/include/pybind11/common.h
${PYSITELIB}/pybind11/include/pybind11/complex.h
${PYSITELIB}/pybind11/include/pybind11/conduit/README.txt
${PYSITELIB}/pybind11/include/pybind11/conduit/pybind11_conduit_v1.h
${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
${PYSITELIB}/pybind11/include/pybind11/detail/descr.h
${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/function_ref.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
${PYSITELIB}/pybind11/include/pybind11/detail/pybind11_namespace_macros.h
${PYSITELIB}/pybind11/include/pybind11/detail/struct_smart_holder.h
${PYSITELIB}/pybind11/include/pybind11/detail/type_caster_base.h
${PYSITELIB}/pybind11/include/pybind11/detail/typeid.h
${PYSITELIB}/pybind11/include/pybind11/detail/using_smart_holder.h
${PYSITELIB}/pybind11/include/pybind11/detail/value_and_holder.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
${PYSITELIB}/pybind11/include/pybind11/eval.h
${PYSITELIB}/pybind11/include/pybind11/functional.h
${PYSITELIB}/pybind11/include/pybind11/gil.h
${PYSITELIB}/pybind11/include/pybind11/gil_safe_call_once.h
${PYSITELIB}/pybind11/include/pybind11/gil_simple.h
${PYSITELIB}/pybind11/include/pybind11/iostream.h
${PYSITELIB}/pybind11/include/pybind11/native_enum.h
${PYSITELIB}/pybind11/include/pybind11/numpy.h
${PYSITELIB}/pybind11/include/pybind11/operators.h
${PYSITELIB}/pybind11/include/pybind11/options.h
${PYSITELIB}/pybind11/include/pybind11/pybind11.h
${PYSITELIB}/pybind11/include/pybind11/pytypes.h
${PYSITELIB}/pybind11/include/pybind11/stl.h
${PYSITELIB}/pybind11/include/pybind11/stl/filesystem.h
${PYSITELIB}/pybind11/include/pybind11/stl_bind.h
${PYSITELIB}/pybind11/include/pybind11/subinterpreter.h
${PYSITELIB}/pybind11/include/pybind11/trampoline_self_life_support.h
${PYSITELIB}/pybind11/include/pybind11/type_caster_pyobject_ptr.h
${PYSITELIB}/pybind11/include/pybind11/typing.h
${PYSITELIB}/pybind11/include/pybind11/warnings.h
${PYSITELIB}/pybind11/py.typed
${PYSITELIB}/pybind11/setup_helpers.py
${PYSITELIB}/pybind11/setup_helpers.pyc
${PYSITELIB}/pybind11/setup_helpers.pyo
${PYSITELIB}/pybind11/share/__init__.py
${PYSITELIB}/pybind11/share/__init__.pyc
${PYSITELIB}/pybind11/share/__init__.pyo
${PYSITELIB}/pybind11/share/cmake/pybind11/FindPythonLibsNew.cmake
${PYSITELIB}/pybind11/share/cmake/pybind11/pybind11Common.cmake
${PYSITELIB}/pybind11/share/cmake/pybind11/pybind11Config.cmake
${PYSITELIB}/pybind11/share/cmake/pybind11/pybind11ConfigVersion.cmake
${PYSITELIB}/pybind11/share/cmake/pybind11/pybind11GuessPythonExtSuffix.cmake
${PYSITELIB}/pybind11/share/cmake/pybind11/pybind11NewTools.cmake
${PYSITELIB}/pybind11/share/cmake/pybind11/pybind11Targets.cmake
${PYSITELIB}/pybind11/share/cmake/pybind11/pybind11Tools.cmake
${PYSITELIB}/pybind11/share/pkgconfig/__init__.py
${PYSITELIB}/pybind11/share/pkgconfig/__init__.pyc
${PYSITELIB}/pybind11/share/pkgconfig/__init__.pyo
${PYSITELIB}/pybind11/share/pkgconfig/pybind11.pc
@


1.15
log
@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.
@
text
@d1 1
a1 1
@@comment $NetBSD: PLIST,v 1.14 2025/07/14 10:54:52 wiz Exp $
d39 1
@


1.14
log
@py-pybind11: update to 3.0.0.

Pybind11 3.0 includes an ABI bump, the first required bump in many
years on Unix (Windows has had required bumps more often). This
release contains the smart-holder branch, multi-phase init and
subinterpreter support, py::native_enum, an interface to warnings,
typing improvements, and more. CMake now defaults to FindPython
mode.

Support for Python 3.14, 3.14t, GraalPy, and PyPy 3.11 has been
added, while legacy support for Python 3.7, PyPy 3.8/3.9, and CMake
<3.15 has been removed. Most deprecated features have been kept
for this release, but anything producing a warning in 3.0 may be
removed in a future 3.x version. We also now have a deprecation
page.
@
text
@d1 1
a1 1
@@comment $NetBSD$
d31 1
d39 1
@


1.13
log
@Fix PLIST after py-setuptools update; bump depends and revision
@
text
@d1 1
a1 1
@@comment $NetBSD: PLIST,v 1.12 2024/09/14 08:05:20 adam Exp $
a7 1
${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
d26 5
d35 1
d37 1
d40 3
d45 1
d56 1
d58 1
d67 2
d71 1
d76 3
d87 3
@


1.12
log
@py-pybind11: updated to 2.13.6

2.13.6

New Features:

A new self._pybind11_conduit_v1_() method is automatically added to all py::class_-wrapped types, to enable type-safe interoperability between different independent Python/C++ bindings systems, including pybind11 versions with different PYBIND11_INTERNALS_VERSION's. Supported on pybind11 2.11.2, 2.12.1, and 2.13.6+.

Bug fixes:

Using __cpp_nontype_template_args instead of __cpp_nontype_template_parameter_class.
Properly translate C++ exception to Python exception when creating Python buffer from wrapped object.

Documentation:

Adds an answer (FAQ) for "What is a highly conclusive and simple way to find memory leaks?".
@
text
@d1 1
a1 1
@@comment $NetBSD: PLIST,v 1.11 2024/08/14 06:21:50 adam Exp $
a2 1
${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
d7 1
@


1.11
log
@py-pybind11: updated to 2.13.3

Version 2.13.3

Bug fixes:

Quote paths from pybind11-config
Fix typo in Emscripten support when in config mode (CMake)


Version 2.13.2

New Features:

A pybind11::detail::type_caster_std_function_specializations feature was added, to support specializations for std::function's with return types that require custom to-Python conversion behavior (to primary use case is to catch and convert exceptions).

Changes:

Use PyMutex instead of std::mutex for internal locking in the free-threaded build.
Add a special type annotation for C++ empty tuple.
When compiling for WebAssembly, add the required exception flags (CMake 3.13+).

Bug fixes:

Make gil_safe_call_once_and_store thread-safe in free-threaded CPython.
A missing #include <algorithm> in pybind11/typing.h was added to fix build errors (in case user code does not already depend on that include).
Fix regression introduced in 5201 for GCC<10.3 in C++20 mode.
Remove extra = when assigning flto value in the case for Clang in CMake.

Tests:

Adding WASM testing to our CI (Pyodide / Emscripten via scikit-build-core).
clang-tidy (in GitHub Actions) was updated from clang 15 to clang 18.
@
text
@d1 1
a1 1
@@comment $NetBSD: PLIST,v 1.10 2024/06/30 22:02:55 wiz Exp $
d29 1
d31 1
@


1.10
log
@py-pybind11: update to 2.13.1.

2.13.1

New Features:

    Add support for Typing.Callable[..., T]. #5202

Bug fixes:

    Avoid aligned allocation in free-threaded build in order to support macOS versions before 10.14. #5200

2.13.0

New Features:

    Support free-threaded CPython (3.13t). Add py::mod_gil_not_used() tag to indicate if a module supports running with the GIL disabled. #5148
    Support for Python 3.6 was removed. (Official end-of-life: 2021-12-23). #5177
    py::list gained a .clear() method. #5153
    Support for Union, Optional, type[T], typing.TypeGuard, typing.TypeIs, typing.Never, typing.NoReturn and typing.Literal was added to pybind11/typing.h. #5166 #5165 #5194 #5193 #5192
    In CMake, if PYBIND11_USE_CROSSCOMPILING is enabled, then CMAKE_CROSSCOMPILING will be respected and will keep pybind11 from accessing the interpreter during configuration. Several CMake variables will be required in this case, but can be deduced from the environment variable SETUPTOOLS_EXT_SUFFIX. The default (currently OFF) may be changed in the future. #5083

Bug fixes:

    A refcount bug (leading to heap-use-after-free) involving trampoline functions with PyObject * return type was fixed. #5156
    Return py::ssize_t from .ref_count() instead of int. #5139
    A subtle bug involving C++ types with unusual operator& overrides was fixed. #5189
    Support Python 3.13 with minor fix, add to CI. #5127
    Fix mistake affecting old cmake and old boost. #5149

Documentation:

    Build docs updated to feature scikit-build-core and meson-python, and updated setuptools instructions. #5168

Tests:

    Avoid immortal objects in tests. #5150

CI:

    Compile against Python 3.13t in CI.
    Use macos-13 (Intel) for CI jobs for now (will drop Python 3.7 soon). #5109
    Releases now have artifact attestations, visible at https://github.com/pybind/pybind11/attestations. #5196

Other:

    Some cleanup in preparation for 3.13 support. #5137
    Avoid a warning by ensuring an iterator end check is included in release mode. #5129
    Bump max cmake to 3.29. #5075
    Update docs and noxfile. #5071
@
text
@d1 1
a1 1
@@comment $NetBSD$
d34 1
@


1.9
log
@py-pybind11: update to 2.12.0.

Convert to wheel.mk.

New Features:

    pybind11 now supports compiling for NumPy 2. Most code shouldn't change (see upgrade-guide-2.12 for details). However, if you experience issues you can define PYBIND11_NUMPY_1_ONLY to disable the new support for now, but this will be removed in the future. #5050
    pybind11/gil_safe_call_once.h was added (it needs to be included explicitly). The primary use case is GIL-safe initialization of C++ static variables. #4877
    Support move-only iterators in py::make_iterator, py::make_key_iterator, py::make_value_iterator. #4834
    Two simple py::set_error() functions were added and the documentation was updated accordingly. In particular, py::exception<>::operator() was deprecated (use one of the new functions instead). The documentation for py::exception<> was further updated to not suggest code that may result in undefined behavior. #4772

Bug fixes:

    Removes potential for Undefined Behavior during process teardown. #4897
    Improve compatibility with the nvcc compiler (especially CUDA 12.1/12.2). #4893
    pybind11/numpy.h now imports NumPy's multiarray and _internal submodules with paths depending on the installed version of NumPy (for compatibility with NumPy 2). #4857
    Builtins collections names in docstrings are now consistently rendered in lowercase (list, set, dict, tuple), in accordance with PEP 585. #4833
    Added py::typing::Iterator<T>, py::typing::Iterable<T>. #4832
    Render py::function as Callable in docstring. #4829
    Also bump PYBIND11_INTERNALS_VERSION for MSVC, which unlocks two new features without creating additional incompatibilities. #4819
    Guard against crashes/corruptions caused by modules built with different MSVC versions. #4779
    A long-standing bug in the handling of Python multiple inheritance was fixed. See PR #4762 for the rather complex details. #4762
    Fix bind_map with using declarations. #4952
    Qualify py::detail::concat usage to avoid ADL selecting one from somewhere else, such as modernjson's concat. #4955
    Use new PyCode API on Python 3.12+. #4916
    Minor cleanup from warnings reported by Clazy. #4988
    Remove typing and duplicate class_ for KeysView/ValuesView/ItemsView. #4985
    Use PyObject_VisitManagedDict() and PyObject_ClearManagedDict() on Python 3.13 and newer. #4973
    Update make_static_property_type() to make it compatible with Python 3.13. #4971

    Render typed iterators for make_iterator, make_key_iterator, make_value_iterator. #4876
    Add several missing type name specializations. #5073
    Change docstring render for py::buffer, py::sequence and py::handle (to Buffer, Sequence, Any). #4831
    Fixed base_enum.__str__ docstring. #4827
    Enforce single line docstring signatures. #4735
    Special 'typed' wrappers now available in typing.h to annotate tuple, dict, list, set, and function. #4259
    Create handle_type_name specialization to type-hint variable length tuples. #5051

    Setting PYBIND11_FINDPYTHON to OFF will force the old FindPythonLibs mechanism to be used. #5042
    Skip empty PYBIND11_PYTHON_EXECUTABLE_LAST for the first cmake run. #4856
    Fix FindPython mode exports & avoid pkg_resources if importlib.metadata available. #4941
    Python_ADDITIONAL_VERSIONS (classic search) now includes 3.12. #4909
    pybind11.pc is now relocatable by default as long as install destinations are not absolute paths. #4830
    Correctly detect CMake FindPython removal when used as a subdirectory. #4806
    Don't require the libs component on CMake 3.18+ when using PYBIND11_FINDPYTHON (fixes manylinux builds). #4805
    pybind11_strip is no longer automatically applied when CMAKE_BUILD_TYPE is unset. #4780
    Support DEBUG_POSFIX correctly for debug builds. #4761
    Hardcode lto/thin lto for Emscripten cross-compiles. #4642
    Upgrade maximum supported CMake version to 3.27 to fix CMP0148 warnings. #4786

Documentation:

    Small fix to grammar in functions.rst. #4791
    Remove upper bound in example pyproject.toml for setuptools. #4774

CI:

    CI: Update NVHPC to 23.5 and Ubuntu 20.04. #4764
    Test on PyPy 3.10. #4714

Other:

    Use Ruff formatter instead of Black. #4912
    An assert() was added to help Coverty avoid generating a false positive. #4817
@
text
@d62 1
@


1.8
log
@devel/py-pybind11: resolve the self-conflict

This renames the pybind11-config script with a versioned suffix as done
elsewhere. The buildlink file provides the unsuffixed script for dependents
to use.
@
text
@d1 1
a1 1
@@comment $NetBSD: PLIST,v 1.7 2023/07/17 19:08:10 adam Exp $
d3 6
a8 7
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
${PYSITELIB}/${EGG_INFODIR}/requires.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
d42 1
d53 1
@


1.7
log
@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.
@
text
@d1 2
a2 2
@@comment $NetBSD: PLIST,v 1.6 2022/12/28 10:10:14 adam Exp $
bin/pybind11-config
@


1.6
log
@py-pybind11: updated to 2.10.2

Version 2.10.2

Changes:

scoped_interpreter constructor taking PyConfig.
pybind11/eigen/tensor.h adds converters to and from Eigen::Tensor and Eigen::TensorMap
PyGILState_Check()'s were integrated to pybind11::handle inc_ref() & dec_ref(). The added GIL checks are guarded by PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF, which is the default only if NDEBUG is not defined.
Add option for enable/disable enum members in docstring.
Fixed typing of KeysView, ValuesView and ItemsView in bind_map.

Bug fixes:

Bug fix affecting only Python 3.6 under very specific, uncommon conditions: move PyEval_InitThreads() call to the correct location.
Fix segfault bug when passing foreign native functions to functional.h.

Build system improvements:

Support setting PYTHON_LIBRARIES manually for Windows ARM cross-compilation (classic mode).
Extend IPO/LTO detection for ICX (a.k.a IntelLLVM) compiler.
Allow calling find_package(pybind11 CONFIG) multiple times from separate directories in the same CMake project and properly link Python (new mode).
multiprocessing_set_spawn in pytest fixture for added safety.
Fixed a bug in two pybind11/tools cmake scripts causing "Unknown arguments specified" errors.
@
text
@d1 1
a1 1
@@comment $NetBSD: PLIST,v 1.5 2022/11/02 08:47:52 adam Exp $
d36 1
d52 1
@


1.5
log
@py-pybind11: updated to 2.10.1

Version 2.10.1
This is the first version to fully support embedding the newly released Python 3.11.

Changes:

Allow pybind11::capsule constructor to take null destructor pointers.
embed.h was changed so that PYTHONPATH is used also with Python 3.11 (established behavior).
A PYBIND11_SIMPLE_GIL_MANAGEMENT option was added (cmake, C++ define), along with many additional tests in test_gil_scoped.py. The option may be useful to try when debugging GIL-related issues, to determine if the more complex default implementation is or is not to blame. See
PYBIND11_EXPORT_EXCEPTION was made non-empty only under macOS. This makes Linux builds safer, and enables the removal of warning suppression pragmas for Windows.

Bug fixes:

Fixed a bug where UnicodeDecodeError was not propagated from various py::str ctors when decoding surrogate utf characters.
Revert perfect forwarding for make_iterator. This broke at least one valid use case. May revisit later.
Fix support for safe casts to void* (regression in 2.10.0).
Fix char8_t support (regression in 2.9).
Unicode surrogate character in Python exception message leads to process termination in error_already_set::what().
Fix MSVC 2019 v.1924 & C++14 mode error for overload_cast.
Make augmented assignment operators non-const for the object-api. Behavior was previously broken for augmented assignment operators.
Add proper error checking to C++ bindings for Python list append and insert.
Work-around for Nvidia's CUDA nvcc compiler in versions 11.4.0 - 11.8.0.
A workaround for PyPy was added in the py::error_already_set implementation, related to PR
Fixed compiler errors when C++23 std::forward_like is available.
Properly raise exceptions in contains methods (like when an object in unhashable).
Further improve another error in exception handling.
get_local_internals() was made compatible with finalize_interpreter(), fixing potential freezes during interpreter finalization.

Performance and style:

Reserve space in set and STL map casters if possible. This will prevent unnecessary rehashing / resizing by knowing the number of keys ahead of time for Python to C++ casting. This improvement will greatly speed up the casting of large unordered maps and sets.
GIL RAII scopes are non-copyable to avoid potential bugs.
Explicitly default all relevant ctors for pytypes in the PYBIND11_OBJECT macros and enforce the clang-tidy checks modernize-use-equals-default in macros as well.
Optimize iterator advancement in C++ bindings.
Use the modern PyObject_GenericGetDict and PyObject_GenericSetDict for handling dynamic attribute dictionaries.
Document that users should use PYBIND11_NAMESPACE instead of using pybind11 when opening namespaces. Using namespace declarations and namespace qualification remain the same as pybind11. This is done to ensure consistent symbol visibility.
Mark detail::forward_like as constexpr.
Optimize unpacking_collector when processing arg_v arguments.
Optimize casting C++ object to None.

Build system improvements:

CMake: revert overwrite behavior, now opt-in with PYBIND11_PYTHONLIBS_OVERRWRITE OFF.
Include a pkg-config file when installing pybind11, such as in the Python package.
Avoid stripping debug symbols when CMAKE_BUILD_TYPE is set to DEBUG instead of Debug.
Followup to
@
text
@d1 1
a1 1
@@comment $NetBSD: PLIST,v 1.4 2022/10/05 20:53:35 adam Exp $
d36 2
@


1.4
log
@py-pybind11: updated to 2.10.0

Version 2.10.0

Removed support for Python 2.7, Python 3.5, and MSVC 2015. Support for MSVC 2017 is limited due to availability of CI runners; we highly recommend MSVC 2019 or 2022 be used. Initial support added for Python 3.11.

New features:

py::anyset & py::frozenset were added, with copying (cast) to std::set (similar to set).
Support bytearray casting to string.
type_caster<std::monostate> was added. std::monostate is a tag type that allows std::variant to act as an optional, or allows default construction of a std::variant holding a non-default constructible type.
pybind11::capsule::set_name added to mutate the name of the capsule instance.
NumPy: dtype constructor from type number added, accessors corresponding to Python API dtype.num, dtype.byteorder, dtype.flags and dtype.alignment added.

Changes:

Python 3.6 is now the minimum supported version.
The minimum version for MSVC is now 2017.
Fix issues with CPython 3.11 betas and add to supported test matrix.
error_already_set is now safer and more performant, especially for exceptions with long tracebacks, by delaying computation.
Improve exception handling in python str bindings.
The bindings for capsules now have more consistent exception handling.
PYBIND11_OBJECT_CVT and PYBIND11_OBJECT_CVT_DEFAULT macro can now be used to define classes in namespaces other than pybind11.
Error printing code now uses PYBIND11_DETAILED_ERROR_MESSAGES instead of requiring NDEBUG, allowing use with release builds if desired.
Implicit conversion of the literal 0 to pybind11::handle is now disabled.

Bug fixes:

Fix exception handling when pybind11::weakref() fails.
module_::def_submodule was missing proper error handling. This is fixed now.
The behavior or error_already_set was made safer and the highly opaque "Unknown internal error occurred" message was replaced with a more helpful message.
error_already_set::what() now handles non-normalized exceptions correctly.
Support older C++ compilers where filesystem is not yet part of the standard library and is instead included in std::experimental::filesystem.
Fix -Wfree-nonheap-object warnings produced by GCC by avoiding returning pointers to static objects with return_value_policy::take_ownership.
Fix cast from pytype rvalue to another pytype.
Ensure proper behavior when garbage collecting classes with dynamic attributes in Python >=3.9.
A couple long-standing PYBIND11_NAMESPACE __attribute__((visibility("hidden"))) inconsistencies are now fixed (affects only unusual environments).
pybind11::detail::get_internals() is now resilient to in-flight Python exceptions.
Arrays with a dimension of size 0 are now properly converted to dynamic Eigen matrices (more common in NumPy 1.23).
Avoid catching unrelated errors when importing NumPy.

Performance and style:

Added an accessor overload of (object &&key) to reference steal the object when using python types as keys. This prevents unnecessary reference count overhead for attr, dictionary, tuple, and sequence look ups. Added additional regression tests. Fixed a performance bug the caused accessor assignments to potentially perform unnecessary copies.
Perfect forward all args of make_iterator.
Avoid potential bug in pycapsule destructor by adding an error_guard to one of the dtors.
Optimize dictionary access in strip_padding for numpy.
stl_bind.h bindings now take slice args as a const-ref.
Made slice constructor more consistent, and improve performance of some casters by allowing reference stealing.
Change numpy dtype from_args method to use const ref.
Follow rule of three to ensure PyErr_Restore is called only once.
Added missing perfect forwarding for make_iterator functions.
Optimize c++ to python function casting by using the rvalue caster.
Optimize Eigen sparse matrix casting by removing unnecessary temporary.
Avoid potential implicit copy/assignment constructors causing double free in strdup_gaurd.
Enable clang-tidy checks misc-definitions-in-headers, modernize-loop-convert, and modernize-use-nullptr.

Build system improvements:

CMake: Fix file extension on Windows with cp36 and cp37 using FindPython.
CMake: Support multiple Python targets (such as on vcpkg).
CMake: Fix issue with NVCC on Windows.
CMake: Drop the bitness check on cross compiles (like targeting WebAssembly via Emscripten).
Add MSVC builds in debug mode to CI.
MSVC 2022 C++20 coverage was added to GitHub Actions, including Eigen.

Backend and tidying up:

New theme for the documentation.
Remove idioms in code comments. Use more inclusive language.
#include <iostream> was removed from the pybind11/stl.h header. Your project may break if it has a transitive dependency on this include. The fix is to "Include What You Use".
Avoid setup.py <command> usage in internal tests.
@
text
@d1 1
a1 1
@@comment $NetBSD: PLIST,v 1.3 2021/08/02 20:35:42 adam Exp $
d60 1
@


1.3
log
@py-pybind11: updated to 2.7.0

Version 2.7.0

New features:

Enable py::implicitly_convertible<py::none, ...> for py::class_-wrapped types.
Allow function pointer extraction from overloaded functions.
NumPy: added .char_() to type which gives the NumPy public char result, which also distinguishes types by bit length (unlike .kind()).
Add pybind11::bytearray to manipulate bytearray similar to bytes.
pybind11/stl/filesystem.h registers a type caster that, on C++17/Python 3.6+, converts std::filesystem::path to pathlib.Path and any os.PathLike to std::filesystem::path.
A PYBIND11_VERSION_HEX define was added, similar to PY_VERSION_HEX.

Changes:

py::str changed to exclusively hold PyUnicodeObject. Previously py::str could
also hold bytes, which is probably surprising, was never documented, and can mask bugs (e.g. accidental use of py::str instead of py::bytes).
Add a safety guard to ensure that the Python GIL is held when C++ calls back into Python via object_api<>::operator() (e.g. py::function __call__). (This feature is available for Python 3.6+ only.)
Catch a missing self argument in calls to __init__().
Use std::string_view if available to avoid a copy when passing an object to a std::ostream.
An important warning about thread safety was added to the iostream.h documentation; attempts to make py::scoped_ostream_redirect thread safe have been removed, as it was only partially effective.

Fixes:

Performance: avoid unnecessary strlen calls.
Fix auto-generated documentation string when using const T in pyarray_t.
Unify error messages thrown by simple_collector/unpacking_collector.
pybind11::builtin_exception is now explicitly exported, which means the types included/defined in different modules are identical, and exceptions raised in different modules can be caught correctly. The documentation was updated to explain that custom exceptions that are used across module boundaries need to be explicitly exported as well.
Fixed exception when printing UTF-8 to a scoped_ostream_redirect.
Pickle support enhancement: setstate implementation will attempt to setattr __dict__ only if the unpickled dict object is not empty, to not force use of py::dynamic_attr() unnecessarily.
Allow negative timedelta values to roundtrip.
Fix unchecked errors could potentially swallow signals/other exceptions.
Add null pointer check with std::localtime.
Fix the weakref constructor from py::object to create a new weakref on conversion.
Avoid relying on exceptions in C++17 when getting a shared_ptr holder from a shared_from_this class.
Allow the codec's exception to be raised instead of RuntimeError when casting from py::str to std::string.

Build system improvements:

In setup_helpers.py, test for platforms that have some multiprocessing features but lack semaphores, which ParallelCompile requires.
Fix pybind11_INCLUDE_DIR in case CMAKE_INSTALL_INCLUDEDIR is absolute.
Fix bug not respecting WITH_SOABI or WITHOUT_SOABI to CMake.
Fix the default Pybind11Extension compilation flags with a Mingw64 python.
Clang on Windows: do not pass /MP (ignored flag).
pybind11.setup_helpers.intree_extensions can be used to generate Pybind11Extension instances from cpp files placed in the Python
package source tree.

Backend and tidying up:

Enable clang-tidy performance, readability, and modernization checks throughout the codebase to enforce best coding practices.,
Checks for common misspellings were added to the pre-commit hooks.
Changed Werror to stricter Werror-all for Intel compiler and fixed minor issues.
Fixed compilation with GCC < 5 when the user defines _GLIBCXX_USE_CXX11_ABI.
Added nox support for easier local testing and linting of contributions. and
Avoid RTD style issue with docutils 0.17+.
Support pipx run, such as pipx run pybind11 --include for a quick compile.
@
text
@d1 1
a1 1
@@comment $NetBSD: PLIST,v 1.2 2021/04/05 18:31:56 tnn Exp $
a17 1
${PYSITELIB}/pybind11/_version.pyi
a51 1
${PYSITELIB}/pybind11/setup_helpers.pyi
@


1.2
log
@py-pybind11: update to 2.6.2

New features in 2.6.x:
Keyword-only arguments supported in Python 2 or 3 with py::kw_only().
Positional-only arguments supported in Python 2 or 3 with py::pos_only().
py::is_final() class modifier to block subclassing (CPython only).
Added py::prepend(), allowing a function to be placed at the beginning of the overload chain.
Access to the type object now provided with py::type::of<T>() and py::type::of(h).
Perfect forwarding support for methods.
Added py::error_already_set::discard_as_unraisable().
py::hash is now public.
py::class_<union_type> is now supported.
Classes now check local scope when registering members
@
text
@d1 1
a1 1
@@comment $NetBSD$
d34 1
d40 1
d48 1
@


1.1
log
@py-pybind11: added version 2.5.0

pybind11 is a lightweight header-only library that exposes C++ types in Python
and vice versa, mainly to create Python bindings of existing C++ code. Its
goals and syntax are similar to the excellent Boost.Python by David Abrahams:
to minimize boilerplate code in traditional extension modules by inferring type
information using compile-time introspection.
@
text
@d2 1
a2 24
${PYINC}/pybind11/attr.h
${PYINC}/pybind11/buffer_info.h
${PYINC}/pybind11/cast.h
${PYINC}/pybind11/chrono.h
${PYINC}/pybind11/common.h
${PYINC}/pybind11/complex.h
${PYINC}/pybind11/detail/class.h
${PYINC}/pybind11/detail/common.h
${PYINC}/pybind11/detail/descr.h
${PYINC}/pybind11/detail/init.h
${PYINC}/pybind11/detail/internals.h
${PYINC}/pybind11/detail/typeid.h
${PYINC}/pybind11/eigen.h
${PYINC}/pybind11/embed.h
${PYINC}/pybind11/eval.h
${PYINC}/pybind11/functional.h
${PYINC}/pybind11/iostream.h
${PYINC}/pybind11/numpy.h
${PYINC}/pybind11/operators.h
${PYINC}/pybind11/options.h
${PYINC}/pybind11/pybind11.h
${PYINC}/pybind11/pytypes.h
${PYINC}/pybind11/stl.h
${PYINC}/pybind11/stl_bind.h
d6 1
d8 1
d18 1
d20 3
d47 12
@

