pyo3/pytests
David Hewitt 7b07d6d21b
Merge pull request #3578 from davidhewitt/typed-helpers
Change return types of `py.None()`, `py.NotImplemented()` and `py.Ellipsis()` to typed singletons
2023-11-20 07:07:12 +00:00
..
pyo3_pytests pytests: merge benchmark and test crates 2022-02-05 10:16:46 +00:00
src Change return types of py.None(), py.NotImplemented() and py.Ellipsis() to typed singletons 2023-11-17 16:16:19 +00:00
tests ci: switch from black to ruff 2023-10-26 21:04:49 +01:00
build.rs pytests: merge benchmark and test crates 2022-02-05 10:16:46 +00:00
Cargo.toml ci: move lints to new 1.74 cargo.toml tables 2023-11-17 15:41:52 +00:00
MANIFEST.in pytests: merge benchmark and test crates 2022-02-05 10:16:46 +00:00
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
README.md pytests: merge benchmark and test crates 2022-02-05 10:16:46 +00:00
requirements-dev.txt ci: drop psutil dependency 2023-10-15 14:15:38 +01:00

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