Skip to content

Commit 4503cd6

Browse files
authored
chore(python): Install packages using Assured Open Source Software (googleapis#12972)
Towards b/356855502
1 parent fe3f78f commit 4503cd6

3 files changed

Lines changed: 294 additions & 0 deletions

File tree

.kokoro/release.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,21 @@
1818
# or zero if all commands in the pipeline exit successfully.
1919
set -eo pipefail
2020

21+
python3 -m pip install --require-hashes -r github/google-cloud-python/.kokoro/requirements-aoss.txt
22+
python3 -m keyring --list-backends
23+
24+
echo "[distutils]
25+
index-servers =
26+
aoss-1p-python
27+
[aoss-1p-python]
28+
repository: https://us-python.pkg.dev/cloud-aoss-1p/cloud-aoss-1p-python/" >> $HOME/.pypirc
29+
30+
echo "[install]
31+
index-url = https://us-python.pkg.dev/cloud-aoss-1p/cloud-aoss-1p-python/simple/
32+
trusted-host = us-python.pkg.dev" >> $HOME/pip.conf
33+
34+
export PIP_CONFIG_FILE=$HOME/pip.conf
35+
2136
# Start the releasetool reporter
2237
python3 -m pip install --require-hashes -r github/google-cloud-python/.kokoro/requirements.txt
2338
python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script

.kokoro/requirements-aoss.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
keyring
2+
keyrings.google-artifactregistry-auth

0 commit comments

Comments
 (0)