From de845a4c0090410b8b4f3e6ae6efc8bcddb3b33c Mon Sep 17 00:00:00 2001 From: blag Date: Wed, 3 Mar 2021 21:14:26 -0800 Subject: [PATCH] Check st2client README.rst syntax before uploading to PyPI --- actions/pypi_upload.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/actions/pypi_upload.sh b/actions/pypi_upload.sh index 94ba00ea..547b19d2 100755 --- a/actions/pypi_upload.sh +++ b/actions/pypi_upload.sh @@ -78,6 +78,12 @@ if [ "${REPO}" != "${PROJECT}" ]; then cd ./${PROJECT} fi +echo "Checking README.rst syntax" +python3 -m venv venv-st2client-readme-checker +. venv-st2client-readme-checker/bin/activate +pip install --upgrade readme_renderer +python -m readme_renderer README.rst +deactivate echo "Currently at directory `pwd`..." sudo pip install -U twine wheel