diff --git a/scripts/publish b/scripts/publish index 838260d5..178a6a32 100755 --- a/scripts/publish +++ b/scripts/publish @@ -14,10 +14,16 @@ if ! command -v "${PREFIX}twine" &>/dev/null ; then exit 1 fi +if ! command -v "${PREFIX}wheel" &>/dev/null ; then + echo "Unable to find the 'wheel' command." + echo "Install from PyPI, using '${PREFIX}pip install wheel'." + exit 1 +fi + find starlette -type f -name "*.py[co]" -delete find starlette -type d -name __pycache__ -delete -${PREFIX}python setup.py sdist +${PREFIX}python setup.py sdist bdist_wheel ${PREFIX}twine upload dist/* ${PREFIX}mkdocs gh-deploy