14
0

- update to 2.9.1:

* If possible, attach Python exception with py::raise_from to TypeError when
    casting from C++ to Python. This will give additional info if Python
    exceptions occur in the caster.
  * Add a mapping of C++11 nested exceptions to their Python exception
    equivalent using py::raise_from. This attaches the nested exceptions in
    Python using the __cause__ field. 
  * Propagate Python exception traceback using raise_from if a pybind11
    function runs out of overloads.
  * py::multiple_inheritance is now only needed when C++ bases are hidden from
    pybind11.
  * Allow py::args to be followed by other arguments; the remaining arguments
    are implicitly keyword-only, as if a py::kw_only{} annotation had been
    used.
  * Fix a rare warning about extra copy in an Eigen constructor.
  * Fix caching of the C++ overrides.
  * Add missing std::forward calls to some cpp_function overloads.
  * Support PyPy 7.3.7 and the PyPy3.8 beta. Test python-3.11 on PRs with the python dev label.
  * Replace usage of deprecated Eigen::MappedSparseMatrix with Eigen::Map<Eigen::SparseMatrix<...>> for Eigen 3.3+.
  * Tweaks to support Microsoft Visual Studio 2022.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=31
This commit is contained in:
2022-03-27 15:26:42 +00:00
committed by Git OBS Bridge
parent ddab870f37
commit 66b644bc43
4 changed files with 30 additions and 6 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f1bcc07caa568eb312411dde5308b1e250bd0e1bc020fae855bf9f43209940cc
size 693075

3
pybind11-2.9.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c6160321dc98e6e1184cc791fbeadd2907bb4a0ce0e447f2ea4ff8ab56550913
size 703882

View File

@@ -1,3 +1,27 @@
-------------------------------------------------------------------
Sun Mar 27 15:11:08 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update to 2.9.1:
* If possible, attach Python exception with py::raise_from to TypeError when
casting from C++ to Python. This will give additional info if Python
exceptions occur in the caster.
* Add a mapping of C++11 nested exceptions to their Python exception
equivalent using py::raise_from. This attaches the nested exceptions in
Python using the __cause__ field.
* Propagate Python exception traceback using raise_from if a pybind11
function runs out of overloads.
* py::multiple_inheritance is now only needed when C++ bases are hidden from
pybind11.
* Allow py::args to be followed by other arguments; the remaining arguments
are implicitly keyword-only, as if a py::kw_only{} annotation had been
used.
* Fix a rare warning about extra copy in an Eigen constructor.
* Fix caching of the C++ overrides.
* Add missing std::forward calls to some cpp_function overloads.
* Support PyPy 7.3.7 and the PyPy3.8 beta. Test python-3.11 on PRs with the python dev label.
* Replace usage of deprecated Eigen::MappedSparseMatrix with Eigen::Map<Eigen::SparseMatrix<...>> for Eigen 3.3+.
* Tweaks to support Microsoft Visual Studio 2022.
-------------------------------------------------------------------
Mon Dec 6 10:07:33 UTC 2021 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pybind11
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pybind11
Version: 2.8.1
Version: 2.9.1
Release: 0
Summary: Module for operability between C++11 and Python
License: BSD-3-Clause
@@ -98,7 +98,7 @@ rm -rfv %{buildroot}%{_includedir}/python3.*/pybind11
%check
# test fails as python3-widget is not in distribuion
rm tests/test_embed/test_interpreter.py
rm -v tests/test_embed/test_interpreter.py tests/test_embed/test_trampoline.py
export PYTHONPATH=${PWD}/build/tests/
%pytest -k 'not (tests_build_wheel or tests_build_global_wheel)'