14
0

55 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
01a51e1921 Accepting request 1165773 from devel:languages:python
- 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
2024-04-07 20:04:35 +00:00
335968c1a6 - 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
2024-04-06 12:12:35 +00:00
0f19166a7b Accepting request 1112607 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1112607
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=22
2023-09-22 19:47:17 +00:00
4ab6bac77f Accepting request 1109302 from home:jengelh:branches:devel:languages:python
- Update to release 2.11.1

OBS-URL: https://build.opensuse.org/request/show/1109302
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=46
2023-09-20 16:06:20 +00:00
69874fe124 Accepting request 1081812 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1081812
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=21
2023-04-22 19:59:23 +00:00
5a111b4a68 Accepting request 1081546 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081546
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=44
2023-04-21 14:09:21 +00:00
1452d679b7 Accepting request 1072929 from devel:languages:python
- update to 2.10.4:
  * ``python3 -m pybind11`` gained a ``--version`` option (prints
    the version and exits).
  * Fix a warning when pydebug is enabled on Python 3.11.
  * Ensure ``gil_scoped_release`` RAII is non-copyable.
  * Ensure the tests dir does not show up with new versions of
    setuptools.
  * Better stacklevel for a warning in setuptools helpers.

OBS-URL: https://build.opensuse.org/request/show/1072929
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=20
2023-03-21 16:40:07 +00:00
a57a9b187e - update to 2.10.4:
* ``python3 -m pybind11`` gained a ``--version`` option (prints
    the version and exits).
  * Fix a warning when pydebug is enabled on Python 3.11.
  * Ensure ``gil_scoped_release`` RAII is non-copyable.
  * Ensure the tests dir does not show up with new versions of
    setuptools.
  * Better stacklevel for a warning in setuptools helpers.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=42
2023-03-19 12:08:37 +00:00
9972350892 Accepting request 1058218 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1058218
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=19
2023-01-14 19:31:29 +00:00
f9b128f4ea Accepting request 1058070 from home:bnavigator:branches:devel:languages:python
- Package new pkgconfig file gh#pybind/pybind11#4077
- PEP517 build
- Fix multibuild setup: unique packagename for test flavor required

OBS-URL: https://build.opensuse.org/request/show/1058070
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=40
2023-01-13 12:02:24 +00:00
b3df88bd5f - update to 2.10.3:
* Temporarily made our GIL status assertions (added in 2.10.2) disabled by
  default (re-enable manually by defining
  ``PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF``, will be enabled in 2.11).
  * Improved error messages when ``inc_ref``/``dec_ref`` are called with an
  invalid GIL state.
  * Some minor touchups found by static analyzers.
  * ``scoped_interpreter`` constructor taking ``PyConfig``.
  * ``pybind11/eigen/tensor.h`` adds converters to and from
    ``Eigen::Tensor`` and
  ``Eigen::TensorMap``.
  * ``PyGILState_Check()``'s  were integrated to ``pybind11::handle``
  ``inc_ref()`` & ``dec_ref()``. The added GIL checks are guarded by
  ``PYBIND11_ASSERT_GIL_HELD_INCREF_DECREF``, which is the default only if
  ``NDEBUG`` is not defined. (Made non-default in 2.10.3, will be active in 2.11)
  * Add option for enable/disable enum members in docstring.
  * Fixed typing of ``KeysView``, ``ValuesView`` and ``ItemsView`` in
    ``bind_map``.
  * Fix segfault bug when passing foreign native functions to functional.h.
  * Build system improvements:
  * Support setting PYTHON_LIBRARIES manually for Windows ARM cross-
    compilation
  (classic mode).
  * Extend IPO/LTO detection for ICX (a.k.a IntelLLVM) compiler.
  * Allow calling ``find_package(pybind11 CONFIG)`` multiple times from
    separate
  directories in the same CMake project and properly link Python (new mode).
  * ``multiprocessing_set_spawn`` in pytest fixture for added safety.
  * Fixed a bug in two pybind11/tools cmake scripts causing "Unknown
    arguments specified" errors.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=39
2023-01-04 19:52:08 +00:00
02ce9b3b8d Accepting request 1003975 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1003975
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=18
2022-09-17 18:08:23 +00:00
b33aa1837f Accepting request 1003972 from home:bnavigator:branches:devel:languages:python
- %pretrans must be lua
- requires python-rpm-macros >= 20220912 because of parameter in
  scriptlet
- Fix subdirectory links

OBS-URL: https://build.opensuse.org/request/show/1003972
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=37
2022-09-15 22:15:13 +00:00
3e6bf1e682 Accepting request 1003624 from home:bnavigator:branches:devel:languages:python
- Work around long standing rpm-directory-to-symlink-bug
  * https://docs.fedoraproject.org/en-US/packaging-guidelines/Directory_Replacement/
  * rh#447156
  * use shell instead of lua for pretrans scriptlet

