diff --git a/packages/gapic-generator/noxfile.py b/packages/gapic-generator/noxfile.py index 6f7d127f0656..0e0809c85825 100644 --- a/packages/gapic-generator/noxfile.py +++ b/packages/gapic-generator/noxfile.py @@ -48,6 +48,7 @@ str(CURRENT_DIRECTORY.parent.parent / "mypy.ini"), ) +PYPANDOC_BINARY_VERSION = "pypandoc-binary==1.16.2" RUFF_VERSION = "ruff==0.14.14" LINT_PATHS = ["docs", "gapic", "tests", "test_utils", "noxfile.py", "setup.py"] # Ruff uses globs for excludes (different from Black's regex) @@ -190,6 +191,7 @@ def fragment(session, use_ads_templates=False): "pytest-xdist", "pytest-asyncio", "grpcio-tools", + PYPANDOC_BINARY_VERSION, ) session.install("-e", ".") @@ -276,8 +278,8 @@ def showcase_library( # Install gapic-generator-python session.install("-e", ".") - # Install grpcio-tools for protoc - session.install("grpcio-tools") + # Install grpcio-tools for protoc and pypandoc-binary for bundled pandoc + session.install("grpcio-tools", PYPANDOC_BINARY_VERSION) # TODO(https://github.com/googleapis/gapic-generator-python/issues/2473): # Warnings emitted from google-api-core starting in 2.28 @@ -789,7 +791,12 @@ def snippetgen(session): # Install gapic-generator-python session.install("-e", ".") - session.install("grpcio-tools", "pytest", "pytest-asyncio") + session.install( + "grpcio-tools", + "pytest", + "pytest-asyncio", + PYPANDOC_BINARY_VERSION, + ) session.run("py.test", "-vv", "tests/snippetgen") @@ -1007,7 +1014,7 @@ def format(session): def google_ads_library(session): """Generate and install the Google Ads GAPIC library for live system tests.""" session.install("-e", ".") - session.install("grpcio-tools", "pyYAML", "pypandoc-binary==1.16.2") + session.install("grpcio-tools", "pyYAML", PYPANDOC_BINARY_VERSION) with tempfile.TemporaryDirectory() as tmp_dir: googleapis_dir = path.join(tmp_dir, "googleapis")