Skip to content

Commit 36fb427

Browse files
authored
chore(librarian): onboard to librarian (#1061)
Towards googleapis/librarian#2459
1 parent eb189bf commit 36fb427

File tree

19 files changed

+662
-147
lines changed

19 files changed

+662
-147
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/.OwlBot.yaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/auto-approve.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/release-please.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/release-trigger.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/sync-repo-settings.yaml

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"name": "logging",
3+
"name_pretty": "Cloud Logging",
4+
"product_documentation": "https://cloud.google.com/logging/docs",
5+
"client_documentation": "https://cloud.google.com/python/docs/reference/logging/latest",
6+
"issue_tracker": "https://issuetracker.google.com/savedsearches/559764",
7+
"release_level": "stable",
8+
"language": "python",
9+
"library_type": "GAPIC_COMBO",
10+
"repo": "googleapis/python-logging",
11+
"distribution_name": "google-cloud-logging",
12+
"api_id": "logging.googleapis.com",
13+
"codeowner_team": "@googleapis/api-logging @googleapis/api-logging-partners",
14+
"default_version": "v2",
15+
"api_shortname": "logging",
16+
"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."
17+
}

owlbot.py renamed to .librarian/generator-input/librarian.py

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@ def place_before(path, text, *before_text, escape=None):
6565
)
6666

6767
s.move([library], excludes=[
68-
"**/gapic_version.py",
6968
"setup.py",
7069
"testing/constraints*.txt",
7170
"README.rst",
7271
"google/cloud/logging/__init__.py", # generated types are hidden from users
7372
"google/cloud/logging_v2/__init__.py",
73+
"docs/conf.py",
7474
"docs/index.rst",
7575
"docs/logging_v2", # Don't include gapic library docs. Users should use the hand-written layer instead
7676
"docs/multiprocessing.rst",
@@ -104,15 +104,14 @@ def place_before(path, text, *before_text, escape=None):
104104
s.move(templated_files,
105105
excludes=[
106106
"docs/index.rst",
107-
".github/release-please.yml",
107+
".github/**",
108+
".kokoro/**",
108109
".coveragerc",
109110
"docs/multiprocessing.rst",
110-
".github/workflows", # exclude gh actions as credentials are needed for tests
111-
".github/auto-label.yaml",
112111
"README.rst", # This repo has a customized README
113-
"noxfile.py",
114112
],
115113
)
114+
116115
# adjust .trampolinerc for environment tests
117116
s.replace(".trampolinerc", "required_envvars[^\)]*\)", "required_envvars+=()")
118117
s.replace(
@@ -242,21 +241,3 @@ def place_before(path, text, *before_text, escape=None):
242241
s.replace(sample_files, text, replacement)
243242

244243
s.shell.run(["nox", "-s", "blacken"], hide_output=False)
245-
s.shell.run(["nox", "-s", "blacken"], cwd="samples/snippets", hide_output=False)
246-
247-
# --------------------------------------------------------------------------
248-
# Modify test configs
249-
# --------------------------------------------------------------------------
250-
251-
# add shared environment variables to test configs
252-
tracked_subdirs = ["continuous", "presubmit", "samples"]
253-
for subdir in tracked_subdirs:
254-
for path, subdirs, files in os.walk(f".kokoro/{subdir}"):
255-
for name in files:
256-
if name == "common.cfg":
257-
file_path = os.path.join(path, name)
258-
s.move(
259-
".kokoro/common_env_vars.cfg",
260-
file_path,
261-
merge=lambda src, dst, _,: f"{dst}\n{src}",
262-
)

0 commit comments

Comments
 (0)