Skip to content

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

Merged
parthea merged 12 commits intomainfrom
polish-post-processing
Aug 12, 2025
Merged

chore: polish post processing step used for librarian client library generation#14206
parthea merged 12 commits intomainfrom
polish-post-processing

Conversation

@parthea
Copy link
Copy Markdown
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 August 8, 2025 16:33
@parthea parthea force-pushed the polish-post-processing branch from 450f66c to 4a6f41f Compare August 12, 2025 18:54
Comment thread .generator/cli.py Outdated

try:
import synthtool
from synthtool import gcp
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we remove this line if it's not needed?

Comment thread .generator/cli.py
ohmayr
ohmayr previously approved these changes Aug 12, 2025
@parthea parthea merged commit ebede14 into main Aug 12, 2025
23 checks passed
@parthea parthea deleted the polish-post-processing branch August 12, 2025 23:53
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.

2 participants