From 96f149feaa445abc7ad5ae51a522e50ddc38956c Mon Sep 17 00:00:00 2001 From: "Soren I. Bjornstad" Date: Fri, 19 Aug 2022 17:32:38 -0500 Subject: [PATCH] use API token to upload to PyPi User/password auth is deprecated for Twine. --- .gitignore | 1 + publish.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 8def540..ec78566 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ venv/ cli_docs/_build/ dist/ build/ +.pypi_token \ No newline at end of file diff --git a/publish.sh b/publish.sh index 876e34b..7235879 100755 --- a/publish.sh +++ b/publish.sh @@ -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/*