1
0

Commit Graph

  • 01a51e1921 Accepting request 1165773 from devel:languages:python factory Ana Guerrero 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 Dirk Mueller 2024-04-06 12:12:35 +00:00
  • 0f19166a7b Accepting request 1112607 from devel:languages:python Ana Guerrero 2023-09-22 19:47:17 +00:00
  • 4ab6bac77f Accepting request 1109302 from home:jengelh:branches:devel:languages:python Ondřej Súkup 2023-09-20 16:06:20 +00:00
  • 69874fe124 Accepting request 1081812 from devel:languages:python Dominique Leuenberger 2023-04-22 19:59:23 +00:00
  • 5a111b4a68 Accepting request 1081546 from home:dirkmueller:acdc:as_python3_module Dirk Mueller 2023-04-21 14:09:21 +00:00
  • 1452d679b7 Accepting request 1072929 from devel:languages:python Dominique Leuenberger 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. Dirk Mueller 2023-03-19 12:08:37 +00:00
  • 9972350892 Accepting request 1058218 from devel:languages:python Dominique Leuenberger 2023-01-14 19:31:29 +00:00
  • f9b128f4ea Accepting request 1058070 from home:bnavigator:branches:devel:languages:python Markéta Machová 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. Dirk Mueller 2023-01-04 19:52:08 +00:00
  • 02ce9b3b8d Accepting request 1003975 from devel:languages:python Dominique Leuenberger 2022-09-17 18:08:23 +00:00
  • b33aa1837f Accepting request 1003972 from home:bnavigator:branches:devel:languages:python Matej Cepl 2022-09-15 22:15:13 +00:00
  • 3e6bf1e682 Accepting request 1003624 from home:bnavigator:branches:devel:languages:python Matej Cepl 2022-09-15 12:20:26 +00:00
  • 904456585f Accepting request 1002559 from home:bnavigator:branches:devel:languages:python:numeric Markéta Machová 2022-09-14 08:07:40 +00:00
  • 22fa7c8565 Accepting request 968080 from devel:languages:python Dominique Leuenberger 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. Dirk Mueller 2022-04-09 22:56:31 +00:00
  • d34f37647e Accepting request 965219 from devel:languages:python Dominique Leuenberger 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. Dirk Mueller 2022-03-27 15:26:42 +00:00
  • be81fa23ca Accepting request 935976 from devel:languages:python Dominique Leuenberger 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. Dirk Mueller 2021-12-06 10:47:37 +00:00
  • 3a17a3afd3 Accepting request 930182 from devel:languages:python Dominique Leuenberger 2021-11-09 22:54:02 +00:00
  • 0e85bb0e5f Accepting request 930181 from home:schubi2 Dirk Mueller 2021-11-08 13:31:49 +00:00
  • 6d403635e7 Accepting request 925748 from home:bnavigator:branches:devel:languages:python Dirk Mueller 2021-11-06 10:33:21 +00:00
  • 1afb882994 Accepting request 904740 from devel:languages:python Dominique Leuenberger 2021-07-10 20:54:07 +00:00
  • 37c1ce1f87 Accepting request 904606 from home:mcalabkova:branches:devel:languages:python Antonio Larrosa 2021-07-08 10:06:06 +00:00
  • 464443c7cb Accepting request 872264 from devel:languages:python Dominique Leuenberger 2021-02-16 21:34:15 +00:00
  • 1cdf4c9984 Accepting request 872218 from home:bnavigator:branches:devel:languages:python Matej Cepl 2021-02-15 06:55:03 +00:00
  • c7d44f0059 Accepting request 870296 from devel:languages:python Dominique Leuenberger 2021-02-11 11:45:58 +00:00
  • e1953f555d Accepting request 870090 from home:jayvdb:branches:devel:languages:python Markéta Machová 2021-02-08 14:50:35 +00:00
  • 191b9b2436 Accepting request 821409 from devel:languages:python Dominique Leuenberger 2020-07-21 13:39:36 +00:00
  • 48e7fe4181 Accepting request 821380 from home:StefanBruens:branches:science Tomáš Chvátal 2020-07-17 06:35:58 +00:00
  • 487f68c9a6 Accepting request 819139 from devel:languages:python Dominique Leuenberger 2020-07-15 10:02:04 +00:00
  • 95885b80b7 Accepting request 819015 from home:mslacken:ml Tomáš Chvátal 2020-07-07 07:48:28 +00:00
  • 8ec84baf39 Accepting request 796474 from devel:languages:python Dominique Leuenberger 2020-04-27 21:29:46 +00:00
  • 85a30ca739 - On devel files you need the pybind too to compile anything Tomáš Chvátal 2020-04-23 10:05:22 +00:00
  • e391e93e77 Accepting request 783977 from devel:languages:python Dominique Leuenberger 2020-03-26 23:20:21 +00:00
  • 56986a21fe - Fix build without python2 Tomáš Chvátal 2020-03-11 16:57:36 +00:00
  • f027fecd33 Accepting request 774186 from devel:languages:python Dominique Leuenberger 2020-02-19 11:39:36 +00:00
  • 7f916e5284 Accepting request 774056 from home:StefanBruens:branches:science Matej Cepl 2020-02-13 14:54:10 +00:00
  • 0027c454e0 Accepting request 764264 from devel:languages:python Dominique Leuenberger 2020-01-16 17:15:19 +00:00
  • 811f9f0801 Accepting request 764236 from home:jayvdb:branches:devel:languages:python Tomáš Chvátal 2020-01-14 11:52:50 +00:00
  • e5eb30342f Accepting request 759292 from devel:languages:python Dominique Leuenberger 2019-12-29 14:48:26 +00:00
  • 6573ed08f8 Accepting request 759171 from home:alois:branches:devel:languages:python Tomáš Chvátal 2019-12-26 08:57:21 +00:00
  • 7e9031f9bc Accepting request 736064 from devel:languages:python Dominique Leuenberger 2019-10-10 09:53:00 +00:00
  • f43f840b53 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pybind11?expand=0&rev=7 Tomáš Chvátal 2019-10-08 10:40:19 +00:00
  • 578bd89fd2 - Enable tests Tomáš Chvátal 2019-10-08 10:40:06 +00:00
  • 3565b58fb0 Accepting request 736037 from home:mslacken:ml Tomáš Chvátal 2019-10-08 10:16:24 +00:00
  • ca2ce589d4 Accepting request 725775 from devel:languages:python Dominique Leuenberger 2019-08-24 16:49:03 +00:00
  • f3a2c9d630 Accepting request 725761 from home:jengelh:branches:devel:languages:python Tomáš Chvátal 2019-08-24 07:39:27 +00:00
  • 8fd1e47d1a Accepting request 720903 from devel:languages:python Dominique Leuenberger 2019-08-19 19:27:01 +00:00
  • c2d9cd43e8 Accepting request 717842 from home:mvyskocil Matej Cepl 2019-07-25 20:11:55 +00:00