Added support for publishing wheel files. Fixes #668 (#719)

This commit is contained in:
Florian Apolloner 2019-11-15 13:06:59 +01:00 committed by Tom Christie
parent 6ddd0523b0
commit 28907dff38
1 changed files with 7 additions and 1 deletions

View File

@ -14,10 +14,16 @@ if ! command -v "${PREFIX}twine" &>/dev/null ; then
exit 1 exit 1
fi 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 f -name "*.py[co]" -delete
find starlette -type d -name __pycache__ -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}twine upload dist/*
${PREFIX}mkdocs gh-deploy ${PREFIX}mkdocs gh-deploy