Skip to content

fix(gapic-generator): add google-cloud-agentregistry PyPI dependency - #19322

Merged
ohmayr merged 1 commit into
mainfrom
fix/gapic-generator-agentregistry-pypi-dep
Dec 3, 2026
Merged

ohmayr merged 1 commit into
mainfrom
fix/gapic-generator-agentregistry-pypi-dep

Conversation

@ohmayr

@ohmayr ohmayr commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Context & Problem

Libraries that import google.cloud.agentregistry.v1 proto types (such as google-cloud-agentregistryendpoint in #19314) are missing google-cloud-agentregistry in generated setup.py and testing constraint files because _pypi_packages.j2 does not map this API yet.

Summary of Changes

Why This Approach

Declaring cross-API PyPI packages in _pypi_packages.j2 lets setup.py.j2 and the testing constraint templates emit the dependency automatically during regeneration instead of maintaining per-package post-processing overrides.

Intentionally Out of Scope

  • Bumping the pinned gapic-generator commit SHA in librarian.yaml or regenerating google-cloud-agentregistryendpoint (handled separately after merge).
  • Adding a temporary post-processing override in .librarian/generator-input/client-post-processing/add-missing-dependencies-to-setup-py-constraints.yaml.

Verification

nox -s lint mypy-3.14 unit-3.14 passed in packages/gapic-generator.

Libraries that import google.cloud.agentregistry.v1 proto types (such as google-cloud-agentregistryendpoint in #19314) are missing google-cloud-agentregistry in generated setup.py and testing constraint files because _pypi_packages.j2 does not map this API yet.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds the PyPI package mapping for google-cloud-agentregistry (v1) to the list of allowed PyPI packages in _pypi_packages.j2. I have no feedback to provide.

@ohmayr
ohmayr marked this pull request as ready for review December 3, 2026 01:20
@ohmayr
ohmayr requested a review from a team as a code owner December 3, 2026 01:20
@ohmayr
ohmayr merged commit 30706bd into main Dec 3, 2026
154 checks passed
@ohmayr
ohmayr deleted the fix/gapic-generator-agentregistry-pypi-dep branch December 3, 2026 01:27
@release-please release-please Bot mentioned this pull request Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants