From 28907dff38b6a03095338666c01dc7b55f8760fc Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Fri, 15 Nov 2019 13:06:59 +0100 Subject: [PATCH] Added support for publishing wheel files. Fixes #668 (#719) --- scripts/publish | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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