build.sh 615 B

123456789101112
  1. #!/usr/bin/env bash
  2. # set up bash to handle errors more aggressively - a "strict mode" of sorts
  3. set -e # give an error if any command finishes with a non-zero exit code
  4. set -u # give an error if we reference unset variables
  5. set -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
  6. echo "if the following doesn't work, make sure you have your account set up properly with 'python3 setup.py register'"
  7. # make sure we use GnuPG 2 rather than GnuPG 1
  8. sudo ln "$(which gpg2)" dist/gpg
  9. PATH=./dist:$PATH python3 setup.py sdist upload --sign