Extend PyPI script to call twine check 59/62059/2
authorLott, Christopher (cl778h) <cl778h@att.com>
Mon, 21 Oct 2019 19:52:46 +0000 (15:52 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Mon, 21 Oct 2019 19:55:27 +0000 (15:55 -0400)
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>
releasenotes/notes/add-pypi-twine-check-833955d749779d57.yaml [new file with mode: 0644]
shell/pypi-dist-build.sh

diff --git a/releasenotes/notes/add-pypi-twine-check-833955d749779d57.yaml b/releasenotes/notes/add-pypi-twine-check-833955d749779d57.yaml
new file mode 100644 (file)
index 0000000..8f72675
--- /dev/null
@@ -0,0 +1,5 @@
+---
+features:
+  - |
+    Extend PyPI builder shell script to call twine check, which tests
+    if the distribution's long description will render correctly.
index 8baeac1..27b4b3d 100644 (file)
@@ -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"