Skip to content

Commit fc32e47

Browse files
authored
tests: use older google-api-core when running tools with older runtimes (#2474)
1 parent 5ed689d commit fc32e47

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/gapic-generator/noxfile.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,13 @@ def fragment(session, use_ads_templates=False):
175175
)
176176
session.install("-e", ".")
177177

178+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2473):
179+
# Warnings emitted from google-api-core starting in 2.28
180+
# appear to cause issues when running protoc.
181+
# The specific failure is `Plugin output is unparseable`
182+
if session.python in ("3.7", "3.8", "3.9", "3.10"):
183+
session.install("google-api-core<2.28")
184+
178185
frag_files = (
179186
[Path(f) for f in session.posargs] if session.posargs else FRAGMENT_FILES
180187
)
@@ -238,6 +245,13 @@ def showcase_library(
238245
# Install grpcio-tools for protoc
239246
session.install("grpcio-tools")
240247

248+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2473):
249+
# Warnings emitted from google-api-core starting in 2.28
250+
# appear to cause issues when running protoc.
251+
# The specific failure is `Plugin output is unparseable`
252+
if session.python in ("3.7", "3.8", "3.9", "3.10"):
253+
session.install("google-api-core<2.28")
254+
241255
# Install a client library for Showcase.
242256
with tempfile.TemporaryDirectory() as tmp_dir:
243257
# Download the Showcase descriptor.

0 commit comments

Comments
 (0)