pyo3/pytests
2022-10-13 09:43:45 +02:00
..
pyo3_pytests
src Also relax the PySequence check when extracting fixed-sized arrays. 2022-10-13 09:43:45 +02:00
tests Also relax the PySequence check when extracting fixed-sized arrays. 2022-10-13 09:43:45 +02:00
build.rs
Cargo.toml examples: update maturin to 0.13 2022-08-18 08:17:53 +01:00
MANIFEST.in
noxfile.py Add a Python test exploring from which types a Vec can be extracted. 2022-09-21 09:47:05 +02:00
pyproject.toml examples: update maturin to 0.13 2022-08-18 08:17:53 +01:00
README.md
requirements-dev.txt

pyo3-pytests

An extension module built using PyO3, used to test and benchmark PyO3 from Python.

Testing

This package is intended to be built using maturin. Once built, you can run the tests using pytest:

pip install maturin
maturin develop
pytest

Alternatively, install nox and run the tests inside an isolated environment:

nox

Running benchmarks

You can install the module in your Python environment and then run the benchmarks with pytest:

pip install .
pytest --benchmark-enable

Or with nox:

nox -s bench