forked from pool/python-pybind11
This branch is 5 commits behind pool/python-pybind11:factory
- update to 2.12.0:
* pybind11 now supports compiling for NumPy 2.
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
* 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
OBS-URL: https://build.opensuse.org/request/show/1165773
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=23
Description
No description provided
Languages
RPM Spec
100%