diff --git a/pybind11-2.8.1.tar.gz b/pybind11-2.8.1.tar.gz deleted file mode 100644 index 4ec23d6..0000000 --- a/pybind11-2.8.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f1bcc07caa568eb312411dde5308b1e250bd0e1bc020fae855bf9f43209940cc -size 693075 diff --git a/pybind11-2.9.1.tar.gz b/pybind11-2.9.1.tar.gz new file mode 100644 index 0000000..e291150 --- /dev/null +++ b/pybind11-2.9.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c6160321dc98e6e1184cc791fbeadd2907bb4a0ce0e447f2ea4ff8ab56550913 +size 703882 diff --git a/python-pybind11.changes b/python-pybind11.changes index f85ce83..80f308e 100644 --- a/python-pybind11.changes +++ b/python-pybind11.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Sun Mar 27 15:11:08 UTC 2022 - Dirk Müller + +- 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> for Eigen 3.3+. + * Tweaks to support Microsoft Visual Studio 2022. + ------------------------------------------------------------------- Mon Dec 6 10:07:33 UTC 2021 - Dirk Müller diff --git a/python-pybind11.spec b/python-pybind11.spec index 97b2f99..2dd5138 100644 --- a/python-pybind11.spec +++ b/python-pybind11.spec @@ -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)'