Skip to content

chore: polish post processing step used for librarian client library generation #14206

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

parthea
Copy link
Contributor

@parthea parthea commented Aug 8, 2025

This PR adds 2 new functions _copy_files_needed_for_post_processing and _clean_up_files_after_post_processing.

_copy_files_needed_for_post_processing - This function is used to copy files from the input directory . Specifically, .repo-metadata.json and scripts/client-post-processing are needed as part of client library generation.

_clean_up_files_after_post_processing - This function removes files which should not be part of the generated code because it would create an unnecessary diff. The files omitted are:

  • CHANGELOG.md
  • docs/CHANGELOG.md
  • docs/README.rst
  • scripts/client-post-processing/*.yaml
  • **/gapic_version.py
  • samples/generated_samples/snippet_metadata*.json

@parthea parthea requested a review from a team as a code owner August 8, 2025 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant