Bu Sun Kim | 65e33c0 | 2019-10-25 10:45:00 -0700 | [diff] [blame^] | 1 | #!/bin/bash |
| 2 | |
| 3 | set -eo pipefail |
| 4 | |
| 5 | # Start the releasetool reporter |
| 6 | python3 -m pip install gcp-releasetool |
| 7 | python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script |
| 8 | |
| 9 | # Ensure that we have the latest versions of Twine, Wheel, and Setuptools. |
| 10 | python3 -m pip install --upgrade twine wheel setuptools |
| 11 | |
| 12 | # Disable buffering, so that the logs stream through. |
| 13 | export PYTHONUNBUFFERED=1 |
| 14 | |
| 15 | # Move into the package, build the distribution and upload. |
| 16 | TWINE_PASSWORD=$(cat "${KOKORO_KEYSTORE_DIR}/73713_google_cloud_pypi_password") |
| 17 | cd github/google-auth-library-python |
| 18 | python3 setup.py sdist bdist_wheel |
| 19 | twine upload --username gcloudpypi --password "${TWINE_PASSWORD}" dist/* |