Skip to content

Commit

Permalink
Update nox session to use new build script
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Jan 14, 2025
1 parent 4093700 commit f4be0bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def build_release(session: nox.Session) -> None:
)

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

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

session.log("# Build distributions")
session.run("python", "-m", "build", silent=True)
session.run("python", "build-project.py", silent=True)
produced_dists = glob.glob("dist/*")

session.log(f"# Verify distributions: {', '.join(produced_dists)}")
session.run("twine", "check", *produced_dists, silent=True)
session.run("twine", "check", "--strict", *produced_dists, silent=True)

return produced_dists

Expand Down

0 comments on commit f4be0bb

Please sign in to comment.