mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Build using build
Update the build-release nox session to build using `build` instead of a direct setup.py call.
This commit is contained in:
parent
9d4be7802f
commit
9b0abc8c40
1 changed files with 2 additions and 3 deletions
|
@ -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(
|
||||
|
@ -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)}")
|
||||
|
|
Loading…
Reference in a new issue