Debian Codegraph @

examples/hello-world-setuppy/noxfile.py

raw
1 from os.path import dirname
2
3 import nox
4
5 SETUPTOOLS_RUST = dirname(dirname(dirname(__file__)))
6
7
8 @nox.session()
9 def test(session: nox.Session):
10 session.install(SETUPTOOLS_RUST)
11 # Ensure build uses version of setuptools-rust under development
12 session.install("--no-build-isolation", ".")
13 # Test Rust binary
14 session.run("python", "-c", "from hello_world import _lib; print(_lib)")
15 session.run("python", "-c", "__import__('hello_world').sum_as_string(5, 7)")