Skip to content

Commit 2304db3

Browse files
committed
fix: swap maturin and uv build locations in the build-python nox session
1 parent 3d0f341 commit 2304db3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

{{cookiecutter.project_name}}/noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,10 @@ def build_python(session: Session) -> None:
258258
session.install("-e", ".", "--group", "dev")
259259

260260
session.log(f"Building sdist and wheel packages with py{session.python}.")
261-
{% if cookiecutter.add_rust_extension == 'y' -%}
262-
session.run("uv", "build", "--sdist", "--wheel", "--outdir", "dist/", external=True)
263-
{% else -%}
261+
{% if cookiecutter.add_rust_extension == "y" -%}
264262
session.run("maturin", "develop", "--uv")
263+
{% else -%}
264+
session.run("uv", "build", "--sdist", "--wheel", "--outdir", "dist/", external=True)
265265
{% endif -%}
266266

267267
session.log("Built packages in ./dist directory:")

0 commit comments

Comments
 (0)