X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fpypi-dist-build.sh;h=4bc0a77644a499d0509925d2b22d326baeb2dc40;hb=eafdcafcbe25dbad05e5117aca20bf6ea048ac44;hp=eb10371b34e86020bdcc4e15ee30326ed7b66572;hpb=3dd1773c0ec86b6f24f5e31df7ea0d8650c3c092;p=releng%2Fglobal-jjb.git diff --git a/shell/pypi-dist-build.sh b/shell/pypi-dist-build.sh index eb10371b..4bc0a776 100644 --- a/shell/pypi-dist-build.sh +++ b/shell/pypi-dist-build.sh @@ -16,18 +16,25 @@ echo "---> pypi-dist-build.sh" # Ensure we fail the job if any steps fail. set -eu -o pipefail -virtualenv -p python3 /tmp/pypi -PATH=/tmp/pypi/bin:$PATH +# shellcheck disable=SC1090 +source ~/lf-env.sh + +# Version controlled by JJB_VERSION +lf-activate-venv setuptools twine wheel readline bdist="" if $BUILD_BDIST_WHEEL; then - echo "INFO: installing wheel to build binary distribution" - pip install wheel + echo "INFO: adding wheel to build binary distribution" bdist="bdist_wheel" fi echo "INFO: cd to tox-dir $TOX_DIR" 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"