Skip to content

Commit 8a0f77c

Browse files
authored
Merge pull request #12355 from sbidoul/build-using-build
Build using `build`
2 parents f3620cd + 9b0abc8 commit 8a0f77c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

noxfile.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def build_release(session: nox.Session) -> None:
322322
)
323323

324324
session.log("# Install dependencies")
325-
session.install("setuptools", "wheel", "twine")
325+
session.install("build", "twine")
326326

327327
with release.isolated_temporary_checkout(session, version) as build_dir:
328328
session.log(
@@ -358,8 +358,7 @@ def build_dists(session: nox.Session) -> List[str]:
358358
)
359359

360360
session.log("# Build distributions")
361-
session.install("setuptools", "wheel")
362-
session.run("python", "setup.py", "sdist", "bdist_wheel", silent=True)
361+
session.run("python", "-m", "build", silent=True)
363362
produced_dists = glob.glob("dist/*")
364363

365364
session.log(f"# Verify distributions: {', '.join(produced_dists)}")

0 commit comments

Comments
 (0)