Build a rust extension using PyO3 using tox
An extremely basic plugin that builds Rust extensions within tox virtualenvs.
- Runs maturin develop
- maturin must be installed somewhere in your system
- A rust compiler
You can install "tox-pyo3" via pip from PyPI:
$ pip install tox-pyo3
- When you set pyo3=true in your testenv this plugin automatically detects if Cargo.toml is present and if so, it will compile the extension
Example:
`ini
[testenv]
pyo3 = True
`
Contributions are very welcome. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.
Distributed under the terms of the BSD-3 license, "tox-pyo3" is free and open source software
If you encounter any problems, please file an issue along with a detailed description.