Skip to content

Commit 733083c

Browse files
authored
Merge pull request #76 from kngwyu/refactor-example
Move current example to 'simple-extension'
2 parents f592b97 + 70e2462 commit 733083c

File tree

15 files changed

+52
-46
lines changed

15 files changed

+52
-46
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ Cargo.lock
1010

1111
# cargo fmt
1212
*.bk
13+
.tox/

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ before_install:
3333
- source ./ci/travis/setup.sh
3434

3535
install:
36-
- pip install -r ./example/requirements.txt
36+
- pip install setuptools-rust pytest pytest-benchmark tox numpy
3737

3838
script:
3939
- ./ci/travis/test.sh

appveyor.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ install:
1414
- rustc -V
1515
- cargo -V
1616
- set RUST_BACKTRACE=1
17-
- pip install numpy
17+
- pip install setuptools-rust pytest pytest-benchmark tox numpy
1818

1919
build_script:
2020
- cargo build --verbose
@@ -23,7 +23,4 @@ test_script:
2323
- cargo build --verbose --all
2424
- cargo test --verbose --all
2525
- rustdoc --test README.md -L native="%PYTHON%\\libs" -L target/debug/deps/
26-
- pip install setuptools-rust
27-
- cd example
28-
- python setup.py install
29-
- python setup.py test
26+
- cd examples/simple-extension && python setup.py install && python setup.py test

ci/travis/test.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ cargo build --verbose --all
66
cargo test --verbose --all
77
rustdoc -L target/debug/deps/ --test README.md
88

9-
cd example
10-
python setup.py install
11-
python setup.py test
9+
for example in examples/*; do
10+
cd $example
11+
tox -e py
12+
cd $TRAVIS_BUILD_DIR
13+
done

example/requirements.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

example/tests/test_ext.py

Lines changed: 0 additions & 27 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
numpy>=1.15.0
2+
pytest>=3.5.0
3+
setuptools-rust>=0.10.2

0 commit comments

Comments
 (0)