| 1 |
# pyo3-mixed-implicit |
| 2 |
|
| 3 |
A package for testing maturin with a mixed pyo3/python project with an implicit namespace package and Rust submodule. |
| 4 |
|
| 5 |
## Usage |
| 6 |
|
| 7 |
```bash |
| 8 |
pip install . |
| 9 |
``` |
| 10 |
|
| 11 |
```python |
| 12 |
import pyo3_mixed_implicit |
| 13 |
assert pyo3_mixed_implicit.some_rust.get_22() == 22 |
| 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_implicit.py`, while the configuration is in tox.ini |