Skip to content

Commit

Permalink
Update to use pyo3testing 0.3.4 (#44)
Browse files Browse the repository at this point in the history
use `pyo3::types::PyDict` no longer required
  • Loading branch information
MusicalNinjaDad committed Jun 2, 2024
1 parent 8b9f6c9 commit ba50b7c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`
Expand Down
2 changes: 1 addition & 1 deletion __pyversion__
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.0.0
2.0.1
4 changes: 2 additions & 2 deletions rust/fizzbuzzo3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion rust/fizzbuzzo3/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
Expand Down

0 comments on commit ba50b7c

Please sign in to comment.