Skip to content

Commit

Permalink
chore(python): Install packages using Assured Open Source Software
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Aug 1, 2024
1 parent bbc97a9 commit 06b1ee9
Show file tree
Hide file tree
Showing 3 changed files with 297 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .kokoro/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@
# or zero if all commands in the pipeline exit successfully.
set -eo pipefail

python3 -m pip install --require-hashes -r github/google-cloud-python/.kokoro/requirements-aoss.txt
python3 -m keyring --list-backends

echo "[distutils]
index-servers =
aoss-1p-python
[aoss-1p-python]
repository: https://us-python.pkg.dev/cloud-aoss-1p/cloud-aoss-1p-python/" >> $HOME/.pypirc

echo "[install]
index-url = https://us-python.pkg.dev/cloud-aoss-1p/cloud-aoss-1p-python/simple/
trusted-host = us-python.pkg.dev" >> $HOME/pip.conf

export PIP_CONFIG_FILE=$HOME/pip.conf

# Start the releasetool reporter
python3 -m pip install --require-hashes -r github/google-cloud-python/.kokoro/requirements.txt
python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script
Expand Down
2 changes: 2 additions & 0 deletions .kokoro/requirements-aoss.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
keyring
keyrings.google-artifactregistry-auth
Loading

0 comments on commit 06b1ee9

Please sign in to comment.