Skip to content

Commit

Permalink
chore: fix automatic release process for publishing vertexai package …
Browse files Browse the repository at this point in the history
…to PyPi

PiperOrigin-RevId: 660526175
  • Loading branch information
yinghsienwu authored and copybara-github committed Aug 7, 2024
1 parent b00d99c commit bd3e213
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
12 changes: 11 additions & 1 deletion .kokoro/release/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ env_vars: {
value: "github/python-aiplatform/.kokoro/release.sh"
}

# Fetch PyPI password
# Fetch google-cloud-aiplatform PyPI password
before_action {
fetch_keystore {
keystore_resource {
Expand All @@ -33,6 +33,16 @@ before_action {
}
}

# Fetch vertexai PyPI password
before_action {
fetch_keystore {
keystore_resource {
keystore_config_id: 73713
keyname: "vertexai-pypi-token-1"
}
}
}

# Tokens needed to report release status back to GitHub
env_vars: {
key: "SECRET_MANAGER_KEYS"
Expand Down
1 change: 1 addition & 0 deletions .kokoro/requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ setuptools
nox>=2022.11.21 # required to remove dependency on py
charset-normalizer<3
click<8.1.0
build
13 changes: 11 additions & 2 deletions .kokoro/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.9
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile --allow-unsafe --generate-hashes requirements.in
Expand All @@ -12,6 +12,10 @@ attrs==23.1.0 \
--hash=sha256:1f28b4522cdc2fb4256ac1a020c78acf9cba2c6b461ccd2c126f3aa8e8335d04 \
--hash=sha256:6279836d581513a26f1bf235f9acd333bc9115683f14f7e8fae46c98fc50e015
# via gcp-releasetool
build==1.2.1 \
--hash=sha256:526263f4870c26f26c433545579475377b2b7588b6f1eac76a001e873ae3e19d \
--hash=sha256:75e10f767a433d9a86e50d83f418e83efc18ede923ee5ff7df93b6cb0306c5d4
# via -r requirements.in
cachetools==5.3.2 \
--hash=sha256:086ee420196f7b2ab9ca2db2520aca326318b68fe5ba8bc4d49cca91add450f2 \
--hash=sha256:861f35a13a451f94e301ce2bec7cac63e881232ccce7ed67fab9b5df4d3beaa1
Expand Down Expand Up @@ -373,6 +377,7 @@ packaging==23.2 \
--hash=sha256:048fb0e9405036518eaaf48a55953c750c11e1a1b68e0dd1a9d62ed0c092cfc5 \
--hash=sha256:8c491190033a9af7e1d931d0b5dacc2ef47509b34dd0de67ed209b5203fc88c7
# via
# build
# gcp-releasetool
# nox
pkginfo==1.9.6 \
Expand Down Expand Up @@ -438,6 +443,10 @@ pyjwt==2.8.0 \
pyperclip==1.8.2 \
--hash=sha256:105254a8b04934f0bc84e9c24eb360a591aaf6535c9def5f29d92af107a9bf57
# via gcp-releasetool
pyproject-hooks==1.0.0 \
--hash=sha256:283c11acd6b928d2f6a7c73fa0d01cb2bdc5f07c57a2eeb6e83d5e56b97976f8 \
--hash=sha256:f271b298b97f5955d53fb12b72c1fb1948c22c1a6b70b315c54cedaca0264ef5
# via build
python-dateutil==2.8.2 \
--hash=sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86 \
--hash=sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9
Expand Down Expand Up @@ -512,4 +521,4 @@ zipp==3.17.0 \
setuptools==68.2.2 \
--hash=sha256:4ac1475276d2f1c48684874089fefcd83bd7162ddaafb81fac866ba0db282a87 \
--hash=sha256:b454a35605876da60632df1a60f736524eb73cc47bbc9f3f1ef1b644de74fd2a
# via -r requirements.in
# via -r requirements.in
2 changes: 2 additions & 0 deletions owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@
".kokoro/presubmit/prerelease-deps.cfg",
".kokoro/docs/docs-presubmit.cfg",
".kokoro/release.sh",
".kokoro/release/common.cfg",
".kokoro/requirements*",
# exclude sample configs so periodic samples are tested against main
# instead of pypi
".kokoro/samples/python3.7/common.cfg",
Expand Down

0 comments on commit bd3e213

Please sign in to comment.