Skip to content

Commit 1bdca22

Browse files
committed
Update dependencies.
1 parent b19ba67 commit 1bdca22

File tree

5 files changed

+12
-14
lines changed

5 files changed

+12
-14
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ python:
66
- "3.5"
77
- "3.6"
88
env:
9-
- RUST_VERSION=1.20.0
9+
- RUST_VERSION=1.21.0
1010
- RUST_VERSION=nightly
1111
sudo: false
1212
install:

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,15 @@ Supported Python versions:
1616
* Python 2.7
1717
* Python 3.3 to 3.7
1818

19-
Supported Rust version:
20-
* Rust 1.13.0 or later
21-
* On Windows, Rust 1.15.0 or later
19+
Requires Rust 1.21.0 or later.
2220

2321
# Usage
2422

2523
To use `cpython`, add this to your `Cargo.toml`:
2624

2725
```toml
2826
[dependencies]
29-
cpython = "0.1"
27+
cpython = "0.2"
3028
```
3129

3230
Example program displaying the value of `sys.version`:
@@ -67,7 +65,7 @@ name = "rust2py"
6765
crate-type = ["cdylib"]
6866

6967
[dependencies.cpython]
70-
version = "0.1"
68+
version = "0.2"
7169
features = ["extension-module"]
7270
```
7371

python27-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ workspace = ".."
2525
libc = "0.2"
2626

2727
[build-dependencies]
28-
regex = "0.1"
28+
regex = "1"
2929

3030
[features]
3131
# This is examined by ./build.rs to determine which python version

python27-sys/build.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ fn get_interpreter_version(line: &str) -> Result<PythonVersion, String> {
231231
let version_re = Regex::new(r"\((\d+), (\d+)\)").unwrap();
232232
match version_re.captures(&line) {
233233
Some(cap) => Ok(PythonVersion {
234-
major: cap.at(1).unwrap().parse().unwrap(),
235-
minor: Some(cap.at(2).unwrap().parse().unwrap())
234+
major: cap.get(1).unwrap().as_str().parse().unwrap(),
235+
minor: Some(cap.get(2).unwrap().as_str().parse().unwrap())
236236
}),
237237
None => Err(
238238
format!("Unexpected response to version query {}", line))
@@ -373,10 +373,10 @@ fn version_from_env() -> Result<PythonVersion, String> {
373373
vars.sort_by(|a, b| b.cmp(a));
374374
for (key, _) in vars {
375375
match re.captures(&key) {
376-
Some(cap) => return Ok(PythonVersion {
377-
major: cap.at(1).unwrap().parse().unwrap(),
378-
minor: match cap.at(3) {
379-
Some(s) => Some(s.parse().unwrap()),
376+
Some(cap) => return Ok(PythonVersion {
377+
major: cap.get(1).unwrap().as_str().parse().unwrap(),
378+
minor: match cap.get(3) {
379+
Some(s) => Some(s.as_str().parse().unwrap()),
380380
None => None
381381
}
382382
}),

python3-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ workspace = ".."
2525
libc = "0.2"
2626

2727
[build-dependencies]
28-
regex = "0.2"
28+
regex = "1"
2929

3030
[features]
3131
# This is examined by ./build.rs to determine which python version

0 commit comments

Comments
 (0)