Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions packages/gapic-generator/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -190,6 +191,7 @@ def fragment(session, use_ads_templates=False):
"pytest-xdist",
"pytest-asyncio",
"grpcio-tools",
PYPANDOC_BINARY_VERSION,
)
session.install("-e", ".")

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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")

Expand Down Expand Up @@ -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")
Expand Down
Loading