pybind11/eigen/tensor.h adds converters to and from Eigen::Tensor and Eigen::TensorMap#4201
PyGILState_Check()'s were integrated to pybind11::handleinc_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. #4246
Add option for enable/disable enum members in docstring. #2768
Fixed typing of KeysView, ValuesView and ItemsView in bind_map. #4353
Bug fixes:
Bug fix affecting only Python 3.6 under very specific, uncommon conditions: move PyEval_InitThreads() call to the correct location. #4350
Fix segfault bug when passing foreign native functions to functional.h. #4254
Build system improvements:
Support setting PYTHON_LIBRARIES manually for Windows ARM cross-compilation (classic mode). #4406
Extend IPO/LTO detection for ICX (a.k.a IntelLLVM) compiler. #4402
Allow calling find_package(pybind11 CONFIG) multiple times from separate directories in the same CMake project and properly link Python (new mode). #4401
multiprocessing_set_spawn in pytest fixture for added safety. #4377
Fixed a bug in two pybind11/tools cmake scripts causing "Unknown arguments specified" errors. #4327
Version 2.10.1
This is the first version to fully support embedding the newly released Python 3.11.
Changes:
Allow pybind11::capsule constructor to take null destructor pointers. #4221
embed.h was changed so that PYTHONPATH is used also with Python 3.11 (established behavior). #4119
A PYBIND11_SIMPLE_GIL_MANAGEMENT option was added (cmake, C++ define), along with many additional tests in test_gil_scoped.py. The option may be useful to try when debugging GIL-related issues, to determine if the more complex default implementation is or is not to blame. See #4216 for background. WARNING: Please be careful to not create ODR violations when using the option: everything that is linked together with mutual symbol visibility needs to be rebuilt. #4216
PYBIND11_EXPORT_EXCEPTION was made non-empty only under macOS. This makes Linux builds safer, and enables the removal of warning suppression pragmas for Windows. #4298
Bug fixes:
Fixed a bug where UnicodeDecodeError was not propagated from various py::str ctors when decoding surrogate utf characters. #4294
Revert perfect forwarding for make_iterator. This broke at least one valid use case. May revisit later. #4234
Fix support for safe casts to void* (regression in 2.10.0). #4275
pybind11/eigen/tensor.h adds converters to and from Eigen::Tensor and
Eigen::TensorMap.
[#4201](https://github.com/pybind/pybind11/issues/4201) <https://github.com/pybind/pybind11/pull/4201>_
PyGILState_Check()'s were integrated to pybind11::handleinc_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.
[#4246](https://github.com/pybind/pybind11/issues/4246) <https://github.com/pybind/pybind11/pull/4246>_
Add option for enable/disable enum members in docstring.
[#2768](https://github.com/pybind/pybind11/issues/2768) <https://github.com/pybind/pybind11/pull/2768>_
Fixed typing of KeysView, ValuesView and ItemsView in bind_map.
[#4353](https://github.com/pybind/pybind11/issues/4353) <https://github.com/pybind/pybind11/pull/4353>_
Bug fixes:
Bug fix affecting only Python 3.6 under very specific, uncommon conditions:
move PyEval_InitThreads() call to the correct location.
[#4350](https://github.com/pybind/pybind11/issues/4350) <https://github.com/pybind/pybind11/pull/4350>_
Fix segfault bug when passing foreign native functions to functional.h.
[#4254](https://github.com/pybind/pybind11/issues/4254) <https://github.com/pybind/pybind11/pull/4254>_
Build system improvements:
Support setting PYTHON_LIBRARIES manually for Windows ARM cross-compilation
(classic mode).
[#4406](https://github.com/pybind/pybind11/issues/4406) <https://github.com/pybind/pybind11/pull/4406>_
Extend IPO/LTO detection for ICX (a.k.a IntelLLVM) compiler.
[#4402](https://github.com/pybind/pybind11/issues/4402) <https://github.com/pybind/pybind11/pull/4402>_
Allow calling find_package(pybind11 CONFIG) multiple times from separate
directories in the same CMake project and properly link Python (new mode).
[#4401](https://github.com/pybind/pybind11/issues/4401) <https://github.com/pybind/pybind11/pull/4401>_
multiprocessing_set_spawn in pytest fixture for added safety.
[#4377](https://github.com/pybind/pybind11/issues/4377) <https://github.com/pybind/pybind11/pull/4377>_
Fixed a bug in two pybind11/tools cmake scripts causing "Unknown arguments specified" errors.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
⚠️ Dependabot is rebasing this PR ⚠️
Rebasing might not happen immediately, so don't worry if this takes some time.
Note: if you make any changes to this PR yourself, they will take precedence over the rebase.
Bumps pybind11 from 2.10.0 to 2.10.2.
Release notes
Sourced from pybind11's releases.
... (truncated)
Changelog
Sourced from pybind11's changelog.
... (truncated)
Commits
0694ec6
chore: preapre for 2.10.2 release (#4414)3fd1520
docs: changelog for next version (#4413)ee4b9f5
Fix ODR violations in our Eigen Tensor tests (#4412)a97c4d2
fix(cmake): support Windows ARM cross-compilation (#4406)09db644
IPO/LTO support for ICX (IntelLLVM) compiler (#4402)ece1206
ci: setenv: VERBOSE: 1
(#4405)89c3561
Fix multi-context new Python linking mode (#4401)ff42f52
Systematically add-DCMAKE_VERBOSE_MAKEFILE=ON
to obtain full command lines...9727dcd
chore: future safe bugbear opinionated warnings (#4393)663b86c
Add flake8B905
toextend-ignore
in setup.cfg (#4391)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)