OBS-URL: https://build.opensuse.org/request/show/1003624
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=36
2022-09-15 12:20:26 +00:00
904456585f Accepting request 1002559 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 2.10.0
  * Removed support for Python 2.7, Python 3.5, and MSVC 2015.
    Support for MSVC 2017 is limited due to availability of CI
    runners; we highly recommend MSVC 2019 or 2022 be used.
    Initial support added for Python 3.11.
  * New features:
    + py::anyset & py::frozenset were added, with copying (cast)
      to std::set (similar to set). #3901
    + Support bytearray casting to string. #3707
    + type_caster<std::monostate> was added. std::monostate is a
      tag type that allows std::variant to act as an optional, or
      allows default construction of a std::variant holding a
      non-default constructible type. #3818
    + pybind11::capsule::set_name added to mutate the name of the
      capsule instance. #3866
    + NumPy: dtype constructor from type number added, accessors
      corresponding to Python API dtype.num, dtype.byteorder,
      dtype.flags and dtype.alignment added. #3868
  * Changes:
    + Python 3.6 is now the minimum supported version. #3688 #3719
    + The minimum version for MSVC is now 2017. #3722
    + Fix issues with CPython 3.11 betas and add to supported test
      matrix. #3923
    + error_already_set is now safer and more performant,
      especially for exceptions with long tracebacks, by delaying
      computation. #1895
    + Improve exception handling in python str bindings. #3826
    + The bindings for capsules now have more consistent exception
      handling. #3825
    + PYBIND11_OBJECT_CVT and PYBIND11_OBJECT_CVT_DEFAULT macro
      can now be used to define classes in namespaces other than
      pybind11. #3797
    + Error printing code now uses
      PYBIND11_DETAILED_ERROR_MESSAGES instead of requiring
      NDEBUG, allowing use with release builds if desired. #3913
    + Implicit conversion of the literal 0 to pybind11::handle is
      now disabled. #4008
  * Bug fixes:
    + Fix exception handling when pybind11::weakref() fails. #3739
    + module_::def_submodule was missing proper error handling.
      This is fixed now. #3973
    + The behavior or error_already_set was made safer and the
      highly opaque "Unknown internal error occurred" message was
      replaced with a more helpful message. #3982
    + error_already_set::what() now handles non-normalized
      exceptions correctly. #3971
    + Support older C++ compilers where filesystem is not yet part
      of the standard library and is instead included in
      std::experimental::filesystem. #3840
    + Fix -Wfree-nonheap-object warnings produced by GCC by
      avoiding returning pointers to static objects with
      return_value_policy::take_ownership. #3946
    + Fix cast from pytype rvalue to another pytype. #3949
    + Ensure proper behavior when garbage collecting classes with
      dynamic attributes in Python >=3.9. #4051
    + A couple long-standing PYBIND11_NAMESPACE
      __attribute__((visibility("hidden"))) inconsistencies are
      now fixed (affects only unusual environments). #4043
    + pybind11::detail::get_internals() is now resilient to
      in-flight Python exceptions. #3981
    + Arrays with a dimension of size 0 are now properly converted
      to dynamic Eigen matrices (more common in NumPy 1.23). #4038
    + Avoid catching unrelated errors when importing NumPy. #3974
  * Performance and style:
    + Added an accessor overload of (object &&key) to reference
      steal the object when using python types as keys. This
      prevents unnecessary reference count overhead for attr,
      dictionary, tuple, and sequence look ups. Added additional
      regression tests. Fixed a performance bug the caused
      accessor assignments to potentially perform unnecessary
      copies. #3970
    + Perfect forward all args of make_iterator. #3980
    + Avoid potential bug in pycapsule destructor by adding an
      error_guard to one of the dtors. #3958
    + Optimize dictionary access in strip_padding for numpy. #3994
    + stl_bind.h bindings now take slice args as a const-ref.
      #3852
    + Made slice constructor more consistent, and improve
      performance of some casters by allowing reference stealing.
      #3845
    + Change numpy dtype from_args method to use const ref. #3878
    + Follow rule of three to ensure PyErr_Restore is called only
      once. #3872
    + Added missing perfect forwarding for make_iterator
      functions. #3860
    + Optimize c++ to python function casting by using the rvalue
      caster. #3966
    + Optimize Eigen sparse matrix casting by removing unnecessary
      temporary. #4064
    + Avoid potential implicit copy/assignment constructors
      causing double free in strdup_gaurd. #3905
    + Enable clang-tidy checks misc-definitions-in-headers,
      modernize-loop-convert, and modernize-use-nullptr. #3881
      #3988
  * Build system improvements:
    + CMake: Fix file extension on Windows with cp36 and cp37
      using FindPython. #3919
    + CMake: Support multiple Python targets (such as on vcpkg).
      #3948
    + CMake: Fix issue with NVCC on Windows. #3947
    + CMake: Drop the bitness check on cross compiles (like
      targeting WebAssembly via Emscripten). #3959
    + Add MSVC builds in debug mode to CI. #3784
    + MSVC 2022 C++20 coverage was added to GitHub Actions,
      including Eigen. #3732, #3741
  * Backend and tidying up:
    + New theme for the documentation. #3109
    + Remove idioms in code comments. Use more inclusive language.
      #3809
    + #include <iostream> was removed from the pybind11/stl.h
      header. Your project may break if it has a transitive
      dependency on this include. The fix is to "Include What You
      Use". #3928
    + Avoid setup.py <command> usage in internal tests. #3734
- Fix header deduplication: pybind11.get_include still reports
  the headers to be in the sitelib (SciPy meson build fail)
