From ba50b7c2e4f9ec07905e1671265c20ab3af4d6a3 Mon Sep 17 00:00:00 2001 From: MusicalNinjaDad <102677655+MusicalNinjaDad@users.noreply.github.com> Date: Fri, 31 May 2024 16:42:49 +0200 Subject: [PATCH] Update to use pyo3testing 0.3.4 (#44) use `pyo3::types::PyDict` no longer required --- CHANGELOG.md | 4 ++++ __pyversion__ | 2 +- rust/fizzbuzzo3/Cargo.toml | 4 ++-- rust/fizzbuzzo3/src/lib.rs | 1 - 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d75a3a1..c764a99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # FizzBuzz Changelog +## Python 2.0.1 + +- Update pyo3testing framework used for rust exports to v0.3.4 (Simplifies unit tests in rust source) + ## Python 2.0.0 - Python and rust variants are now under single fizzbuzz namespace as `fizzbuzz.fizzbuzzpy` and `fizzbuzz.fizzbuzzo3` diff --git a/__pyversion__ b/__pyversion__ index 359a5b9..10bf840 100644 --- a/__pyversion__ +++ b/__pyversion__ @@ -1 +1 @@ -2.0.0 \ No newline at end of file +2.0.1 \ No newline at end of file diff --git a/rust/fizzbuzzo3/Cargo.toml b/rust/fizzbuzzo3/Cargo.toml index 7e20ac5..c673743 100644 --- a/rust/fizzbuzzo3/Cargo.toml +++ b/rust/fizzbuzzo3/Cargo.toml @@ -9,8 +9,8 @@ path = "src/lib.rs" crate-type = ["cdylib"] # cdylib required for python import, rlib required for rust tests. [dependencies] -pyo3 = "=0.21.2" -pyo3-testing = "=0.3.4" +pyo3 = "0.21.2" +pyo3-testing = "0.3.4" fizzbuzz = { path = "../fizzbuzz" } # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/rust/fizzbuzzo3/src/lib.rs b/rust/fizzbuzzo3/src/lib.rs index b9f4272..96e4f37 100644 --- a/rust/fizzbuzzo3/src/lib.rs +++ b/rust/fizzbuzzo3/src/lib.rs @@ -54,7 +54,6 @@ fn py_fizzbuzzo3(module: &Bound<'_, PyModule>) -> PyResult<()> { #[cfg(test)] mod tests { use pyo3::exceptions::PyTypeError; - use pyo3::types::PyDict; use pyo3_testing::{pyo3test, with_py_raises}; use super::*;