Extend pypi-dist-build.sh to call twine check, which tests
if the distribution's long description will render correctly.
Change-Id: I2229266f17bc4d1272219466f8fbf2e2614ca21f
Issue-Id: RELENG-2317
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
--- /dev/null
+---
+features:
+ - |
+ Extend PyPI builder shell script to call twine check, which tests
+ if the distribution's long description will render correctly.
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"
echo "INFO: creating distributions"
python3 setup.py sdist $bdist
+echo "INFO: checking distributions"
+twine check dist/*
+
echo "---> pypi-dist-build.sh ends"