Skip to content

Commit 7da3c61

Browse files
committed
Download pyo3-pack instead of installing.
1 parent adb2d20 commit 7da3c61

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
4443

4544
script:
4645
- cargo fmt --all -- --check
4746
- cargo clippy -- -D warnings
48-
- pyo3-pack develop
47+
- |
48+
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
49+
wget https://github.com/PyO3/maturin/releases/download/v0.7.2/maturin-v0.7.2-x86_64-apple-darwin.tar.gz
50+
tar -xzf maturin-v0.7.2-x86_64-apple-darwin.tar.gz
51+
fi
52+
- |
53+
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
54+
wget https://github.com/PyO3/maturin/releases/download/v0.7.2/maturin-v0.7.2-x86_64-unknown-linux-musl.tar.gz
55+
tar -xzf maturin-v0.7.2-x86_64-unknown-linux-musl.tar.gz
56+
fi
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)