Bump to 0.6.0-alpha.4
This commit is contained in:
parent
61e449b10e
commit
0cd72ac213
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "pyo3"
|
name = "pyo3"
|
||||||
version = "0.6.0-alpha.3"
|
version = "0.6.0-alpha.4"
|
||||||
description = "Bindings to Python interpreter"
|
description = "Bindings to Python interpreter"
|
||||||
authors = ["PyO3 Project and Contributors <https://github.com/PyO3>"]
|
authors = ["PyO3 Project and Contributors <https://github.com/PyO3>"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
@ -22,7 +22,7 @@ appveyor = { repository = "fafhrd91/pyo3" }
|
||||||
libc = "0.2.48"
|
libc = "0.2.48"
|
||||||
spin = "0.5.0"
|
spin = "0.5.0"
|
||||||
num-traits = "0.2.6"
|
num-traits = "0.2.6"
|
||||||
pyo3cls = { path = "pyo3cls", version = "=0.6.0-alpha.2" }
|
pyo3cls = { path = "pyo3cls", version = "=0.6.0-alpha.4" }
|
||||||
mashup = "0.1.9"
|
mashup = "0.1.9"
|
||||||
num-complex = { version = "0.2.1", optional = true }
|
num-complex = { version = "0.2.1", optional = true }
|
||||||
inventory = "0.1.3"
|
inventory = "0.1.3"
|
||||||
|
|
|
@ -44,7 +44,7 @@ name = "string_sum"
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib"]
|
||||||
|
|
||||||
[dependencies.pyo3]
|
[dependencies.pyo3]
|
||||||
version = "0.6.0-alpha.2"
|
version = "0.6.0-alpha.4"
|
||||||
features = ["extension-module"]
|
features = ["extension-module"]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -89,7 +89,7 @@ Add `pyo3` this to your `Cargo.toml`:
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
[dependencies]
|
[dependencies]
|
||||||
pyo3 = "0.6.0-alpha.2"
|
pyo3 = "0.6.0-alpha.4"
|
||||||
```
|
```
|
||||||
|
|
||||||
Example program displaying the value of `sys.version`:
|
Example program displaying the value of `sys.version`:
|
||||||
|
|
|
@ -469,7 +469,7 @@ with `#[pyproto]` attribute.
|
||||||
|
|
||||||
### Basic object customization
|
### Basic object customization
|
||||||
|
|
||||||
[`PyObjectProtocol`](https://docs.rs/pyo3/0.6.0-alpha.2/class/basic/trait.PyObjectProtocol.html) trait provide several basic customizations.
|
[`PyObjectProtocol`](https://docs.rs/pyo3/0.6.0-alpha.4/class/basic/trait.PyObjectProtocol.html) trait provide several basic customizations.
|
||||||
|
|
||||||
#### Attribute access
|
#### Attribute access
|
||||||
|
|
||||||
|
@ -533,7 +533,7 @@ Each methods corresponds to python's `self.attr`, `self.attr = value` and `del s
|
||||||
If your type owns references to other python objects, you will need to
|
If your type owns references to other python objects, you will need to
|
||||||
integrate with Python's garbage collector so that the GC is aware of
|
integrate with Python's garbage collector so that the GC is aware of
|
||||||
those references.
|
those references.
|
||||||
To do this, implement [`PyGCProtocol`](https://docs.rs/pyo3/0.6.0-alpha.2/class/gc/trait.PyGCProtocol.html) trait for your struct.
|
To do this, implement [`PyGCProtocol`](https://docs.rs/pyo3/0.6.0-alpha.4/class/gc/trait.PyGCProtocol.html) trait for your struct.
|
||||||
It includes two methods `__traverse__` and `__clear__`.
|
It includes two methods `__traverse__` and `__clear__`.
|
||||||
These correspond to the slots `tp_traverse` and `tp_clear` in the Python C API.
|
These correspond to the slots `tp_traverse` and `tp_clear` in the Python C API.
|
||||||
`__traverse__` must call `visit.call()` for each reference to another python object.
|
`__traverse__` must call `visit.call()` for each reference to another python object.
|
||||||
|
@ -576,7 +576,7 @@ collector, and it is possible to track them with `gc` module methods.
|
||||||
### Iterator Types
|
### Iterator Types
|
||||||
|
|
||||||
Iterators can be defined using the
|
Iterators can be defined using the
|
||||||
[`PyIterProtocol`](https://docs.rs/pyo3/0.6.0-alpha.2/class/iter/trait.PyIterProtocol.html) trait.
|
[`PyIterProtocol`](https://docs.rs/pyo3/0.6.0-alpha.4/class/iter/trait.PyIterProtocol.html) trait.
|
||||||
It includes two methods `__iter__` and `__next__`:
|
It includes two methods `__iter__` and `__next__`:
|
||||||
* `fn __iter__(&mut self) -> PyResult<impl IntoPyObject>`
|
* `fn __iter__(&mut self) -> PyResult<impl IntoPyObject>`
|
||||||
* `fn __next__(&mut self) -> PyResult<Option<impl IntoPyObject>>`
|
* `fn __next__(&mut self) -> PyResult<Option<impl IntoPyObject>>`
|
||||||
|
|
|
@ -106,9 +106,9 @@ Many conversions in pyo3 can't use `std::convert::Into` because they need a gil
|
||||||
|
|
||||||
Eventually, traits such as `IntoPyObject` will be replaces by this trait and a `FromPy` trait will be added that will implement `IntoPy`, just like with `From` and `Into`.
|
Eventually, traits such as `IntoPyObject` will be replaces by this trait and a `FromPy` trait will be added that will implement `IntoPy`, just like with `From` and `Into`.
|
||||||
|
|
||||||
[`ToPyObject`]: https://docs.rs/pyo3/0.6.0-alpha.2/trait.ToPyObject.html
|
[`ToPyObject`]: https://docs.rs/pyo3/0.6.0-alpha.4/trait.ToPyObject.html
|
||||||
[IntoPyObject]: https://docs.rs/pyo3/0.6.0-alpha.2/trait.IntoPyObject.html
|
[IntoPyObject]: https://docs.rs/pyo3/0.6.0-alpha.4/trait.IntoPyObject.html
|
||||||
[PyObject]: https://docs.rs/pyo3/0.6.0-alpha.2/struct.PyObject.html
|
[PyObject]: https://docs.rs/pyo3/0.6.0-alpha.4/struct.PyObject.html
|
||||||
[PyTuple]: https://docs.rs/pyo3/0.6.0-alpha.2/struct.PyTuple.html
|
[PyTuple]: https://docs.rs/pyo3/0.6.0-alpha.4/struct.PyTuple.html
|
||||||
[ObjectProtocol]: https://docs.rs/pyo3/0.6.0-alpha.2/trait.ObjectProtocol.html
|
[ObjectProtocol]: https://docs.rs/pyo3/0.6.0-alpha.4/trait.ObjectProtocol.html
|
||||||
[IntoPyDict]: https://docs.rs/pyo3/0.6.0-alpha.2/trait.IntoPyDict.html
|
[IntoPyDict]: https://docs.rs/pyo3/0.6.0-alpha.4/trait.IntoPyDict.html
|
||||||
|
|
|
@ -38,7 +38,7 @@ name = "string_sum"
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib"]
|
||||||
|
|
||||||
[dependencies.pyo3]
|
[dependencies.pyo3]
|
||||||
version = "0.5"
|
version = "0.6.0-alpha.4"
|
||||||
features = ["extension-module"]
|
features = ["extension-module"]
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "pyo3-derive-backend"
|
name = "pyo3-derive-backend"
|
||||||
version = "0.6.0-alpha.2"
|
version = "0.6.0-alpha.4"
|
||||||
description = "Code generation for PyO3 package"
|
description = "Code generation for PyO3 package"
|
||||||
authors = ["PyO3 Project and Contributors <https://github.com/PyO3>"]
|
authors = ["PyO3 Project and Contributors <https://github.com/PyO3>"]
|
||||||
keywords = ["pyo3", "python", "cpython", "ffi"]
|
keywords = ["pyo3", "python", "cpython", "ffi"]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "pyo3cls"
|
name = "pyo3cls"
|
||||||
version = "0.6.0-alpha.2"
|
version = "0.6.0-alpha.4"
|
||||||
description = "Proc macros for PyO3 package"
|
description = "Proc macros for PyO3 package"
|
||||||
authors = ["PyO3 Project and Contributors <https://github.com/PyO3>"]
|
authors = ["PyO3 Project and Contributors <https://github.com/PyO3>"]
|
||||||
keywords = ["pyo3", "python", "cpython", "ffi"]
|
keywords = ["pyo3", "python", "cpython", "ffi"]
|
||||||
|
@ -17,4 +17,4 @@ proc-macro = true
|
||||||
quote= "0.6.9"
|
quote= "0.6.9"
|
||||||
proc-macro2 = "0.4.20"
|
proc-macro2 = "0.4.20"
|
||||||
syn = { version = "0.15.15", features = ["full", "extra-traits"] }
|
syn = { version = "0.15.15", features = ["full", "extra-traits"] }
|
||||||
pyo3-derive-backend = { path = "../pyo3-derive-backend", version = "=0.6.0-alpha.2" }
|
pyo3-derive-backend = { path = "../pyo3-derive-backend", version = "=0.6.0-alpha.4" }
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
//! crate-type = ["cdylib"]
|
//! crate-type = ["cdylib"]
|
||||||
//!
|
//!
|
||||||
//! [dependencies.pyo3]
|
//! [dependencies.pyo3]
|
||||||
//! version = "0.6.0-alpha.2"
|
//! version = "0.6.0-alpha.4"
|
||||||
//! features = ["extension-module"]
|
//! features = ["extension-module"]
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
|
@ -93,7 +93,7 @@
|
||||||
//!
|
//!
|
||||||
//! ```toml
|
//! ```toml
|
||||||
//! [dependencies]
|
//! [dependencies]
|
||||||
//! pyo3 = "0.6.0-alpha.2"
|
//! pyo3 = "0.6.0-alpha.4"
|
||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! Example program displaying the value of `sys.version`:
|
//! Example program displaying the value of `sys.version`:
|
||||||
|
|
Loading…
Reference in New Issue