Skip to content

Commit 6aa50ed

Browse files
authored
Merge pull request #94 from kngwyu/version0.5
Bump version to 0.5.0
2 parents 8eba2fa + 201d6bd commit 6aa50ed

File tree

4 files changed

+35
-35
lines changed

4 files changed

+35
-35
lines changed

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "numpy"
3-
version = "0.4.1"
3+
version = "0.5.0"
44
authors = ["Toshiki Teramura <[email protected]>", "Yuji Kanagawa <[email protected]>"]
55
description = "Rust binding of NumPy C-API"
66
documentation = "https://rust-numpy.github.io/rust-numpy/numpy"
@@ -9,12 +9,12 @@ keywords = ["numpy", "python", "binding"]
99
license-file = "LICENSE"
1010

1111
[dependencies]
12-
cfg-if = "0.1.6"
13-
libc = "0.2.44"
14-
num-complex = "0.2.1"
15-
num-traits = "0.2.6"
12+
cfg-if = "0.1"
13+
libc = "0.2"
14+
num-complex = "0.2"
15+
num-traits = "0.2"
1616
ndarray = "0.12"
17-
pyo3 = "0.6.0"
17+
pyo3 = "0.6"
1818

1919
[features]
2020
# In default setting, python version is automatically detected

README.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@ rust-numpy
66

77
Rust bindings for the NumPy C-API
88

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

1413

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

29-
Supported python version
30-
-------------
31-
Currently 2.7, 3.5, 3.6, 3.7 are supported.
27+
## Supported Python version
3228

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

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

32+
## Python2 Support
33+
Version 0.5.0 is the last version that supports Python2.
34+
35+
If you want to compile this library with Python2, please use 0.5.0 from crates.io.
36+
37+
In addition, you have to add a feature flag in `Cargo.toml` like
3738
``` toml
3839
[dependencies.numpy]
39-
version = "0.4.0"
40+
version = "0.5.0"
4041
features = ["python2"]
4142
```
4243
.
@@ -45,19 +46,18 @@ You can also automatically specify python version in [setup.py](examples/simple-
4546
using [setuptools-rust](https://github.com/PyO3/setuptools-rust).
4647

4748

48-
Example
49-
---------
49+
## Example
5050

5151

52-
## Execute a Python program from Rust and get results
52+
### Execute a Python program from Rust and get results
5353

5454
``` toml
5555
[package]
5656
name = "numpy-test"
5757

5858
[dependencies]
59-
pyo3 = "0.5.2"
60-
numpy = "0.4.0"
59+
pyo3 = "0.6.0"
60+
numpy = "0.5.0"
6161
```
6262

6363
``` rust
@@ -90,7 +90,7 @@ fn main_<'py>(py: Python<'py>) -> PyResult<()> {
9090
}
9191
```
9292

93-
## Write a Python module in Rust
93+
### Write a Python module in Rust
9494

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

@@ -100,11 +100,11 @@ name = "rust_ext"
100100
crate-type = ["cdylib"]
101101

102102
[dependencies]
103-
numpy = "0.4.0"
103+
numpy = "0.5.0"
104104
ndarray = "0.12"
105105

106106
[dependencies.pyo3]
107-
version = "0.5.2"
107+
version = "0.6.0"
108108
features = ["extension-module"]
109109
```
110110

@@ -154,15 +154,15 @@ fn rust_ext(_py: Python, m: &PyModule) -> PyResult<()> {
154154
}
155155
```
156156

157-
Contribution
158-
-------------
159-
This project is still in pre-alpha.
157+
## Contribution
158+
We need your feedback.
159+
160+
Don't hesitate to open [issues](https://github.com/rust-numpy/rust-numpy/issues)!
160161

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

164-
Version
165-
--------
166166
- v0.4.0
167167
- Duplicate `PyArrayModule` and import Numpy API automatically
168168
- Fix memory leak of `IntoPyArray` and add `ToPyArray` crate
@@ -190,4 +190,4 @@ Version
190190

191191
- v0.1.0
192192
- First Release
193-
- Expose unsafe interfase of Array and UFunc API
193+
- Expose unsafe interface of Array and UFunc API

examples/linalg/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ ndarray = "0.12"
1414
ndarray-linalg = { version = "0.10", features = ["openblas"] }
1515

1616
[dependencies.pyo3]
17-
version = "0.6.0"
17+
version = "0.6"
1818
features = ["extension-module"]

examples/simple-extension/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ numpy = { path = "../.." }
1212
ndarray = "0.12"
1313

1414
[dependencies.pyo3]
15-
version = "0.6.0"
16-
features = ["extension-module"]
15+
version = "0.6"
16+
features = ["extension-module"]

0 commit comments

Comments
 (0)