Skip to content

Commit

Permalink
Merge pull request #12355 from sbidoul/build-using-build
Browse files Browse the repository at this point in the history
Build using `build`
  • Loading branch information
sbidoul authored Oct 18, 2023
2 parents f3620cd + 9b0abc8 commit 8a0f77c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def build_release(session: nox.Session) -> None:
)

session.log("# Install dependencies")
session.install("setuptools", "wheel", "twine")
session.install("build", "twine")

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

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

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

0 comments on commit 8a0f77c

Please sign in to comment.