Skip to content

Commit 829083d

Browse files
sebpuetzDaniël de Kok
authored andcommitted
Download pyo3-pack instead of installing.
1 parent d58d0eb commit 829083d

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.travis.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,28 @@ install:
3737
source venv/bin/activate
3838
pip install cffi virtualenv pytest numpy
3939
fi
40-
- cargo install --git https://github.com/PyO3/pyo3-pack.git --tag v0.6.1 pyo3-pack
4140
- rustup default nightly-2019-07-19
4241
- rustup component add rustfmt
4342
- rustup component add clippy
43+
- |
44+
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
45+
travis_retry wget https://github.com/PyO3/maturin/releases/download/v0.7.2/maturin-v0.7.2-x86_64-apple-darwin.tar.gz
46+
tar -xzf maturin-v0.7.2-x86_64-apple-darwin.tar.gz
47+
fi
48+
- |
49+
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
50+
travis_retry wget https://github.com/PyO3/maturin/releases/download/v0.7.2/maturin-v0.7.2-x86_64-unknown-linux-musl.tar.gz
51+
tar -xzf maturin-v0.7.2-x86_64-unknown-linux-musl.tar.gz
52+
fi
4453
4554
script:
4655
- cargo fmt --all -- --check
4756
- cargo clippy -- -D warnings
48-
- pyo3-pack develop
57+
- ./maturin develop
4958
- pytest
5059
- |
5160
if [ -n "$TRAVIS_TAG" ]; then
52-
pyo3-pack build --release
61+
./maturin build --release
5362
fi
5463
deploy:
5564
provider: releases

0 commit comments

Comments
 (0)