Skip to content

Commit c144834

Browse files
authored
chore(librarian): remove support for owlbot.py; prefer librarian.py (#14896)
This PR addresses the following section from https://github.com/googleapis/librarian/blob/main/doc/repository-library-onboarding.md#library-setup ``` There is no requirement to stop using library-specific post-processing files as part of this migration. However, any post processing should be included in a file named "librarian.", where corresponds to the script's file extension (e.g., "sh", "py"). While migrating, please also consider opening an issue in your generator repository for any improvements that could reduce your library's post-processing logic. ``` We will need to rename `owlbot.py` to `librarian.py` downstream in the split repositories
1 parent 55369cf commit c144834

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.generator/cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -331,10 +331,10 @@ def _run_post_processor(output: str, library_id: str, is_mono_repo: bool):
331331
if is_mono_repo:
332332
python_mono_repo.owlbot_main(path_to_library)
333333
else:
334-
# Some repositories have customizations in `owlbot.py`. If this file exists,
335-
# run those customizations instead of `owlbot_main`
336-
if Path(f"{output}/owlbot.py").exists():
337-
subprocess.run(["python3.14", f"{output}/owlbot.py"])
334+
# Some repositories have customizations in `librarian.py`.
335+
# If this file exists, run those customizations instead of `owlbot_main`
336+
if Path(f"{output}/librarian.py").exists():
337+
subprocess.run(["python3.14", f"{output}/librarian.py"])
338338
else:
339339
python.owlbot_main()
340340
else:

0 commit comments

Comments
 (0)