forked from pool/python-pybind11
- 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/package/show/devel:languages:python/python-pybind11?expand=0&rev=48
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file
|
||||
# spec file for package python-pybind11
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -35,7 +35,7 @@
|
||||
%define plainpython python
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-pybind11%{psuffix}
|
||||
Version: 2.11.1
|
||||
Version: 2.12.0
|
||||
Release: 0
|
||||
Summary: Module for operability between C++11 and Python
|
||||
License: BSD-3-Clause
|
||||
@@ -55,7 +55,7 @@ Requires: alts
|
||||
BuildRequires: alts
|
||||
%else
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
%endif
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module numpy}
|
||||
|
Reference in New Issue
Block a user