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
17 changes: 0 additions & 17 deletions .github/.OwlBot.lock.yaml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/.OwlBot.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions .github/auto-approve.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/release-please.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .github/release-trigger.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/sync-repo-settings.yaml

This file was deleted.

17 changes: 17 additions & 0 deletions .librarian/generator-input/.repo-metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "logging",
"name_pretty": "Cloud Logging",
"product_documentation": "https://cloud.google.com/logging/docs",
"client_documentation": "https://cloud.google.com/python/docs/reference/logging/latest",
"issue_tracker": "https://issuetracker.google.com/savedsearches/559764",
"release_level": "stable",
"language": "python",
"library_type": "GAPIC_COMBO",
"repo": "googleapis/python-logging",
"distribution_name": "google-cloud-logging",
"api_id": "logging.googleapis.com",
"codeowner_team": "@googleapis/api-logging @googleapis/api-logging-partners",
"default_version": "v2",
"api_shortname": "logging",
"api_description": "allows you to store, search, analyze, monitor, and alert on log data and events from Google Cloud and Amazon Web Services. Using the BindPlane service, you can also collect this data from over 150 common application components, on-premises systems, and hybrid cloud systems. BindPlane is included with your Google Cloud project at no additional cost."
}
27 changes: 4 additions & 23 deletions owlbot.py → .librarian/generator-input/librarian.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ def place_before(path, text, *before_text, escape=None):
)

s.move([library], excludes=[
"**/gapic_version.py",
"setup.py",
"testing/constraints*.txt",
"README.rst",
"google/cloud/logging/__init__.py", # generated types are hidden from users
"google/cloud/logging_v2/__init__.py",
"docs/conf.py",
"docs/index.rst",
"docs/logging_v2", # Don't include gapic library docs. Users should use the hand-written layer instead
"docs/multiprocessing.rst",
Expand Down Expand Up @@ -104,15 +104,14 @@ def place_before(path, text, *before_text, escape=None):
s.move(templated_files,
excludes=[
"docs/index.rst",
".github/release-please.yml",
".github/**",
".kokoro/**",
".coveragerc",
"docs/multiprocessing.rst",
".github/workflows", # exclude gh actions as credentials are needed for tests
".github/auto-label.yaml",
"README.rst", # This repo has a customized README
"noxfile.py",
],
)

# adjust .trampolinerc for environment tests
s.replace(".trampolinerc", "required_envvars[^\)]*\)", "required_envvars+=()")
s.replace(
Expand Down Expand Up @@ -242,21 +241,3 @@ def place_before(path, text, *before_text, escape=None):
s.replace(sample_files, text, replacement)

s.shell.run(["nox", "-s", "blacken"], hide_output=False)
s.shell.run(["nox", "-s", "blacken"], cwd="samples/snippets", hide_output=False)

# --------------------------------------------------------------------------
# Modify test configs
# --------------------------------------------------------------------------

# add shared environment variables to test configs
tracked_subdirs = ["continuous", "presubmit", "samples"]
for subdir in tracked_subdirs:
for path, subdirs, files in os.walk(f".kokoro/{subdir}"):
for name in files:
if name == "common.cfg":
file_path = os.path.join(path, name)
s.move(
".kokoro/common_env_vars.cfg",
file_path,
merge=lambda src, dst, _,: f"{dst}\n{src}",
)
Loading
Loading