From 4c68256820e65572313d209c5c09e07f0f2d29e1 Mon Sep 17 00:00:00 2001
From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com>
Date: Mon, 20 Nov 2023 11:38:19 +0100
Subject: [PATCH] Update pyo3 non-major (#289)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[![Mend Renovate logo
banner](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [pyo3](https://togithub.com/pyo3/pyo3) | dependencies | minor |
`0.19.1` -> `0.20.0` |
| [pyo3-asyncio](https://togithub.com/awestlake87/pyo3-asyncio) |
dependencies | minor | `0.19.0` -> `0.20.0` |
| [pyo3-build-config](https://togithub.com/pyo3/pyo3) |
build-dependencies | minor | `0.19.1` -> `0.20.0` |
| [pyo3-log](https://togithub.com/vorner/pyo3-log) | dependencies |
minor | `0.8.3` -> `0.9.0` |
---
### Release Notes
pyo3/pyo3 (pyo3)
###
[`v0.20.0`](https://togithub.com/pyo3/pyo3/blob/HEAD/CHANGELOG.md#0200---2023-10-11)
[Compare
Source](https://togithub.com/pyo3/pyo3/compare/v0.19.2...v0.20.0)
##### Packaging
- Dual-license PyO3 under either the Apache 2.0 OR the MIT license. This
makes the project GPLv2 compatible.
[#3108](https://togithub.com/PyO3/pyo3/pull/3108)
- Update MSRV to Rust 1.56.
[#3208](https://togithub.com/PyO3/pyo3/pull/3208)
- Bump `indoc` dependency to 2.0 and `unindent` dependency to 0.2.
[#3237](https://togithub.com/PyO3/pyo3/pull/3237)
- Bump `syn` dependency to 2.0.
[#3239](https://togithub.com/PyO3/pyo3/pull/3239)
- Drop support for debug builds of Python 3.7.
[#3387](https://togithub.com/PyO3/pyo3/pull/3387)
- Bump `chrono` optional dependency to require 0.4.25 or newer.
[#3427](https://togithub.com/PyO3/pyo3/pull/3427)
- Support Python 3.12.
[#3488](https://togithub.com/PyO3/pyo3/pull/3488)
##### Added
- Support `__lt__`, `__le__`, `__eq__`, `__ne__`, `__gt__` and `__ge__`
in `#[pymethods]`.
[#3203](https://togithub.com/PyO3/pyo3/pull/3203)
- Add FFI definition `Py_GETENV`.
[#3336](https://togithub.com/PyO3/pyo3/pull/3336)
- Add `as_ptr` and `into_ptr` inherent methods for `Py`, `PyAny`,
`PyRef`, and `PyRefMut`.
[#3359](https://togithub.com/PyO3/pyo3/pull/3359)
- Implement `DoubleEndedIterator` for `PyTupleIterator` and
`PyListIterator`.
[#3366](https://togithub.com/PyO3/pyo3/pull/3366)
- Add `#[pyclass(rename_all = "...")]` option: this allows renaming all
getters and setters of a struct, or all variants of an enum. Available
renaming rules are: `"camelCase"`, `"kebab-case"`, `"lowercase"`,
`"PascalCase"`, `"SCREAMING-KEBAB-CASE"`, `"SCREAMING_SNAKE_CASE"`,
`"snake_case"`, `"UPPERCASE"`.
[#3384](https://togithub.com/PyO3/pyo3/pull/3384)
- Add FFI definitions `PyObject_GC_IsTracked` and
`PyObject_GC_IsFinalized` on Python 3.9 and up (PyPy 3.10 and up).
[#3403](https://togithub.com/PyO3/pyo3/pull/3403)
- Add types for `None`, `Ellipsis`, and `NotImplemented`.
[#3408](https://togithub.com/PyO3/pyo3/pull/3408)
- Add FFI definitions for the `Py_mod_multiple_interpreters` constant
and its possible values.
[#3494](https://togithub.com/PyO3/pyo3/pull/3494)
- Add FFI definitions for `PyInterpreterConfig` struct, its constants
and `Py_NewInterpreterFromConfig`.
[#3502](https://togithub.com/PyO3/pyo3/pull/3502)
##### Changed
- Change `PySet::discard` to return `PyResult` (previously
returned nothing).
[#3281](https://togithub.com/PyO3/pyo3/pull/3281)
- Optimize implmentation of `IntoPy` for Rust tuples to Python tuples.
[#3321](https://togithub.com/PyO3/pyo3/pull/3321)
- Change `PyDict::get_item` to no longer suppress arbitrary exceptions
(the return type is now `PyResult
vorner/pyo3-log (pyo3-log)
###
[`v0.9.0`](https://togithub.com/vorner/pyo3-log/blob/HEAD/CHANGELOG.md#090)
[Compare
Source](https://togithub.com/vorner/pyo3-log/compare/v0.8.4...v0.9.0)
- Bump lowest allowed version of pyo3 to 0.15 ‒ this prevents linking
multiple
pyo3 versions together.
###
[`v0.8.4`](https://togithub.com/vorner/pyo3-log/blob/HEAD/CHANGELOG.md#084)
[Compare
Source](https://togithub.com/vorner/pyo3-log/compare/v0.8.3...v0.8.4)
- Allow pyo3 0.20.
---
### Configuration
📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - At
any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.
---
- [ ] If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/bitwarden/sdk).
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
---
Cargo.lock | 45 +++++++++++++++++-----------------
crates/bitwarden-py/Cargo.toml | 8 +++---
2 files changed, 27 insertions(+), 26 deletions(-)
diff --git a/Cargo.lock b/Cargo.lock
index 7ca15b625..e4ad7e61e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1577,9 +1577,9 @@ dependencies = [
[[package]]
name = "indoc"
-version = "1.0.9"
+version = "2.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bfa799dd5ed20a7e349f3b4639aa80d74549c81716d9ec4f994c9b5815598306"
+checksum = "1e186cfbae8084e513daff4240b4797e342f988cecda4fb6c939150f96315fd8"
[[package]]
name = "infer"
@@ -2274,9 +2274,9 @@ dependencies = [
[[package]]
name = "pyo3"
-version = "0.19.2"
+version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e681a6cfdc4adcc93b4d3cf993749a4552018ee0a9b65fc0ccfad74352c72a38"
+checksum = "04e8453b658fe480c3e70c8ed4e3d3ec33eb74988bd186561b0cc66b85c3bc4b"
dependencies = [
"cfg-if",
"indoc",
@@ -2291,9 +2291,9 @@ dependencies = [
[[package]]
name = "pyo3-asyncio"
-version = "0.19.0"
+version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a2cc34c1f907ca090d7add03dc523acdd91f3a4dab12286604951e2f5152edad"
+checksum = "6ea6b68e93db3622f3bb3bf363246cf948ed5375afe7abff98ccbdd50b184995"
dependencies = [
"futures",
"once_cell",
@@ -2305,9 +2305,9 @@ dependencies = [
[[package]]
name = "pyo3-asyncio-macros"
-version = "0.19.0"
+version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e4045f06429547179e4596f5c0b13c82efc8b04296016780133653ed69ce26b3"
+checksum = "56c467178e1da6252c95c29ecf898b133f742e9181dca5def15dc24e19d45a39"
dependencies = [
"proc-macro2",
"quote",
@@ -2316,9 +2316,9 @@ dependencies = [
[[package]]
name = "pyo3-build-config"
-version = "0.19.2"
+version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "076c73d0bc438f7a4ef6fdd0c3bb4732149136abd952b110ac93e4edb13a6ba5"
+checksum = "a96fe70b176a89cff78f2fa7b3c930081e163d5379b4dcdf993e3ae29ca662e5"
dependencies = [
"once_cell",
"target-lexicon",
@@ -2326,9 +2326,9 @@ dependencies = [
[[package]]
name = "pyo3-ffi"
-version = "0.19.2"
+version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e53cee42e77ebe256066ba8aa77eff722b3bb91f3419177cf4cd0f304d3284d9"
+checksum = "214929900fd25e6604661ed9cf349727c8920d47deff196c4e28165a6ef2a96b"
dependencies = [
"libc",
"pyo3-build-config",
@@ -2336,9 +2336,9 @@ dependencies = [
[[package]]
name = "pyo3-log"
-version = "0.8.4"
+version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c09c2b349b6538d8a73d436ca606dab6ce0aaab4dad9e6b7bdd57a4f556c3bc3"
+checksum = "4c10808ee7250403bedb24bc30c32493e93875fef7ba3e4292226fe924f398bd"
dependencies = [
"arc-swap",
"log",
@@ -2347,25 +2347,26 @@ dependencies = [
[[package]]
name = "pyo3-macros"
-version = "0.19.2"
+version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dfeb4c99597e136528c6dd7d5e3de5434d1ceaf487436a3f03b2d56b6fc9efd1"
+checksum = "dac53072f717aa1bfa4db832b39de8c875b7c7af4f4a6fe93cdbf9264cf8383b"
dependencies = [
"proc-macro2",
"pyo3-macros-backend",
"quote",
- "syn 1.0.109",
+ "syn 2.0.38",
]
[[package]]
name = "pyo3-macros-backend"
-version = "0.19.2"
+version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "947dc12175c254889edc0c02e399476c2f652b4b9ebd123aa655c224de259536"
+checksum = "7774b5a8282bd4f25f803b1f0d945120be959a36c72e08e7cd031c792fdfd424"
dependencies = [
+ "heck",
"proc-macro2",
"quote",
- "syn 1.0.109",
+ "syn 2.0.38",
]
[[package]]
@@ -3581,9 +3582,9 @@ dependencies = [
[[package]]
name = "unindent"
-version = "0.1.11"
+version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e1766d682d402817b5ac4490b3c3002d91dfa0d22812f341609f97b08757359c"
+checksum = "c7de7d73e1754487cb58364ee906a499937a0dfabd86bcb980fa99ec8c8fa2ce"
[[package]]
name = "unsafe-libyaml"
diff --git a/crates/bitwarden-py/Cargo.toml b/crates/bitwarden-py/Cargo.toml
index 5d8d95575..613203c84 100644
--- a/crates/bitwarden-py/Cargo.toml
+++ b/crates/bitwarden-py/Cargo.toml
@@ -10,17 +10,17 @@ name = "bitwarden_py"
crate-type = ["cdylib"]
[dependencies]
-pyo3 = { version = "0.19.1", features = ["extension-module"] }
-pyo3-log = "0.8.3"
+pyo3 = { version = "0.20.0", features = ["extension-module"] }
+pyo3-log = "0.9.0"
bitwarden-json = { path = "../bitwarden-json", features = ["secrets"] }
[build-dependencies]
-pyo3-build-config = { version = "0.19.1" }
+pyo3-build-config = { version = "0.20.0" }
[target.'cfg(not(target_arch="wasm32"))'.dependencies]
tokio = { version = "1.28.2", features = ["rt-multi-thread", "macros"] }
-pyo3-asyncio = { version = "0.19.0", features = [
+pyo3-asyncio = { version = "0.20.0", features = [
"attributes",
"tokio-runtime",
] }