pyo3/pytests
David Hewitt 5c1e4d10b3 ci: fixup pytests to compile in debug 2023-12-29 22:52:10 +00:00
..
src unify 3.12 and pre-3.12 exception handling pathways 2023-09-30 23:27:27 +01:00
tests ci: switch from black to ruff 2023-12-29 22:44:24 +00:00
Cargo.toml ci: move lints to new 1.74 cargo.toml tables 2023-12-29 22:46:39 +00:00
MANIFEST.in pytests: merge benchmark and test crates 2022-02-05 10:16:46 +00:00
README.md pytests: merge benchmark and test crates 2022-02-05 10:16:46 +00:00
build.rs pytests: merge benchmark and test crates 2022-02-05 10:16:46 +00:00
noxfile.py ci: fixup pytests to compile in debug 2023-12-29 22:52:10 +00:00
pyproject.toml ci: refactor pytests dev dependencies 2023-12-29 22:51:45 +00: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