Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump pybind11 from 2.7.1 to 2.8.1 in /dependencies #2087

Merged
merged 1 commit into from
Nov 10, 2021

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 1, 2021

Bumps pybind11 from 2.7.1 to 2.8.1.

Release notes

Sourced from pybind11's releases.

Version 2.8.1

v2.8.1 (Oct 27, 2021)

Changes and additions:

  • The simple namespace creation shortcut added in 2.8.0 was deprecated due to usage of CPython internal API, and will be removed soon. Use py::module_::import("types").attr("SimpleNamespace"). #3374
  • Add C++ Exception type to throw and catch AttributeError. Useful for defining custom __setattr__ and __getattr__ methods. #3387

Fixes:

  • Fixed the potential for dangling references when using properties with std::optional types. #3376
  • Modernize usage of PyCodeObject on Python 3.9+ (moving toward support for Python 3.11a1) #3368
  • 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. #3352
  • Support multiple raw inclusion of CMake helper files (Conan.io does this for multi-config generators). #3420
  • Fix harmless warning on upcoming CMake 3.22. #3368
  • Fix 2.8.0 regression with MSVC 2017 + C++17 mode + Python 3. #3407
  • 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. #3348

Version 2.8.0

New features:

  • 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

Changes:

  • 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

Fixes:

  • 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

Build system improvements:

... (truncated)

Changelog

Sourced from pybind11's changelog.

v2.8.1 (Oct 27, 2021)

Changes and additions:

  • The simple namespace creation shortcut added in 2.8.0 was deprecated due to usage of CPython internal API, and will be removed soon. Use py::module_::import("types").attr("SimpleNamespace"). [#3374](https://github.com/pybind/pybind11/issues/3374) <https://github.com/pybinyyd/pybind11/pull/3374>_

  • Add C++ Exception type to throw and catch AttributeError. Useful for defining custom __setattr__ and __getattr__ methods. [#3387](https://github.com/pybind/pybind11/issues/3387) <https://github.com/pybind/pybind11/pull/3387>_

Fixes:

  • Fixed the potential for dangling references when using properties with std::optional types. [#3376](https://github.com/pybind/pybind11/issues/3376) <https://github.com/pybind/pybind11/pull/3376>_

  • Modernize usage of PyCodeObject on Python 3.9+ (moving toward support for Python 3.11a1) [#3368](https://github.com/pybind/pybind11/issues/3368) <https://github.com/pybind/pybind11/pull/3368>_

  • 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. [#3352](https://github.com/pybind/pybind11/issues/3352) <https://github.com/pybind/pybind11/pull/3352>_

  • Support multiple raw inclusion of CMake helper files (Conan.io does this for multi-config generators). [#3420](https://github.com/pybind/pybind11/issues/3420) <https://github.com/pybind/pybind11/pull/3420>_

  • Fix harmless warning on upcoming CMake 3.22. [#3368](https://github.com/pybind/pybind11/issues/3368) <https://github.com/pybind/pybind11/pull/3368>_

  • Fix 2.8.0 regression with MSVC 2017 + C++17 mode + Python 3. [#3407](https://github.com/pybind/pybind11/issues/3407) <https://github.com/pybind/pybind11/pull/3407>_

  • 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. [#3348](https://github.com/pybind/pybind11/issues/3348) <https://github.com/pybind/pybind11/pull/3348>_

v2.8.0 (Oct 4, 2021)

New features:

  • Added py::raise_from to enable chaining exceptions.

... (truncated)

Commits

Dependabot compatibility score

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 dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Nov 1, 2021
@dependabot dependabot bot force-pushed the dependabot/pip/dependencies/pybind11-2.8.1 branch 4 times, most recently from 8f4ec98 to 9f51f0b Compare November 9, 2021 23:17
Bumps [pybind11](https://github.com/pybind/pybind11) from 2.7.1 to 2.8.1.
- [Release notes](https://github.com/pybind/pybind11/releases)
- [Changelog](https://github.com/pybind/pybind11/blob/master/docs/changelog.rst)
- [Commits](pybind/pybind11@v2.7.1...v2.8.1)

---
updated-dependencies:
- dependency-name: pybind11
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/pip/dependencies/pybind11-2.8.1 branch from 9f51f0b to 81c42a6 Compare November 9, 2021 23:24
@admiralAwkbar admiralAwkbar merged commit f2af4b9 into main Nov 10, 2021
@admiralAwkbar admiralAwkbar deleted the dependabot/pip/dependencies/pybind11-2.8.1 branch November 10, 2021 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant