17
0

3 Commits

Author SHA256 Message Date
ad918c88d8 Accepting request 1201569 from devel:languages:python
- update to 2.13.6:
  * 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+. #5296
  * Using __cpp_nontype_template_args instead of
    __cpp_nontype_template_parameter_class. #5330
  * Properly translate C++ exception to Python exception when
    creating Python buffer from wrapped object. #5324
  * Adds an answer (FAQ) for "What is a highly conclusive and
    simple way to find memory leaks?". #5340
- update to 2.13.5:
  * Fix includes when using Windows long paths (\?\ prefix).
  * Support -Wpedantic in C++20 mode. #5322
  * Fix and test <ranges> support for py::tuple and py::list.
  * Fix paths with spaces, including on Windows. (Replaces
    regression from #5302) #4874
  * Remove repetitive words. #5308
  * Quote paths from pybind11-config #5302
  * Fix typo in Emscripten support when in config mode (CMake)
    #5301
  * 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). #4597
  * Use PyMutex instead of std::mutex for internal locking in the
    free-threaded build. #5219
  * Add a special type annotation for C++ empty tuple. #5214
  * When compiling for WebAssembly, add the required exception
    flags (CMake 3.13+). #5298
  * Make gil_safe_call_once_and_store thread-safe in free-
    threaded CPython. #5246
  * 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). #5208
  * Fix regression introduced in #5201 for GCC<10.3 in C++20
    mode. #5205
  * Remove extra = when assigning flto value in the case for
    Clang in CMake. #5207
  * Add support for Typing.Callable[..., T]. #5202
  * Avoid aligned allocation in free-threaded build in order to
    support macOS versions before 10.14. #5200
  * 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
  * 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
  * Build docs updated to feature scikit-build-core and meson-
    python, and updated setuptools instructions. #5168

OBS-URL: https://build.opensuse.org/request/show/1201569
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=24
2024-09-17 16:17:31 +00:00
f4b4df772e - update to 2.13.6:
* 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+. #5296
  * Using __cpp_nontype_template_args instead of
    __cpp_nontype_template_parameter_class. #5330
  * Properly translate C++ exception to Python exception when
    creating Python buffer from wrapped object. #5324
  * Adds an answer (FAQ) for "What is a highly conclusive and
    simple way to find memory leaks?". #5340

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=51
2024-09-16 08:13:27 +00:00
6d95345e3b - update to 2.13.5:
* Fix includes when using Windows long paths (\?\ prefix).
  * Support -Wpedantic in C++20 mode. #5322
  * Fix and test <ranges> support for py::tuple and py::list.
  * Fix paths with spaces, including on Windows. (Replaces
    regression from #5302) #4874
  * Remove repetitive words. #5308
  * Quote paths from pybind11-config #5302
  * Fix typo in Emscripten support when in config mode (CMake)
    #5301
  * 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). #4597
  * Use PyMutex instead of std::mutex for internal locking in the
    free-threaded build. #5219
  * Add a special type annotation for C++ empty tuple. #5214
  * When compiling for WebAssembly, add the required exception
    flags (CMake 3.13+). #5298
  * Make gil_safe_call_once_and_store thread-safe in free-
    threaded CPython. #5246
  * 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). #5208
  * Fix regression introduced in #5201 for GCC<10.3 in C++20
    mode. #5205
  * Remove extra = when assigning flto value in the case for
    Clang in CMake. #5207
  * Add support for Typing.Callable[..., T]. #5202

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=50
2024-08-31 12:21:59 +00:00
4 changed files with 8 additions and 24 deletions

BIN
pybind11-2.13.6.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

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

View File

@@ -1,18 +1,3 @@
-------------------------------------------------------------------
Wed Sep 17 15:21:56 UTC 2025 - Markéta Machová <mmachova@suse.com>
- update to 3.0.1
* Pybind11 3.0 includes an ABI bump, the first required bump in
many years on Unix
* 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
* Please see upstream changelog for a more detailed info
-------------------------------------------------------------------
Mon Sep 16 08:13:17 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pybind11
#
# Copyright (c) 2025 SUSE LLC and contributors
# 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
@@ -34,16 +34,16 @@
%define plainpython python
%{?sle15_python_module_pythons}
Name: python-pybind11%{psuffix}
Version: 3.0.1
Version: 2.13.6
Release: 0
Summary: Module for operability between C++11 and Python
License: BSD-3-Clause
URL: https://github.com/pybind/pybind11
Source: https://github.com/pybind/pybind11/archive/v%{version}.tar.gz#/pybind11-%{version}.tar.gz
Source99: python-pybind11-rpmlintrc
BuildRequires: %{python_module devel >= 3.8}
BuildRequires: %{python_module devel >= 3.6}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module scikit-build-core >= 0.11.2}
BuildRequires: %{python_module setuptools >= 42}
BuildRequires: %{python_module wheel}
BuildRequires: cmake >= 3.18
BuildRequires: fdupes
@@ -178,13 +178,12 @@ end
%if !%{with test}
%files %{python_files}
%doc README.rst docs/changelog.md
%doc README.rst docs/changelog.rst
%license LICENSE
%python_alternative %{_bindir}/pybind11-config
%{python_sitelib}/pybind11
%exclude %{python_sitelib}/pybind11/share/cmake
%exclude %{python_sitelib}/pybind11/include
%exclude %{python_sitelib}/pybind11/share/pkgconfig
%{python_sitelib}/pybind11-%{version}*-info
%files -n %{name}-common-devel