hydro_template 0.1.0

A template for creating Python extension modules with PyO3 and Rayon.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import nox

nox.options.sessions = ["test"]


@nox.session
def test(session: nox.Session):
    session.env["MATURIN_PEP517_ARGS"] = "--profile=dev"
    session.install(".[dev]")
    session.run("pytest")


@nox.session
def bench(session: nox.Session):
    session.env["MATURIN_PEP517_ARGS"] = "--profile=dev"
    session.install(".[dev]")
    session.run("pytest", "--benchmark-enable")