Skip to content

Commit b0810db

Browse files
committed
Update release.bash to use api token from .pypirc instead
1 parent 2910613 commit b0810db

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

release.bash

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#!/bin/bash
2-
# =========================================
2+
# ================================================================================
33
# Convenience script for cutting releases:
44
# * Commit, tag, and push version change
55
# * Deploy to PyPi
6-
# =========================================
6+
#
7+
# Need to set PyPi API token in .pypirc. See:
8+
# https://packaging.python.org/en/latest/specifications/pypirc/#using-a-pypi-token
9+
# ================================================================================
710
if [[ $# -eq 0 ]] ; then
811
echo 'Usage: ./release.bash <version> (e.g. 0.2.0)'
912
exit 1
@@ -24,14 +27,9 @@ set +x
2427
rm -rf dist/
2528
python setup.py sdist
2629

27-
# https://github.com/plyint/encpass.sh
28-
. encpass.sh
29-
30-
export TWINE_PASSWORD=$(get_secret pypi password)
31-
3230
# exit when any command fails
3331
set -e
3432

3533
# print commands before executing
3634
set -x
37-
twine upload --username gbroques dist/*
35+
twine upload --verbose dist/*

0 commit comments

Comments
 (0)