Skip to content

Commit 2a7074c

Browse files
chore: remove 'pip install' statements from python_library templates (#563)
* chore(python): exclude `grpcio==1.49.0rc1` in tests Source-Link: googleapis/synthtool@c4dd595 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:ce3c1686bc81145c81dd269bd12c4025c6b275b22d14641358827334fddb1d72 * exclude grpc 1.49.0rc1 in tests * use latest post processor image * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent 388196a commit 2a7074c

File tree

8 files changed

+486
-14
lines changed

8 files changed

+486
-14
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16-
digest: sha256:c6c965a4bf40c19011b11f87dbc801a66d3a23fbc6704102be064ef31c51f1c3
17-
# created: 2022-08-09T15:58:56.463048506Z
16+
digest: sha256:1f0dbd02745fb7cf255563dab5968345989308544e52b7f460deadd5e78e63b0
17+
# created: 2022-08-29T17:28:30.441852797Z

.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) \

.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 github/python-bigquery-pandas/.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

.kokoro/requirements.in

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

.kokoro/requirements.txt

Lines changed: 464 additions & 0 deletions
Large diffs are not rendered by default.

noxfile.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@ def unit(session):
196196
def install_systemtest_dependencies(session, *constraints):
197197

198198
# Use pre-release gRPC for system tests.
199-
session.install("--pre", "grpcio")
199+
# Exclude version 1.49.0rc1 which has a known issue.
200+
# See https://github.com/grpc/grpc/pull/30642
201+
session.install("--pre", "grpcio!=1.49.0rc1")
200202

201203
session.install(*SYSTEM_TEST_STANDARD_DEPENDENCIES, *constraints)
202204

@@ -292,7 +294,8 @@ def prerelease(session):
292294
"google-cloud-bigquery-storage",
293295
"google-cloud-core",
294296
"google-resumable-media",
295-
"grpcio",
297+
# Exclude version 1.49.0rc1 which has a known issue. See https://github.com/grpc/grpc/pull/30642
298+
"grpcio!=1.49.0rc1",
296299
)
297300
session.install(
298301
"freezegun",
@@ -459,7 +462,8 @@ def prerelease_deps(session):
459462
# dependency of grpc
460463
"six",
461464
"googleapis-common-protos",
462-
"grpcio",
465+
# Exclude version 1.49.0rc1 which has a known issue. See https://github.com/grpc/grpc/pull/30642
466+
"grpcio!=1.49.0rc1",
463467
"grpcio-status",
464468
"google-api-core",
465469
"proto-plus",

owlbot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ def prerelease(session):
113113
"google-cloud-bigquery-storage",
114114
"google-cloud-core",
115115
"google-resumable-media",
116-
"grpcio",
116+
# Exclude version 1.49.0rc1 which has a known issue. See https://github.com/grpc/grpc/pull/30642
117+
"grpcio!=1.49.0rc1",
117118
)
118119
session.install(
119120
"freezegun",

renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
":preserveSemverRanges",
66
":disableDependencyDashboard"
77
],
8-
"ignorePaths": [".pre-commit-config.yaml"],
8+
"ignorePaths": [".pre-commit-config.yaml", ".kokoro/requirements.txt"],
99
"pip_requirements": {
1010
"fileMatch": ["requirements-test.txt", "samples/[\\S/]*constraints.txt", "samples/[\\S/]*constraints-test.txt"]
1111
}

0 commit comments

Comments
 (0)