Skip to content

chore(librarian): add ability to update version files for proto-only libraries#14674

Merged
parthea merged 1 commit intomainfrom
add-support-for-proto-only
Oct 7, 2025
Merged

chore(librarian): add ability to update version files for proto-only libraries#14674
parthea merged 1 commit intomainfrom
add-support-for-proto-only

Conversation

@parthea
Copy link
Copy Markdown
Contributor

@parthea parthea commented Oct 7, 2025

This PR add ability to update the version number in version files for proto-only libraries, specifically files setup.py and pyproject.toml.

For proto-only libraries like google-cloud-audit-log, version information lives in setup.py rather than gapic_version.py.

See the version string here:

For pyproject.toml, see here:

Compared with the version string which exists in gapic_version.py here:

Note that in setup.py and pyproject.toml, the version string is version = "a.b.c" whereas in gapic_version.py the version string is __version__ = "a.b.c"

@parthea parthea requested a review from a team October 7, 2025 17:57
@parthea parthea requested a review from a team as a code owner October 7, 2025 17:57
@parthea parthea requested a review from ohmayr October 7, 2025 17:57
@parthea parthea force-pushed the add-support-for-proto-only branch from 4ffc32a to 30bc7ee Compare October 7, 2025 18:04
@parthea parthea force-pushed the add-support-for-proto-only branch from 30bc7ee to 9795097 Compare October 7, 2025 18:06
@parthea parthea merged commit 5244589 into main Oct 7, 2025
26 checks passed
@parthea parthea deleted the add-support-for-proto-only branch October 7, 2025 18:23
parthea added a commit that referenced this pull request Oct 7, 2025
…ed in proto-only library (#14675)

This is a fast-follow fix to
#14674 to address
an incorrect assumption that `Path().rglob` would be empty if no matches
were found. We need to explicitly convert the result to a list and check
the length of the results.
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