use API token to upload to PyPi

User/password auth is deprecated for Twine.
This commit is contained in:
Soren I. Bjornstad 2022-08-19 17:32:38 -05:00
parent a1c946db9e
commit 96f149feaa
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ venv/
cli_docs/_build/
dist/
build/
.pypi_token

View File

@ -6,4 +6,4 @@ rm -rf build/
rm -f dist/*
mkdir -p dist
python setup.py sdist bdist_wheel
twine upload dist/*
TWINE_PASSWORD=$(cat .pypi_token) twine upload --username '__token__' dist/*