44
55
66@nox .session (python = ["3.9" , "3.10" , "3.11" , "3.12" , "3.13" ])
7- def tests (session ):
8- # session.run("pip", "install", "poetry==1.3.0" )
9-
10- # uv_export = "uv export --locked --no-hashes --group dev --group test -o deps.txt"
11- # uv_export = "uv export --locked -- no-hashes --group dev --group test -o deps.txt --no-install-project"
7+ def tests (session : nox . Session ):
8+ # print( session.python )
9+ # return
10+ session . install ( "uv" , "maturin" , "-U" )
11+ # uv_export = "uv export --no-hashes --group dev --group test -o deps.txt --no-install-project"
1212 uv_export = "uv export --no-hashes --group dev --group test -o deps.txt --no-install-project"
1313 uv_pip_install = "uv pip sync deps.txt"
1414
15- session .run ("pip" , "install" , "uv" )
1615 session .run (* uv_export .split (" " ))
1716 session .run (* uv_pip_install .split (" " ))
18- session .run ("uv" , "pip" , "install" , "maturin" )
1917
20- maturin_build = "maturin build -i python --out dist"
18+ # maturin_build = "maturin develop"
19+ maturin_build = "maturin pep517 build-wheel --editable -o dist"
2120
2221 if sys .platform == "darwin" :
2322 session .run ("rustup" , "target" , "add" , "x86_64-apple-darwin" )
@@ -26,9 +25,6 @@ def tests(session):
2625
2726 session .run (* maturin_build .split (" " ))
2827 session .run ("uv" , "pip" , "install" , "--no-index" , "--find-links=dist/" , "robyn" )
29- session .run ("whereis" , "pytest" )
30- session .run ("which" , "pytest" )
31- # session.run("uv", "run", "pytest")
3228 session .run ("pytest" )
3329
3430
0 commit comments