1#!/usr/bin/env bash 2 3# set up bash to handle errors more aggressively - a "strict mode" of sorts 4set -e # give an error if any command finishes with a non-zero exit code 5set -u # give an error if we reference unset variables 6set -o pipefail # for a pipeline, if any of the commands fail with a non-zero exit code, fail the entire pipeline with that exit code 7 8echo "if the following doesn't work, make sure you have your account set up properly with 'python3 setup.py register'" 9 10# make sure we use GnuPG 2 rather than GnuPG 1 11sudo ln --force "$(which gpg2)" dist/gpg 12PATH=./dist:$PATH python3 setup.py bdist_wheel upload --sign 13