test-crates/pyo3-mixed-submodule/README.md
raw| 1 | # pyo3-mixed-submodule |
| 2 | |
| 3 | A package for testing maturin with a mixed pyo3/python project with Rust submodule. |
| 4 | |
| 5 | ## Usage |
| 6 | |
| 7 | ```bash |
| 8 | pip install . |
| 9 | ``` |
| 10 | |
| 11 | ```python |
| 12 | import pyo3_mixed_submodule |
| 13 | assert pyo3_mixed_submodule.get_42() == 42 |
| 14 | ``` |
| 15 | |
| 16 | ## Testing |
| 17 | |
| 18 | Install tox: |
| 19 | |
| 20 | ```bash |
| 21 | pip install tox |
| 22 | ``` |
| 23 | |
| 24 | Run it: |
| 25 | |
| 26 | ```bash |
| 27 | tox |
| 28 | ``` |
| 29 | |
| 30 | The tests are in `tests/test_pyo3_mixed_submodule.py`, while the configuration is in tox.ini |