X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fpypi-dist-build.sh;h=9341a1ff6f066ccf1dda3c2783709889e92fde6f;hb=b55451a53da28d40c62de5cae462302a32fe4c31;hp=8baeac1e3686f05ce605545178276d09e8630c4c;hpb=0f5407d52cb7483a04426c49defca6553ac01aaf;p=releng%2Fglobal-jjb.git diff --git a/shell/pypi-dist-build.sh b/shell/pypi-dist-build.sh index 8baeac1e..9341a1ff 100644 --- a/shell/pypi-dist-build.sh +++ b/shell/pypi-dist-build.sh @@ -16,13 +16,16 @@ echo "---> pypi-dist-build.sh" # Ensure we fail the job if any steps fail. set -eu -o pipefail +echo "INFO: creating virtual environment" virtualenv -p python3 /tmp/pypi PATH=/tmp/pypi/bin:$PATH +pipup="python -m pip install -q --upgrade setuptools twine wheel" +echo "INFO: $pipup" +$pipup bdist="" if $BUILD_BDIST_WHEEL; then - echo "INFO: installing wheel to build binary distribution" - pip install -q wheel + echo "INFO: adding wheel to build binary distribution" bdist="bdist_wheel" fi @@ -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"