pyo3/pytests
Tpt 1e5a49557d Makes PathBuf FromPyObject implementation work on all os.PathLike
PyOS_FSPath is in abi3-py36
2023-08-08 22:15:56 +02:00
..
pyo3_pytests
src
tests Makes PathBuf FromPyObject implementation work on all os.PathLike 2023-08-08 22:15:56 +02:00
Cargo.toml
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
requirements-dev.txt

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