MCPcopy Create free account
hub / github.com/PyO3/pyo3 / python

Function python

examples/plugin/plugin_api/noxfile.py:7–16  ·  view source on GitHub ↗
(session: nox.Session)

Source from the content-addressed store, hash-verified

5
6@nox.session
7def python(session: nox.Session):
8 parser = argparse.ArgumentParser()
9 parser.add_argument("--features")
10 args = parser.parse_args(session.posargs)
11
12 session.env["MATURIN_PEP517_ARGS"] = "--profile=dev"
13 if args.features:
14 session.env["MATURIN_PEP517_ARGS"] += f" --features={args.features}"
15 session.install(".[dev]")
16 session.run("pytest")

Callers

nothing calls this directly

Calls 3

add_argumentMethod · 0.80
installMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected