Skip to content

Commit cd1f3d1

Browse files
committed
Bump to 0.2.7
0.2.7 backports the compilation fix with current nightlies, so pyo3 stays usable until 0.3 is released
1 parent 2657b83 commit cd1f3d1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyo3"
3-
version = "0.2.5"
3+
version = "0.2.7"
44
description = "Bindings to Python interpreter"
55
authors = ["PyO3 Project and Contributors"]
66
readme = "README.md"
@@ -23,7 +23,7 @@ log = "0.4"
2323
libc = "0.2"
2424
spin = "0.4.6"
2525
num-traits = "0.2"
26-
pyo3cls = { version = "^0.2.1" }
26+
pyo3cls = { path = "pyo3cls", version = "0.2.7" }
2727

2828
[build-dependencies]
2929
regex = "0.2"

pyo3cls/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyo3cls"
3-
version = "0.2.1"
3+
version = "0.2.7"
44
description = "Proc macros for PyO3 package"
55
authors = ["PyO3 Project and Contributors <https://github.com/PyO3"]
66
homepage = "https://github.com/pyo3/pyo3"

pyo3cls/src/module.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use utils;
1010

1111

1212
pub fn build_py3_module_init(ast: &mut syn::Item, attr: String) -> Tokens {
13-
let modname = &attr.to_string()[1..attr.to_string().len()-1].to_string();
13+
let modname = &attr.to_string();
1414

1515
match ast.node {
1616
syn::ItemKind::Fn(_, _, _, _, _, ref mut block) => {
@@ -86,7 +86,7 @@ pub fn py3_init(fnname: &syn::Ident, name: &String, doc: syn::Lit) -> Tokens {
8686
}
8787

8888
pub fn build_py2_module_init(ast: &mut syn::Item, attr: String) -> Tokens {
89-
let modname = &attr.to_string()[1..attr.to_string().len()-1].to_string();
89+
let modname = &attr.to_string();
9090

9191
match ast.node {
9292
syn::ItemKind::Fn(_, _, _, _, _, ref mut block) => {

0 commit comments

Comments
 (0)