Skip to content
Merged
Show file tree
Hide file tree
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
28 changes: 16 additions & 12 deletions .librarian/state.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
image: google-cloud-python-generator:latest
image: python-librarian-generator:latest
libraries:
- apis:
- id: google-cloud-language
version: 2.17.2
last_generated_commit: 97a83d76a09a7f6dcab43675c87bdfeb5bcf1cb5
apis:
- path: google/cloud/language/v1beta2
service_config: ''
- path: google/cloud/language/v2
service_config: ''
- path: google/cloud/language/v1
service_config: ''
id: google-cloud-language
last_generated_commit: 97a83d76a09a7f6dcab43675c87bdfeb5bcf1cb5
preserve_regex: []
remove_regex: []
sourcePaths:
- packages/google-cloud-language
version: 2.17.2
source_roots:
- ^packages/google-cloud-language
preserve_regex:
- .OwlBot.yaml
- CHANGELOG.md
- docs/CHANGELOG.md
- docs/README.rst
- samples/README.txt
- tar.gz
remove_regex:
- ^packages/google-cloud-language
18 changes: 12 additions & 6 deletions scripts/configure_state_yaml/configure_state_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def configure_state_yaml() -> None:
with open(PACKAGES_TO_ONBOARD_YAML, "r") as packages_to_onboard_yaml_file:
packages_to_onboard = yaml.safe_load(packages_to_onboard_yaml_file)

state_dict["image"] = "google-cloud-python-generator:latest"
state_dict["image"] = "python-librarian-generator:latest"
state_dict["libraries"] = []
for package_name in packages_to_onboard["packages_to_onboard"]:
package_path = Path(PACKAGES_DIR / package_name).resolve()
Expand All @@ -56,7 +56,6 @@ def configure_state_yaml() -> None:
[
{
"path": gapic_metadata["protoPackage"].replace(".", "/"),
"service_config": "",
}
]
)
Expand All @@ -66,14 +65,21 @@ def configure_state_yaml() -> None:
"version": release_please_manifest[f"packages/{package_name}"],
"last_generated_commit": "97a83d76a09a7f6dcab43675c87bdfeb5bcf1cb5",
"apis": api_paths,
"sourcePaths": [f"packages/{package_name}"],
"preserve_regex": "",
"remove_regex": "",
"source_roots": [f"^packages/{package_path.name}"],
"preserve_regex": [
".OwlBot.yaml",
"CHANGELOG.md",
"docs/CHANGELOG.md",
"docs/README.rst",
"samples/README.txt",
"tar.gz",
],
"remove_regex": [f"^packages/{package_path.name}"],
}
)

with open(LIBRARIAN_YAML, "w") as f:
yaml.dump(state_dict, f)
yaml.dump(state_dict, f, sort_keys=False, indent=2)


if __name__ == "__main__":
Expand Down
Loading