Skip to content

Commit

Permalink
Bump to 0.2.7
Browse files Browse the repository at this point in the history
0.2.7 backports the compilation fix with current nightlies, so pyo3 stays usable until 0.3 is released
  • Loading branch information
konstin committed May 17, 2018
1 parent 2657b83 commit cd1f3d1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pyo3"
version = "0.2.5"
version = "0.2.7"
description = "Bindings to Python interpreter"
authors = ["PyO3 Project and Contributors"]
readme = "README.md"
Expand All @@ -23,7 +23,7 @@ log = "0.4"
libc = "0.2"
spin = "0.4.6"
num-traits = "0.2"
pyo3cls = { version = "^0.2.1" }
pyo3cls = { path = "pyo3cls", version = "0.2.7" }

[build-dependencies]
regex = "0.2"
Expand Down
2 changes: 1 addition & 1 deletion pyo3cls/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pyo3cls"
version = "0.2.1"
version = "0.2.7"
description = "Proc macros for PyO3 package"
authors = ["PyO3 Project and Contributors <https://github.com/PyO3"]
homepage = "https://github.com/pyo3/pyo3"
Expand Down
4 changes: 2 additions & 2 deletions pyo3cls/src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use utils;


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

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

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

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

0 comments on commit cd1f3d1

Please sign in to comment.