tzk/publish.sh
Soren I. Bjornstad 96f149feaa use API token to upload to PyPi
User/password auth is deprecated for Twine.
2022-08-19 17:32:38 -05:00

10 lines
192 B
Bash
Executable File

#!/bin/bash
set -e
. venv/bin/activate
rm -rf build/
rm -f dist/*
mkdir -p dist
python setup.py sdist bdist_wheel
TWINE_PASSWORD=$(cat .pypi_token) twine upload --username '__token__' dist/*