X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fpypi-dist-build.sh;fp=shell%2Fpypi-dist-build.sh;h=27b4b3df48c7b8b02e992303bf578c74cba4f8b9;hb=c05d9ff33aae7ac0797c6a7fe462a1aa59629766;hp=8baeac1e3686f05ce605545178276d09e8630c4c;hpb=d5ce4fd6497f1f484c695d32cfd96acb369978f4;p=releng%2Fglobal-jjb.git diff --git a/shell/pypi-dist-build.sh b/shell/pypi-dist-build.sh index 8baeac1e..27b4b3df 100644 --- a/shell/pypi-dist-build.sh +++ b/shell/pypi-dist-build.sh @@ -19,6 +19,9 @@ set -eu -o pipefail virtualenv -p python3 /tmp/pypi PATH=/tmp/pypi/bin:$PATH +echo "INFO: installing twine to check distributions" +pip install -q twine + bdist="" if $BUILD_BDIST_WHEEL; then echo "INFO: installing wheel to build binary distribution" @@ -32,4 +35,7 @@ cd "$WORKSPACE/$TOX_DIR" echo "INFO: creating distributions" python3 setup.py sdist $bdist +echo "INFO: checking distributions" +twine check dist/* + echo "---> pypi-dist-build.sh ends"