Skip to content

Commit 9b0abc8

Browse files
committed
Build using build
Update the build-release nox session to build using `build` instead of a direct setup.py call.
1 parent 9d4be78 commit 9b0abc8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

noxfile.py

Lines changed: 2 additions & 3 deletions
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)