From 483dcb5df005f9c485daaa38851c3167c18b7e5a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot <yoshi-automation@google.com> Date: Tue, 4 May 2021 13:16:25 -0700 Subject: [PATCH] chore: Re-generated to pick up changes from synthtool (#21) * docs(python): add empty lines between methods Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Wed Apr 14 14:41:09 2021 -0600 Source-Repo: googleapis/synthtool Source-Sha: 721339ab60a6eb63b889978b3d9b295dcb3be370 Source-Link: https://github.com/googleapis/synthtool/commit/721339ab60a6eb63b889978b3d9b295dcb3be370 * build: use PyPI API token in secret manager Migrate python libraries onto the PyPI API token stored in secret manager. A PyPI API token is limited in scope to uploading new releases. https://pypi.org/help/#apitoken Verified that this works with [build](https://fusion2.corp.google.com/invocations/14bae126-83fa-4328-8da9-d390ed99315c/targets/cloud-devrel%2Fclient-libraries%2Fpython%2Fgoogleapis%2Fpython-vision%2Frelease%2Frelease;config=default/log) on https://github.com/googleapis/python-vision/pull/136 Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Wed Apr 14 17:46:06 2021 -0600 Source-Repo: googleapis/synthtool Source-Sha: 043cc620d6a6111816d9e09f2a97208565fde958 Source-Link: https://github.com/googleapis/synthtool/commit/043cc620d6a6111816d9e09f2a97208565fde958 Co-authored-by: Olivier Bourgeois <3271352+bourgeoisor@users.noreply.github.com> Co-authored-by: kelsk <38271546+kelsk@users.noreply.github.com> --- .../.kokoro/release.sh | 4 ++-- .../.kokoro/release/common.cfg | 14 ++------------ .../docs/_static/custom.css | 13 ++++++++++++- .../synth.metadata | 6 +++--- 4 files changed, 19 insertions(+), 18 deletions(-) diff --git a/packages/google-cloud-binary-authorization/.kokoro/release.sh b/packages/google-cloud-binary-authorization/.kokoro/release.sh index 6ecb350c49a5..90a4f4d5b44b 100755 --- a/packages/google-cloud-binary-authorization/.kokoro/release.sh +++ b/packages/google-cloud-binary-authorization/.kokoro/release.sh @@ -26,7 +26,7 @@ python3 -m pip install --upgrade twine wheel setuptools export PYTHONUNBUFFERED=1 # Move into the package, build the distribution and upload. -TWINE_PASSWORD=$(cat "${KOKORO_KEYSTORE_DIR}/73713_google_cloud_pypi_password") +TWINE_PASSWORD=$(cat "${KOKORO_GFILE_DIR}/secret_manager/google-cloud-pypi-token") cd github/python-binary-authorization python3 setup.py sdist bdist_wheel -twine upload --username gcloudpypi --password "${TWINE_PASSWORD}" dist/* +twine upload --username __token__ --password "${TWINE_PASSWORD}" dist/* diff --git a/packages/google-cloud-binary-authorization/.kokoro/release/common.cfg b/packages/google-cloud-binary-authorization/.kokoro/release/common.cfg index e2d553fe7a1b..14dad59d7e94 100644 --- a/packages/google-cloud-binary-authorization/.kokoro/release/common.cfg +++ b/packages/google-cloud-binary-authorization/.kokoro/release/common.cfg @@ -23,18 +23,8 @@ env_vars: { value: "github/python-binary-authorization/.kokoro/release.sh" } -# Fetch PyPI password -before_action { - fetch_keystore { - keystore_resource { - keystore_config_id: 73713 - keyname: "google_cloud_pypi_password" - } - } -} - # Tokens needed to report release status back to GitHub env_vars: { key: "SECRET_MANAGER_KEYS" - value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem" -} \ No newline at end of file + value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem,google-cloud-pypi-token" +} diff --git a/packages/google-cloud-binary-authorization/docs/_static/custom.css b/packages/google-cloud-binary-authorization/docs/_static/custom.css index bcd37bbd3c4a..b0a295464b23 100644 --- a/packages/google-cloud-binary-authorization/docs/_static/custom.css +++ b/packages/google-cloud-binary-authorization/docs/_static/custom.css @@ -1,9 +1,20 @@ div#python2-eol { border-color: red; border-width: medium; -} +} /* Ensure minimum width for 'Parameters' / 'Returns' column */ dl.field-list > dt { min-width: 100px } + +/* Insert space between methods for readability */ +dl.method { + padding-top: 10px; + padding-bottom: 10px +} + +/* Insert empty space between classes */ +dl.class { + padding-bottom: 50px +} diff --git a/packages/google-cloud-binary-authorization/synth.metadata b/packages/google-cloud-binary-authorization/synth.metadata index 5a6928105090..8b6fd9e4aaa0 100644 --- a/packages/google-cloud-binary-authorization/synth.metadata +++ b/packages/google-cloud-binary-authorization/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/python-binary-authorization.git", - "sha": "37f274468cf8cf05b50636a040bb0e6c650b8824" + "sha": "f75feb9cd393cadb297fbbea9c7e3f71f51113f3" } }, { @@ -19,14 +19,14 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "0a071b3460344886297a304253bf924aa68ddb7e" + "sha": "043cc620d6a6111816d9e09f2a97208565fde958" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "0a071b3460344886297a304253bf924aa68ddb7e" + "sha": "043cc620d6a6111816d9e09f2a97208565fde958" } } ],