Skip to content

Commit a224786

Browse files
fulmicotonmessense
andauthored
Messense stable (#29)
* Upgrade pyo3 to 0.13 and build on stable Rust * Set python 3.8 for rust lint too Co-authored-by: messense <[email protected]>
1 parent a3a083b commit a224786

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ before_cache:
1919

2020
env:
2121
global:
22-
- TRAVIS_RUST_VERSION=nightly
22+
- TRAVIS_RUST_VERSION=stable
2323
- RUST_BACKTRACE=1
2424
- secure: ZR/4EeOZBCa63aYIuSo36c2DsJoRpOUTQo3zcPzOJoxFxvCTYUJnyX8P38hktdcTcpgEm1ALDbsQDZNboJIP80OkLtWbaQNHgP6jFLqbENryyXYmPunbU9QQWOZaFhEJ+kgUun3kBLYoTW0iZFcJ0AHzjogOEenxKan4lFsZG9Wgku8Q0HX0zK8PPk6ZpMASUrmDAUbW/K6fVuxpix+VF6iPeK1IOxnDSn9CMBI6F1Tq46J/kWzMOWthVthjA0G0OiXi4eQN3ysP/o4bYpr1mifiHCssVKpfwmpqoDR3Nka9H39RN8xcn4X+0h5XA+jAVsD4qUfOcg2otkuZST/h0r1Q30/NrxWmxS6PtIImVlOAxotEkrRwt/DT0sXSRbApmyLApPDPKJ16mjm1miAZvXeJOwB1pT9SKqyxlh4+pPOnXUMYVH44XVCTF7C3zsgxMmv3frRbKfcedJAon4UIIZdE3guA83aadTk6HEXXefmAsxEyJDsA3NJJ8Wm5GkGvrFJZnI9X88eYLX0+H+NW/RHi0CCi6JfnsFjmDpXLRkdAxN8fRIaaDBmleir2AFFXYHAPdcM7z/B1HnTTJBbjeezFwb8JvFPZzxIOijxVfIVeoGcOwgpFzm2wHEi0AH4z2KtAzDQnhdhmle3Q4TrCt78e0iFJb1dANbdmhYpe/xI=
2525

@@ -40,7 +40,7 @@ jobs:
4040
before_install:
4141
- pip install --upgrade pip
4242
- pip install -U pytest
43-
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
43+
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable
4444
- source "$HOME"/.cargo/env
4545
before_script:
4646
- cp target/debug/libtantivy.so tantivy/tantivy.so
@@ -71,9 +71,13 @@ jobs:
7171
- cp target/debug/tantivy.dll tantivy/tantivy.pyd
7272
env: PATH=/c/Python38:/c/Python37:/c/Python38/Scripts:/c/Python37/Scripts:$PATH
7373

74-
- name: 'rust linters'
74+
- os: linux
75+
dist: bionic
76+
python: 3.8
77+
name: 'rust linters'
7578
install: rustup component add clippy rustfmt
7679
script:
80+
- python3 --version
7781
- cargo clippy
7882
- cargo fmt -- --check
7983
stage: lint

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ itertools = "0.9.0"
1717
futures = "0.3.5"
1818

1919
[dependencies.pyo3]
20-
version = "0.12.1"
20+
version = "0.13.2"
2121
features = ["extension-module"]
2222

2323
[package.metadata.maturin]
2424
requires-python = ">=3.7"
25-
project-url = ["https://github.com/tantivy-search/tantivy-py"]
25+
project-url = { Source = "https://github.com/tantivy-search/tantivy-py" }

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ build from source, this means that Rust needs to be installed before building
1818
can succeed.
1919

2020
Note that the bindings are using [PyO3](https://github.com/PyO3/pyo3), which
21-
requires rust nightly and only supports python3.
21+
only supports python3.
2222

2323
# Development
2424

0 commit comments

Comments
 (0)