Skip to content

Commit c422f92

Browse files
committed
Use uv for build noxenv too.
1 parent 44f95b6 commit c422f92

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

noxfile.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,15 @@ def build(session):
5454
"""
5555
Build a distribution suitable for PyPI and check its validity.
5656
"""
57-
session.install("build", "twine")
57+
session.install("build[uv]", "twine")
5858
with TemporaryDirectory() as tmpdir:
59-
session.run("python", "-m", "build", ROOT, "--outdir", tmpdir)
59+
session.run(
60+
"pyproject-build",
61+
"--installer=uv",
62+
ROOT,
63+
"--outdir",
64+
tmpdir,
65+
)
6066
session.run("twine", "check", "--strict", tmpdir + "/*")
6167

6268

0 commit comments

Comments
 (0)