Skip to content

fix(deps): add dependency for google-backstory - #19022

Merged
parthea merged 1 commit into
mainfrom
add-dependency-backstory
Nov 10, 2026
Merged

parthea merged 1 commit into
mainfrom
add-dependency-backstory

Conversation

@parthea

@parthea parthea commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Towards #18890

https://pypi.org/project/google-backstory/0.1.0/#history

This change is needed so that the generated setup.py for the library google/cloud/chronicle/v1 pulls the cross api dependency google-backstory from PyPI.

See the code here which uses _pypi_packages.j2

See the cross API dependencies in the BUILD file upstream

py_import(
    name = "backstory",
    srcs = [
        "//backstory:backstory_py_gapic",
    ],
)

py_gapic_library(
    name = "chronicle_py_gapic",
    srcs = [":chronicle_proto"],
    grpc_service_config = "chronicle_v1_grpc_service_config.json",
    opt_args = ["proto-plus-deps=google.backstory"],
    rest_numeric_enums = True,
    service_yaml = "chronicle_v1.yaml",
    transport = "grpc+rest",
    deps = [
        ":backstory",
    ],
)

@parthea
parthea marked this pull request as ready for review November 9, 2026 15:47
@parthea
parthea requested a review from a team as a code owner November 9, 2026 15:47

@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 google-backstory PyPI package to the list of allowed packages in the GAPIC generator templates. There are no review comments, and I have no feedback to provide.

@parthea
parthea merged commit 833e1dc into main Nov 10, 2026
126 checks passed
@parthea
parthea deleted the add-dependency-backstory branch November 10, 2026 14:09
ohmayr added a commit that referenced this pull request Dec 3, 2026
…19322)

## 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
- Add ("google", "cloud", "agentregistry", "v1") mapped to
google-cloud-agentregistry (>= 0.1.2, < 1.0.0) in
packages/gapic-generator/gapic/templates/_pypi_packages.j2, matching
#18826 and #19022.

## 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.
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