Skip to content

Commit 2fed642

Browse files
Upgrade to PyO3 0.16, bump versions
1 parent 239311b commit 2fed642

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "inline-python"
3-
version = "0.8.0"
3+
version = "0.9.0"
44
authors = [
55
"Mara Bos <[email protected]>",
66
"Maarten de Vries <[email protected]>",
@@ -13,8 +13,8 @@ keywords = ["python", "inline", "embed", "macro"]
1313
autoexamples = false
1414

1515
[dependencies]
16-
inline-python-macros = { version = "=0.8.0", path = "./macros" }
17-
pyo3 = { version = "0.15.0", default-features = false, features = ["auto-initialize"] }
16+
inline-python-macros = { version = "=0.9.0", path = "./macros" }
17+
pyo3 = { version = "0.16.0", default-features = false, features = ["auto-initialize"] }
1818

1919
[workspace]
2020
members = ["examples", "ct-python"]

ct-python/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ repository = "https://github.com/fusion-engineering/inline-python/tree/master/ct
99
keywords = ["python", "macro", "generate", "compile-time"]
1010

1111
[dependencies]
12-
inline-python-macros = { version = "=0.8.0", path = "../macros" }
12+
inline-python-macros = { version = "=0.9.0", path = "../macros" }

examples/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ path = "rust-fn.rs"
1717

1818
[dependencies]
1919
inline-python = { path = ".." }
20-
pyo3 = "0.15.0"
20+
pyo3 = "0.16.0"

macros/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "inline-python-macros"
3-
version = "0.8.0"
3+
version = "0.9.0"
44
authors = [
55
"Mara Bos <[email protected]>",
66
"Maarten de Vries <[email protected]>",
@@ -16,7 +16,7 @@ proc_macro = true
1616
[dependencies]
1717
proc-macro2 = { version = "1.0", features = ["span-locations"] }
1818
quote = "1.0"
19-
pyo3 = { version = "0.15.0", default-features = false, features = ["auto-initialize"] }
19+
pyo3 = { version = "0.16.0", default-features = false, features = ["auto-initialize"] }
2020

2121
[target.'cfg(unix)'.dependencies]
2222
libc = "0.2.71"

macros/src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub fn compile_error_msg(py: Python, error: PyErr, tokens: TokenStream) -> Token
99
let value = error.to_object(py);
1010

1111
if value.is_none(py) {
12-
let error = format!("python: {}", error.ptype(py).name().unwrap());
12+
let error = format!("python: {}", error.get_type(py).name().unwrap());
1313
return quote!(compile_error! {#error});
1414
}
1515

@@ -24,7 +24,7 @@ pub fn compile_error_msg(py: Python, error: PyErr, tokens: TokenStream) -> Token
2424
}
2525
}
2626

27-
if let Some(tb) = &error.ptraceback(py) {
27+
if let Some(tb) = &error.traceback(py) {
2828
if let Ok((file, line)) = get_traceback_info(tb) {
2929
if file == Span::call_site().source_file().path().to_string_lossy() {
3030
if let Ok(msg) = value.as_ref(py).str() {

0 commit comments

Comments
 (0)