Skip to content

Commit d9fb8b5

Browse files
committed
Move rustapi_module into examples
This is really a test module, but the Rust convention is to put something like this under examples/, and when it lands, we can take advantage of "Project-based Examples for Cargo Projects" - RFC link at rust-lang/rfcs#2517
1 parent 594e87e commit d9fb8b5

File tree

11 files changed

+6
-7
lines changed

11 files changed

+6
-7
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,4 @@ members = [
5757
"pyo3cls",
5858
"pyo3-derive-backend",
5959
"examples/*",
60-
"tests/rustapi_module",
6160
]

ci/travis/test.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ cargo test --features $FEATURES
77

88
for example in examples/*; do
99
cd $example
10-
python setup.py install
11-
pytest -v tests
10+
if [ -f tox.ini ]; then
11+
tox -e py
12+
else
13+
pip install -e .
14+
pytest -v tests
15+
fi
1216
cd $TRAVIS_BUILD_DIR
1317
done
14-
15-
cd tests/rustapi_module
16-
tox -e py
17-
cd $TRAVIS_BUILD_DIR
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)