Lean more on poetry in the release script

This commit is contained in:
Kevin Tindall
2022-01-02 21:53:21 -06:00
parent c67dde8ed0
commit aa43f01a6c

View File

@@ -1,9 +1,14 @@
#!/usr/bin/env bash
set -euo pipefail
tox --recreate
poetry install
poetry run tox --recreate
rm -rf dist/
poetry build
# TODO: automate releases on tag builds of travis
echo "Set these environment variables if you wish to not be pestered:"
echo "export POETRY_PYPI_TOKEN_PYPI=my-token"
echo "export POETRY_HTTP_BASIC_PYPI_USERNAME=username"
echo "export POETRY_HTTP_BASIC_PYPI_PASSWORD=password"
poetry publish --no-interaction