pyo3/pytests
David Hewitt c4f66657c5
fix either feature conditional compilation, again (#3834)
* fix `either` feature conditional compilation, again

* test feature powerset in CI

* install `rust-src` for feature powerset tests

* review: adamreichold feedback

* Fix one more case of redundant imports.

* just check feature powerset for now

---------

Co-authored-by: Adam Reichold <adam.reichold@t-online.de>
2024-02-22 08:05:37 +00:00
..
src fix either feature conditional compilation, again (#3834) 2024-02-22 08:05:37 +00:00
tests support Bound for classmethod and pass_module (#3831) 2024-02-16 00:36:11 +00:00
build.rs
Cargo.toml
MANIFEST.in
noxfile.py feat: support pyclass on complex enums 2024-01-18 22:04:42 +09:00
pyproject.toml ci: don't test gevent on pypy (#3830) 2024-02-13 00:14:55 +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