pyo3/pytests
David Hewitt e1d4173827 Fix bug in default implementation of `__ne__` 2023-10-11 09:48:06 +01:00
..
pyo3_pytests
src unify 3.12 and pre-3.12 exception handling pathways 2023-09-30 23:27:27 +01:00
tests Fix bug in default implementation of `__ne__` 2023-10-11 09:48:06 +01:00
Cargo.toml Bump Rust edition to 2021 and make current Clippy happy. 2023-06-07 21:15:38 +02:00
MANIFEST.in
README.md
build.rs
noxfile.py ci: avoid failure to build numpy on 3.12 2023-07-22 21:38:57 +01:00
pyproject.toml bump maturin version in example files 2023-06-14 08:45:32 +01:00
requirements-dev.txt always normalize exceptions before raising 2023-09-24 13:38:23 +01:00

README.md

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