Skip to content

Commit 1f37ce7

Browse files
chore: remove 'pip install' statements from python_library templates [autoapprove] (#1547)
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent bc583d5 commit 1f37ce7

File tree

4 files changed

+474
-7
lines changed

4 files changed

+474
-7
lines changed

synthtool/gcp/templates/python_library/.kokoro/publish-docs.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@ export PYTHONUNBUFFERED=1
2121
export PATH="${HOME}/.local/bin:${PATH}"
2222

2323
# Install nox
24-
python3 -m pip install --user --upgrade --quiet nox
24+
python3 -m pip install --require-hashes -r .kokoro/requirements.txt
2525
python3 -m nox --version
2626

2727
# build docs
2828
nox -s docs
2929

30-
python3 -m pip install --user gcp-docuploader
31-
3230
# create metadata
3331
python3 -m docuploader create-metadata \
3432
--name=$(jq --raw-output '.name // empty' .repo-metadata.json) \

synthtool/gcp/templates/python_library/.kokoro/release.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,9 @@
1616
set -eo pipefail
1717

1818
# Start the releasetool reporter
19-
python3 -m pip install gcp-releasetool
19+
python3 -m pip install --require-hashes -r .kokoro/requirements.txt
2020
python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script
2121

22-
# Ensure that we have the latest versions of Twine, Wheel, and Setuptools.
23-
python3 -m pip install --upgrade twine wheel setuptools
24-
2522
# Disable buffering, so that the logs stream through.
2623
export PYTHONUNBUFFERED=1
2724

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
gcp-docuploader
2+
gcp-releasetool
3+
importlib-metadata
4+
typing-extensions
5+
twine
6+
wheel
7+
setuptools
8+
nox

0 commit comments

Comments
 (0)