Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,6 @@ system_tests/local_test_setup
# Make sure a generated file isn't accidentally committed.
pylintrc
pylintrc.test

# Docker files
get-docker.sh
23 changes: 23 additions & 0 deletions owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,33 @@

"""This script is used to synthesize generated parts of this library."""

import json

import synthtool as s
from synthtool import gcp
from synthtool.languages import python

# ----------------------------------------------------------------------------
# Copy the generated client from the owl-bot staging directory
# ----------------------------------------------------------------------------

# Load the default version defined in .repo-metadata.json.
default_version = json.load(open(".repo-metadata.json", "rt")).get("default_version")

for library in s.get_staging_dirs(default_version):
s.move(
[library],
excludes=[
"**/gapic_version.py",
"docs/**/*",
"scripts/fixup*.py",
"setup.py",
"noxfile.py",
"README.rst",
],
)
s.remove_staging_dirs()

common = gcp.CommonTemplates()

# ----------------------------------------------------------------------------
Expand Down