Skip to content

Commit

Permalink
The twine-check nox target now call's the build target
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
  • Loading branch information
s0undt3ch committed Jan 25, 2022
1 parent 88fb304 commit 5cb3151
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
1 change: 1 addition & 0 deletions changelog/3.trivial.rst
Expand Up @@ -2,3 +2,4 @@ Improvements before final RC

* Add ``ProcessResult.std{out,err}.matcher`` example
* Also generate reproducible packages when uploading a release to pypi
* The ``twine-check`` nox target now call's the ``build`` target
11 changes: 2 additions & 9 deletions noxfile.py
Expand Up @@ -383,14 +383,7 @@ def twine_check(session):
"""
Run ``twine-check`` against the source distribution package.
"""
session.install("--progress-bar=off", "twine", silent=PIP_INSTALL_SILENT)
session.run(
"python",
"setup.py",
"sdist",
silent=True,
log=False,
)
build(session)
session.run("twine", "check", "dist/*")


Expand Down Expand Up @@ -562,4 +555,4 @@ def build(session):
if sha256sum:
packages = [str(pkg.relative_to(REPO_ROOT)) for pkg in REPO_ROOT.joinpath("dist").iterdir()]
session.run("sha256sum", *packages, external=True)
session.run("python", "-m", "twine", "check", str(REPO_ROOT.joinpath("dist/*")))
session.run("python", "-m", "twine", "check", "dist/*")

0 comments on commit 5cb3151

Please sign in to comment.