- Test in multibuild as some tests expect the system-wide
  %_includedir/pybind11/pybind11.h
- update to 2.9.2:
  * Enum now has an ``__index__`` method on Python <3.8 too.
  * Local internals are now cleared after finalizing the interpreter.
  * Better support for Python 3.11 alphas.
  * ``PYBIND11_TYPE_CASTER`` now uses fully qualified symbols, so it can be used
    outside of ``pybind11::detail``.
  * Some fixes for PyPy 3.9.
  * Fixed a potential memleak in PyPy in ``get_type_override``.
  * Fix usage of ``VISIBILITY_INLINES_HIDDEN``.
  * Uses ``sysconfig`` module to determine installation locations on Python >=
    3.10, instead of ``distutils`` which has been deprecated.
  * Support Catch 2.13.5+ (supporting GLIBC 2.34+).
  * Fix test failures with numpy 1.22 by ignoring whitespace when comparing
    ``str()`` of dtypes.
- 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.
- udpate to 2.8.1:
  * The simple namespace creation shortcut added in 2.8.0 was deprecated due to
    usage of CPython internal API, and will be removed soon.
  * Add C++ Exception type to throw and catch ``AttributeError``.
  * Fixed the potential for dangling references when using properties with
  ``std::optional`` types.
  * Modernize usage of ``PyCodeObject`` on Python 3.9+ (moving toward support for
    Python 3.11a1)
  * A long-standing bug in ``eigen.h`` was fixed (originally PR #3343). The bug
    was unmasked by newly added ``static_assert``'s in the Eigen 3.4.0 release.
  * Support multiple raw inclusion of CMake helper files
  * Fix harmless warning on upcoming CMake 3.22.
  * Fix 2.8.0 regression with MSVC 2017 + C++17 mode + Python 3.
  * Fix 2.8.0 regression that caused undefined behavior (typically
    segfaults) in ``make_key_iterator``/``make_value_iterator`` if dereferencing
    the iterator returned a temporary value instead of a reference.
- Use libalternatives instead of update-alternatives.
- Update to v2.8.0
  * Added py::raise_from to enable chaining exceptions. #3215
  * Allow exception translators to be optionally registered local
    to a module instead of applying globally across all pybind11
    modules. Use
    register_local_exception_translator(ExceptionTranslator&&
    translator) instead of
    register_exception_translator(ExceptionTranslator&& translator)
    to keep your exception remapping code local to the module.
    #2650
  * Add make_simple_namespace function for instantiating Python
    SimpleNamespace objects. #2840
  * pybind11::scoped_interpreter and initialize_interpreter have
    new arguments to allow sys.argv initialization. #2341
  * Allow Python builtins to be used as callbacks in CPython. #1413
  * Added view to view arrays with a different datatype. #987
  * Implemented reshape on arrays. #984
  * Enable defining custom __new__ methods on classes by fixing bug
    preventing overriding methods if they have non-pybind11
    siblings. #3265
  * Add make_value_iterator(), and fix make_key_iterator() to
    return references instead of copies. #3293
  * Improve the classes generated by bind_map: #3310
  * Change .items from an iterator to a dictionary view.
  * Add .keys and .values (both dictionary views).
  * Allow __contains__ to take any object.
  * pybind11::custom_type_setup was added, for customizing the
    PyHeapTypeObject corresponding to a class, which may be useful
    for enabling garbage collection support, among other things.
    #3287
  * Set __file__ constant when running eval_file in an embedded
    interpreter. #3233
  * Python objects and (C++17) std::optional now accepted in
    py::slice constructor. #1101
  * The pybind11 proxy types str, bytes, bytearray, tuple, list now
    consistently support passing ssize_t values for sizes and
    indexes. Previously, only size_t was accepted in several
    interfaces. #3219
  * Avoid evaluating PYBIND11_TLS_REPLACE_VALUE arguments more than
    once. #3290
  * Bug fix: enum value's __int__ returning non-int when underlying
    type is bool or of char type. #1334
  * Fixes bug in setting error state in Capsule's pointer methods.
    #3261
  * A long-standing memory leak in py::cpp_function::initialize was
    fixed. #3229
  * Fixes thread safety for some pybind11::type_caster which
    require lifetime extension, such as for std::string_view. #3237
  * Restore compatibility with gcc 4.8.4 as distributed by
    ubuntu-trusty, linuxmint-17. #3270
  * Fix regression in CMake Python package config: improper use of
    absolute path. #3144
  * Cached Python version information could become stale when CMake
    was re-run with a different Python version. The build system
    now detects this and updates this information. #3299
  * Specified UTF8-encoding in setup.py calls of open(). #3137
  * Fix a harmless warning from CMake 3.21 with the classic Python
    discovery. #3220
  * Eigen repo and version can now be specified as cmake options.
    #3324
  * Reduced thread-local storage required for keeping alive
    temporary data for type conversion to one key per ABI version,
    rather than one key per extension module. This makes the total
    thread-local storage required by pybind11 2 keys per ABI
    version. #3275
  * Optimize NumPy array construction with additional moves. #3183
  * Conversion to std::string and std::string_view now avoids
    making an extra copy of the data on Python >= 3.3. #3257
  * Remove const modifier from certain C++ methods on Python
    collections (list, set, dict) such as (clear(), append(),
    insert(), etc...) and annotated them with py-non-const.
  * Enable readability clang-tidy-const-return and remove useless
    consts. #3254 #3194
  * The clang-tidy google-explicit-constructor option was enabled.
    #3250
  * Mark a pytype move constructor as noexcept (perf). #3236
  * Enable clang-tidy check to guard against inheritance slicing.
    #3210
  * Legacy warning suppression pragma were removed from eigen.h. On
    Unix platforms, please use -isystem for Eigen include
    directories, to suppress compiler warnings originating from
    Eigen headers. Note that CMake does this by default. No
    adjustments are needed for Windows. #3198
  * Format pybind11 with isort consistent ordering of imports #3195
  * The warnings-suppression "pragma clamp" at the top/bottom of
    pybind11 was removed, clearing the path to refactoring and IWYU
    cleanup. #3186
  * Enable most bugprone checks in clang-tidy and fix the found
    potential bugs and poor coding styles. #3166
  * Add clang-tidy-readability rules to make boolean casts explicit
    improving code readability. Also enabled other misc and
    readability clang-tidy checks. #3148
  * Move object in .pop() for list. #3116
- Release 2.7.1
  * Allow Python builtins to be used as callbacks in CPython. #1413
  * Fix regression in CMake Python package config: improper use of
    absolute path. #3144
  * Fix Mingw64 and add to the CI testing matrix. #3132
  * Specified UTF8-encoding in setup.py calls of open(). #3137
  * Add clang-tidy-readability rules to make boolean casts explicit
    improving code readability. Also enabled other misc and
    readability clang-tidy checks. #3148
  * Move object in .pop() for list. #3116
  * Removed and fixed warning suppressions. #3127 #3129 #3135 #3141
    #3142 #3150 #3152 #3160 #3161
- Release 2.7.0
  * Enable py::implicitly_convertible<py::none, ...> for
    py::class_-wrapped types. #3059
  * Allow function pointer extraction from overloaded functions.
    #2944
  * NumPy: added .char_() to type which gives the NumPy public char
    result, which also distinguishes types by bit length (unlike
    .kind()). #2864
  * Add pybind11::bytearray to manipulate bytearray similar to
    bytes. #2799
  * pybind11/stl/filesystem.h registers a type caster that, on
    C++17/Python 3.6+, converts std::filesystem::path to
    pathlib.Path and any os.PathLike to std::filesystem::path.
    #2730
  * A PYBIND11_VERSION_HEX define was added, similar to
    PY_VERSION_HEX. #3120
  * py::str changed to exclusively hold PyUnicodeObject. Previously
    py::str could also hold bytes, which is probably surprising,
    was never documented, and can mask bugs (e.g. accidental use of
    py::str instead of py::bytes). #2409
  * Add a safety guard to ensure that the Python GIL is held when
    C++ calls back into Python via object_api<>::operator() (e.g.
    py::function __call__). (This feature is available for Python
    3.6+ only.) #2919
  * Catch a missing self argument in calls to __init__(). #2914
  * Use std::string_view if available to avoid a copy when passing
    an object to a std::ostream. #3042
  * An important warning about thread safety was added to the
    iostream.h documentation; attempts to make
    py::scoped_ostream_redirect thread safe have been removed, as
    it was only partially effective. #2995
  * Performance: avoid unnecessary strlen calls. #3058
  * Fix auto-generated documentation string when using const T in
    pyarray_t. #3020
  * Unify error messages thrown by
    simple_collector/unpacking_collector. #3013
  * pybind11::builtin_exception is now explicitly exported, which
    means the types included/defined in different modules are
    identical, and exceptions raised in different modules can be
    caught correctly. The documentation was updated to explain that
    custom exceptions that are used across module boundaries need
    to be explicitly exported as well. #2999
  * Fixed exception when printing UTF-8 to a
    scoped_ostream_redirect. #2982
  * Pickle support enhancement: setstate implementation will
    attempt to setattr __dict__ only if the unpickled dict object
    is not empty, to not force use of py::dynamic_attr()
    unnecessarily. #2972
  * Allow negative timedelta values to roundtrip. #2870
  * Fix unchecked errors could potentially swallow signals/other
    exceptions. #2863
  * Add null pointer check with std::localtime. #2846
  * Fix the weakref constructor from py::object to create a new
    weakref on conversion. #2832
  * Avoid relying on exceptions in C++17 when getting a shared_ptr
    holder from a shared_from_this class. #2819
  * Allow the codec's exception to be raised instead of
    RuntimeError when casting from py::str to std::string. #2903
  * In setup_helpers.py, test for platforms that have some
    multiprocessing features but lack semaphores, which
    ParallelCompile requires. #3043
  * Fix pybind11_INCLUDE_DIR in case CMAKE_INSTALL_INCLUDEDIR is
    absolute. #3005
  * Fix bug not respecting WITH_SOABI or WITHOUT_SOABI to CMake.
    #2938
  * Fix the default Pybind11Extension compilation flags with a
    Mingw64 python. #2921
  * Clang on Windows: do not pass /MP (ignored flag). #2824
  * pybind11.setup_helpers.intree_extensions can be used to
    generate Pybind11Extension instances from cpp files placed in
    the Python package source tree. #2831
  * Enable clang-tidy performance, readability, and modernization
    checks throughout the codebase to enforce best coding
    practices. #3046, #3049, #3051, #3052, #3080, and #3094
  * Checks for common misspellings were added to the pre-commit
    hooks. #3076
  * Changed Werror to stricter Werror-all for Intel compiler and
    fixed minor issues. #2948
  * Fixed compilation with GCC < 5 when the user defines
    _GLIBCXX_USE_CXX11_ABI. #2956
  * Added nox support for easier local testing and linting of
    contributions. #3101 and #3121
  * Avoid RTD style issue with docutils 0.17+. #3119
  * Support pipx run, such as pipx run pybind11 --include for a
    quick compile. #3117
- Drop unicode.patch merged upstream
- Add upstream patch unicode.patch to fix random python crash
- Dont test with python36-numpy. Tumbleweed's NumPy >= 1.20 dropped
  support for Python 3.6
- Add docs/changelog.rst to package contents
- Update to v2.6.2
  * See changelog for changes since 2.5.0
- Also expand generation of test binaries for Python 2 and 3,
  fixes Leap 15.x builds where Python 2 is still built.
- updated to version 2.5.0 and running the internal unit tests now
- On devel files you need the pybind too to compile anything
- Fix build without python2
- Fix mixup of expanded/unexpaned python versions in devel package,
  the devel package always required python(2)-devel and
  python2-pybind. Move the data to a -common-devel subpackage,
  pulled in by versioned python{2,3}-pybind-devel packages.
- Add package version to extra devel packages added via Provides
- Update to version 2.4.3
  * Adapt pybind11 to a C API convention change in Python 3.8.
- updated to 2.4.2
 * made devel package python version independent
 * added cmake run to install cmake include files
- Replace description by something more substantial.
- Initial packaging of pybind11 2.3.0 for openSUSE

OBS-URL: https://build.opensuse.org/request/show/1002559
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=35
2022-09-14 08:07:40 +00:00
22fa7c8565 Accepting request 968080 from devel:languages:python
- update to 2.9.2:
  * Enum now has an ``__index__`` method on Python <3.8 too.
  * Local internals are now cleared after finalizing the interpreter.
  * Better support for Python 3.11 alphas.
  * ``PYBIND11_TYPE_CASTER`` now uses fully qualified symbols, so it can be used
    outside of ``pybind11::detail``.
  * Some fixes for PyPy 3.9.
  * Fixed a potential memleak in PyPy in ``get_type_override``.
  * Fix usage of ``VISIBILITY_INLINES_HIDDEN``.
  * Uses ``sysconfig`` module to determine installation locations on Python >=
    3.10, instead of ``distutils`` which has been deprecated.
  * Support Catch 2.13.5+ (supporting GLIBC 2.34+).
  * Fix test failures with numpy 1.22 by ignoring whitespace when comparing
    ``str()`` of dtypes.

OBS-URL: https://build.opensuse.org/request/show/968080
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=17
2022-04-11 22:13:54 +00:00
eb2b8e431a - update to 2.9.2:
* Enum now has an ``__index__`` method on Python <3.8 too.
  * Local internals are now cleared after finalizing the interpreter.
  * Better support for Python 3.11 alphas.
  * ``PYBIND11_TYPE_CASTER`` now uses fully qualified symbols, so it can be used
    outside of ``pybind11::detail``.
  * Some fixes for PyPy 3.9.
  * Fixed a potential memleak in PyPy in ``get_type_override``.
  * Fix usage of ``VISIBILITY_INLINES_HIDDEN``.
  * Uses ``sysconfig`` module to determine installation locations on Python >=
    3.10, instead of ``distutils`` which has been deprecated.
  * Support Catch 2.13.5+ (supporting GLIBC 2.34+).
  * Fix test failures with numpy 1.22 by ignoring whitespace when comparing
    ``str()`` of dtypes.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=33
2022-04-09 22:56:31 +00:00
d34f37647e Accepting request 965219 from devel:languages:python
- 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/request/show/965219
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=16
2022-03-29 16:14:11 +00:00
66b644bc43 - 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
2022-03-27 15:26:42 +00:00
be81fa23ca Accepting request 935976 from devel:languages:python
- udpate to 2.8.1:
  * The simple namespace creation shortcut added in 2.8.0 was deprecated due to
    usage of CPython internal API, and will be removed soon.
  * Add C++ Exception type to throw and catch ``AttributeError``.
  * Fixed the potential for dangling references when using properties with
  ``std::optional`` types.
  * Modernize usage of ``PyCodeObject`` on Python 3.9+ (moving toward support for
    Python 3.11a1)
  * A long-standing bug in ``eigen.h`` was fixed (originally PR #3343). The bug
    was unmasked by newly added ``static_assert``'s in the Eigen 3.4.0 release.
  * Support multiple raw inclusion of CMake helper files
  * Fix harmless warning on upcoming CMake 3.22.
  * Fix 2.8.0 regression with MSVC 2017 + C++17 mode + Python 3.
  * Fix 2.8.0 regression that caused undefined behavior (typically
    segfaults) in ``make_key_iterator``/``make_value_iterator`` if dereferencing
    the iterator returned a temporary value instead of a reference.

OBS-URL: https://build.opensuse.org/request/show/935976
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=15
2021-12-09 18:45:14 +00:00
ddab870f37 - udpate to 2.8.1:
* The simple namespace creation shortcut added in 2.8.0 was deprecated due to
    usage of CPython internal API, and will be removed soon.
  * Add C++ Exception type to throw and catch ``AttributeError``.
  * Fixed the potential for dangling references when using properties with
  ``std::optional`` types.
  * Modernize usage of ``PyCodeObject`` on Python 3.9+ (moving toward support for
    Python 3.11a1)
  * A long-standing bug in ``eigen.h`` was fixed (originally PR #3343). The bug
    was unmasked by newly added ``static_assert``'s in the Eigen 3.4.0 release.
  * Support multiple raw inclusion of CMake helper files
  * Fix harmless warning on upcoming CMake 3.22.
  * Fix 2.8.0 regression with MSVC 2017 + C++17 mode + Python 3.
  * Fix 2.8.0 regression that caused undefined behavior (typically
    segfaults) in ``make_key_iterator``/``make_value_iterator`` if dereferencing
    the iterator returned a temporary value instead of a reference.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=30
2021-12-06 10:47:37 +00:00
3a17a3afd3 Accepting request 930182 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/930182
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=14
2021-11-09 22:54:02 +00:00
0e85bb0e5f Accepting request 930181 from home:schubi2
- Use libalternatives instead of update-alternatives.

OBS-URL: https://build.opensuse.org/request/show/930181
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=29
2021-11-08 13:31:49 +00:00
6d403635e7 Accepting request 925748 from home:bnavigator:branches:devel:languages:python
- Update to v2.8.0
  * Added py::raise_from to enable chaining exceptions. #3215
  * Allow exception translators to be optionally registered local
    to a module instead of applying globally across all pybind11
    modules. Use
    register_local_exception_translator(ExceptionTranslator&&
    translator) instead of
    register_exception_translator(ExceptionTranslator&& translator)
    to keep your exception remapping code local to the module.
    #2650
  * Add make_simple_namespace function for instantiating Python
    SimpleNamespace objects. #2840
  * pybind11::scoped_interpreter and initialize_interpreter have
    new arguments to allow sys.argv initialization. #2341
  * Allow Python builtins to be used as callbacks in CPython. #1413
  * Added view to view arrays with a different datatype. #987
  * Implemented reshape on arrays. #984
  * Enable defining custom __new__ methods on classes by fixing bug
    preventing overriding methods if they have non-pybind11
    siblings. #3265
  * Add make_value_iterator(), and fix make_key_iterator() to
    return references instead of copies. #3293
  * Improve the classes generated by bind_map: #3310
  * Change .items from an iterator to a dictionary view.
  * Add .keys and .values (both dictionary views).
  * Allow __contains__ to take any object.
  * pybind11::custom_type_setup was added, for customizing the
    PyHeapTypeObject corresponding to a class, which may be useful
    for enabling garbage collection support, among other things.
    #3287
  * Set __file__ constant when running eval_file in an embedded
    interpreter. #3233
  * Python objects and (C++17) std::optional now accepted in
    py::slice constructor. #1101
  * The pybind11 proxy types str, bytes, bytearray, tuple, list now
    consistently support passing ssize_t values for sizes and
    indexes. Previously, only size_t was accepted in several
    interfaces. #3219
  * Avoid evaluating PYBIND11_TLS_REPLACE_VALUE arguments more than
    once. #3290
  * Bug fix: enum value's __int__ returning non-int when underlying
    type is bool or of char type. #1334
  * Fixes bug in setting error state in Capsule's pointer methods.
    #3261
  * A long-standing memory leak in py::cpp_function::initialize was
    fixed. #3229
  * Fixes thread safety for some pybind11::type_caster which
    require lifetime extension, such as for std::string_view. #3237
  * Restore compatibility with gcc 4.8.4 as distributed by
    ubuntu-trusty, linuxmint-17. #3270
  * Fix regression in CMake Python package config: improper use of
    absolute path. #3144
  * Cached Python version information could become stale when CMake
    was re-run with a different Python version. The build system
    now detects this and updates this information. #3299
  * Specified UTF8-encoding in setup.py calls of open(). #3137
  * Fix a harmless warning from CMake 3.21 with the classic Python
    discovery. #3220
  * Eigen repo and version can now be specified as cmake options.
    #3324
  * Reduced thread-local storage required for keeping alive
    temporary data for type conversion to one key per ABI version,
    rather than one key per extension module. This makes the total
    thread-local storage required by pybind11 2 keys per ABI
    version. #3275
  * Optimize NumPy array construction with additional moves. #3183
  * Conversion to std::string and std::string_view now avoids
    making an extra copy of the data on Python >= 3.3. #3257
  * Remove const modifier from certain C++ methods on Python
    collections (list, set, dict) such as (clear(), append(),
    insert(), etc...) and annotated them with py-non-const.
  * Enable readability clang-tidy-const-return and remove useless
    consts. #3254 #3194
  * The clang-tidy google-explicit-constructor option was enabled.
    #3250
  * Mark a pytype move constructor as noexcept (perf). #3236
  * Enable clang-tidy check to guard against inheritance slicing.
    #3210
  * Legacy warning suppression pragma were removed from eigen.h. On
    Unix platforms, please use -isystem for Eigen include
    directories, to suppress compiler warnings originating from
    Eigen headers. Note that CMake does this by default. No
    adjustments are needed for Windows. #3198
  * Format pybind11 with isort consistent ordering of imports #3195
  * The warnings-suppression "pragma clamp" at the top/bottom of
    pybind11 was removed, clearing the path to refactoring and IWYU
    cleanup. #3186
  * Enable most bugprone checks in clang-tidy and fix the found
    potential bugs and poor coding styles. #3166
  * Add clang-tidy-readability rules to make boolean casts explicit
    improving code readability. Also enabled other misc and
    readability clang-tidy checks. #3148
  * Move object in .pop() for list. #3116
- Release 2.7.1
  * Allow Python builtins to be used as callbacks in CPython. #1413
  * Fix regression in CMake Python package config: improper use of
    absolute path. #3144
  * Fix Mingw64 and add to the CI testing matrix. #3132
  * Specified UTF8-encoding in setup.py calls of open(). #3137
  * Add clang-tidy-readability rules to make boolean casts explicit
    improving code readability. Also enabled other misc and
    readability clang-tidy checks. #3148
  * Move object in .pop() for list. #3116
  * Removed and fixed warning suppressions. #3127 #3129 #3135 #3141
    #3142 #3150 #3152 #3160 #3161
- Release 2.7.0
  * Enable py::implicitly_convertible<py::none, ...> for
    py::class_-wrapped types. #3059
  * Allow function pointer extraction from overloaded functions.
    #2944
  * NumPy: added .char_() to type which gives the NumPy public char
    result, which also distinguishes types by bit length (unlike
    .kind()). #2864
  * Add pybind11::bytearray to manipulate bytearray similar to
    bytes. #2799
  * pybind11/stl/filesystem.h registers a type caster that, on
    C++17/Python 3.6+, converts std::filesystem::path to
    pathlib.Path and any os.PathLike to std::filesystem::path.
    #2730
  * A PYBIND11_VERSION_HEX define was added, similar to
    PY_VERSION_HEX. #3120
  * py::str changed to exclusively hold PyUnicodeObject. Previously
    py::str could also hold bytes, which is probably surprising,
    was never documented, and can mask bugs (e.g. accidental use of
    py::str instead of py::bytes). #2409
  * Add a safety guard to ensure that the Python GIL is held when
    C++ calls back into Python via object_api<>::operator() (e.g.
    py::function __call__). (This feature is available for Python
    3.6+ only.) #2919
  * Catch a missing self argument in calls to __init__(). #2914
  * Use std::string_view if available to avoid a copy when passing
    an object to a std::ostream. #3042
  * An important warning about thread safety was added to the
    iostream.h documentation; attempts to make
    py::scoped_ostream_redirect thread safe have been removed, as
    it was only partially effective. #2995
  * Performance: avoid unnecessary strlen calls. #3058
  * Fix auto-generated documentation string when using const T in
    pyarray_t. #3020
  * Unify error messages thrown by
    simple_collector/unpacking_collector. #3013
  * pybind11::builtin_exception is now explicitly exported, which
    means the types included/defined in different modules are
    identical, and exceptions raised in different modules can be
    caught correctly. The documentation was updated to explain that
    custom exceptions that are used across module boundaries need
    to be explicitly exported as well. #2999
  * Fixed exception when printing UTF-8 to a
    scoped_ostream_redirect. #2982
  * Pickle support enhancement: setstate implementation will
    attempt to setattr __dict__ only if the unpickled dict object
    is not empty, to not force use of py::dynamic_attr()
    unnecessarily. #2972
  * Allow negative timedelta values to roundtrip. #2870
  * Fix unchecked errors could potentially swallow signals/other
    exceptions. #2863
  * Add null pointer check with std::localtime. #2846
  * Fix the weakref constructor from py::object to create a new
    weakref on conversion. #2832
  * Avoid relying on exceptions in C++17 when getting a shared_ptr
    holder from a shared_from_this class. #2819
  * Allow the codec's exception to be raised instead of
    RuntimeError when casting from py::str to std::string. #2903
  * In setup_helpers.py, test for platforms that have some
    multiprocessing features but lack semaphores, which
    ParallelCompile requires. #3043
  * Fix pybind11_INCLUDE_DIR in case CMAKE_INSTALL_INCLUDEDIR is
    absolute. #3005
  * Fix bug not respecting WITH_SOABI or WITHOUT_SOABI to CMake.
    #2938
  * Fix the default Pybind11Extension compilation flags with a
    Mingw64 python. #2921
  * Clang on Windows: do not pass /MP (ignored flag). #2824
  * pybind11.setup_helpers.intree_extensions can be used to
    generate Pybind11Extension instances from cpp files placed in
    the Python package source tree. #2831
  * Enable clang-tidy performance, readability, and modernization
    checks throughout the codebase to enforce best coding
    practices. #3046, #3049, #3051, #3052, #3080, and #3094
  * Checks for common misspellings were added to the pre-commit
    hooks. #3076
  * Changed Werror to stricter Werror-all for Intel compiler and
    fixed minor issues. #2948
  * Fixed compilation with GCC < 5 when the user defines
    _GLIBCXX_USE_CXX11_ABI. #2956
  * Added nox support for easier local testing and linting of
    contributions. #3101 and #3121
  * Avoid RTD style issue with docutils 0.17+. #3119
  * Support pipx run, such as pipx run pybind11 --include for a
    quick compile. #3117
- Drop unicode.patch merged upstream

OBS-URL: https://build.opensuse.org/request/show/925748
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=28
2021-11-06 10:33:21 +00:00
1afb882994 Accepting request 904740 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/904740
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=13
2021-07-10 20:54:07 +00:00
37c1ce1f87 Accepting request 904606 from home:mcalabkova:branches:devel:languages:python
- Add upstream patch unicode.patch to fix random python crash

OBS-URL: https://build.opensuse.org/request/show/904606
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=27
2021-07-08 10:06:06 +00:00
464443c7cb Accepting request 872264 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/872264
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=12
2021-02-16 21:34:15 +00:00
1cdf4c9984 Accepting request 872218 from home:bnavigator:branches:devel:languages:python
- Dont test with python36-numpy. Tumbleweed's NumPy >= 1.20 dropped
  support for Python 3.6

OBS-URL: https://build.opensuse.org/request/show/872218
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=25
2021-02-15 06:55:03 +00:00
c7d44f0059 Accepting request 870296 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/870296
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=11
2021-02-11 11:45:58 +00:00
e1953f555d Accepting request 870090 from home:jayvdb:branches:devel:languages:python
- Add docs/changelog.rst to package contents
- Update to v2.6.2
  * See changelog for changes since 2.5.0

OBS-URL: https://build.opensuse.org/request/show/870090
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=23
2021-02-08 14:50:35 +00:00
191b9b2436 Accepting request 821409 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/821409
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=10
2020-07-21 13:39:36 +00:00
Tomáš Chvátal
48e7fe4181 Accepting request 821380 from home:StefanBruens:branches:science
- Also expand generation of test binaries for Python 2 and 3,
  fixes Leap 15.x builds where Python 2 is still built.

OBS-URL: https://build.opensuse.org/request/show/821380
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=21
2020-07-17 06:35:58 +00:00
487f68c9a6 Accepting request 819139 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/819139
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=9
2020-07-15 10:02:04 +00:00
Tomáš Chvátal
95885b80b7 Accepting request 819015 from home:mslacken:ml
- updated to version 2.5.0 and running the internal unit tests now

OBS-URL: https://build.opensuse.org/request/show/819015
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=19
2020-07-07 07:48:28 +00:00
8ec84baf39 Accepting request 796474 from devel:languages:python
- On devel files you need the pybind too to compile anything

OBS-URL: https://build.opensuse.org/request/show/796474
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=8
2020-04-27 21:29:46 +00:00
Tomáš Chvátal
85a30ca739 - On devel files you need the pybind too to compile anything
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=17
2020-04-23 10:05:22 +00:00
e391e93e77 Accepting request 783977 from devel:languages:python
Staging:I

OBS-URL: https://build.opensuse.org/request/show/783977
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=7
2020-03-26 23:20:21 +00:00
Tomáš Chvátal
56986a21fe - Fix build without python2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=15
2020-03-11 16:57:36 +00:00
f027fecd33 Accepting request 774186 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/774186
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=6
2020-02-19 11:39:36 +00:00
7f916e5284 Accepting request 774056 from home:StefanBruens:branches:science
- Fix mixup of expanded/unexpaned python versions in devel package,
  the devel package always required python(2)-devel and
  python2-pybind. Move the data to a -common-devel subpackage,
  pulled in by versioned python{2,3}-pybind-devel packages.

OBS-URL: https://build.opensuse.org/request/show/774056
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=13
2020-02-13 14:54:10 +00:00
0027c454e0 Accepting request 764264 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/764264
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=5
2020-01-16 17:15:19 +00:00
Tomáš Chvátal
811f9f0801 Accepting request 764236 from home:jayvdb:branches:devel:languages:python
- Add package version to extra devel packages added via Provides

OBS-URL: https://build.opensuse.org/request/show/764236
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=11
2020-01-14 11:52:50 +00:00
e5eb30342f Accepting request 759292 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/759292
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=4
2019-12-29 14:48:26 +00:00
Tomáš Chvátal
6573ed08f8 Accepting request 759171 from home:alois:branches:devel:languages:python
update to 2.4.3

OBS-URL: https://build.opensuse.org/request/show/759171
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=9
2019-12-26 08:57:21 +00:00
7e9031f9bc Accepting request 736064 from devel:languages:python
- updated to 2.4.2
 * made devel package python version independent
 * added cmake run to install cmake include files

OBS-URL: https://build.opensuse.org/request/show/736064
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pybind11?expand=0&rev=3
2019-10-10 09:53:00 +00:00
Tomáš Chvátal
f43f840b53 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=7 2019-10-08 10:40:19 +00:00
Tomáš Chvátal
578bd89fd2 - Enable tests
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=6
2019-10-08 10:40:06 +00:00