Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump version to 0.5.0 #94

Merged
merged 1 commit into from
Mar 31, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "numpy"
version = "0.4.1"
version = "0.5.0"
authors = ["Toshiki Teramura <toshiki.teramura@gmail.com>", "Yuji Kanagawa <yuji.kngw.80s.revive@gmail.com>"]
description = "Rust binding of NumPy C-API"
documentation = "https://rust-numpy.github.io/rust-numpy/numpy"
Expand All @@ -9,12 +9,12 @@ keywords = ["numpy", "python", "binding"]
license-file = "LICENSE"

[dependencies]
cfg-if = "0.1.6"
libc = "0.2.44"
num-complex = "0.2.1"
num-traits = "0.2.6"
cfg-if = "0.1"
libc = "0.2"
num-complex = "0.2"
num-traits = "0.2"
ndarray = "0.12"
pyo3 = "0.6.0"
pyo3 = "0.6"

[features]
# In default setting, python version is automatically detected
Expand Down
52 changes: 26 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ rust-numpy

Rust bindings for the NumPy C-API

API documentation
-------------
## API documentation
- [Latest release (possibly broken)](https://docs.rs/numpy)
- [Current Master](https://rust-numpy.github.io/rust-numpy)


Requirements
-------------
## Requirements
- current nightly rust (see https://github.com/PyO3/pyo3/issues/5 for nightly features, and
https://github.com/PyO3/pyo3/blob/master/build.rs for minimum required version)
- some rust libraries
Expand All @@ -26,17 +24,20 @@ https://github.com/PyO3/pyo3/blob/master/build.rs for minimum required version)
Starting from 0.3, rust-numpy migrated from rust-cpython to pyo3.
If you want to use rust-cpython, use version 0.2.1 from crates.io.

Supported python version
-------------
Currently 2.7, 3.5, 3.6, 3.7 are supported.
## Supported Python version

By default, rust-numpy is built for Python3.
Currently 3.5, 3.6, 3.7 are supported.

If you want to compile for Python2, please add a feature flag in `Cargo.toml` like

## Python2 Support
Version 0.5.0 is the last version that supports Python2.

If you want to compile this library with Python2, please use 0.5.0 from crates.io.

In addition, you have to add a feature flag in `Cargo.toml` like
``` toml
[dependencies.numpy]
version = "0.4.0"
version = "0.5.0"
features = ["python2"]
```
.
Expand All @@ -45,19 +46,18 @@ You can also automatically specify python version in [setup.py](examples/simple-
using [setuptools-rust](https://github.com/PyO3/setuptools-rust).


Example
---------
## Example


## Execute a Python program from Rust and get results
### Execute a Python program from Rust and get results

``` toml
[package]
name = "numpy-test"

[dependencies]
pyo3 = "0.5.2"
numpy = "0.4.0"
pyo3 = "0.6.0"
numpy = "0.5.0"
```

``` rust
Expand Down Expand Up @@ -90,7 +90,7 @@ fn main_<'py>(py: Python<'py>) -> PyResult<()> {
}
```

## Write a Python module in Rust
### Write a Python module in Rust

Please see the [example](example) directory for a complete example

Expand All @@ -100,11 +100,11 @@ name = "rust_ext"
crate-type = ["cdylib"]

[dependencies]
numpy = "0.4.0"
numpy = "0.5.0"
ndarray = "0.12"

[dependencies.pyo3]
version = "0.5.2"
version = "0.6.0"
features = ["extension-module"]
```

Expand Down Expand Up @@ -154,15 +154,15 @@ fn rust_ext(_py: Python, m: &PyModule) -> PyResult<()> {
}
```

Contribution
-------------
This project is still in pre-alpha.
## Contribution
We need your feedback.

Don't hesitate to open [issues](https://github.com/rust-numpy/rust-numpy/issues)!

We need your feedback.
Don't hesitate to open [issues](https://github.com/termoshtt/rust-numpy/issues)!
## Version
- v0.5.0
- Update PyO3 to 0.6

Version
--------
- v0.4.0
- Duplicate `PyArrayModule` and import Numpy API automatically
- Fix memory leak of `IntoPyArray` and add `ToPyArray` crate
Expand Down Expand Up @@ -190,4 +190,4 @@ Version

- v0.1.0
- First Release
- Expose unsafe interfase of Array and UFunc API
- Expose unsafe interface of Array and UFunc API
2 changes: 1 addition & 1 deletion examples/linalg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ ndarray = "0.12"
ndarray-linalg = { version = "0.10", features = ["openblas"] }

[dependencies.pyo3]
version = "0.6.0"
version = "0.6"
features = ["extension-module"]
4 changes: 2 additions & 2 deletions examples/simple-extension/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ numpy = { path = "../.." }
ndarray = "0.12"

[dependencies.pyo3]
version = "0.6.0"
features = ["extension-module"]
version = "0.6"
features = ["extension-module"]