Skip to content

chore(librarian): add tools section to librarian.yaml#17892

Merged
hj690 merged 2 commits into
googleapis:mainfrom
hj690:add-tools-section
Jul 24, 2026
Merged

chore(librarian): add tools section to librarian.yaml#17892
hj690 merged 2 commits into
googleapis:mainfrom
hj690:add-tools-section

Conversation

@hj690

@hj690 hj690 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Move Python tool installation list to librarian.yaml.

Note: this section is not consumed by Librarian yet, a follow up change to Librarian will be made to consume this setting.

For #6508

@hj690
hj690 requested a review from a team as a code owner July 24, 2026 14:51

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request adds a tools section to librarian.yaml to specify pip dependencies and their versions, including gapic-generator, nox, ruff, isort, black, and synthtool. However, there are typos in the version numbers for nox (2025.11.12) and ruff (0.14.14) which do not exist on PyPI and will cause installation failures. These should be corrected to 2023.11.12 and 0.1.14 respectively.

Comment thread librarian.yaml Outdated
Comment thread librarian.yaml Outdated
@hj690
hj690 marked this pull request as draft July 24, 2026 14:52
@hj690
hj690 force-pushed the add-tools-section branch from 6c7dc43 to efe147d Compare July 24, 2026 15:03
@hj690 hj690 changed the title chore: add tools section to librarian.yaml chore(librarian): add tools section to librarian.yaml Jul 24, 2026
@hj690
hj690 marked this pull request as ready for review July 24, 2026 15:15
@hj690
hj690 requested a review from JoeWang1127 July 24, 2026 15:15
Comment thread librarian.yaml
googleapis:
commit: fe04226e3d76435acbfd3ffb51f6771740e1fb5b
sha256: e99c641a9c5525394de43c762b9db50c3ada1f219d6dbdba594ae992fbe1d838
tools:

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.

Should we include protoc and pandoc here as well?

https://github.com/googleapis/librarian/blob/baf9b8078c5e98cb90b53088f284fb7b060e195b/cmd/librarian/Dockerfile#L48-L52

Can we start using these tools right away? If not, please could you clarify which version of librarian will start using the tools here?

version: v0.30.0

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Should we include protoc and pandoc here as well?

That's a good question, I'll defer to @JoeWang1127 on this as I'm not sure if non-pip tools are already supported in tools section here.

Can we start using these tools right away? If not, please could you clarify which version of librarian will start using the tools here?

Not yet, the corresponding change in Librarian has landed but not released yet, the target version is v0.31.0, once released, I'll also send a message to your team channel to keep you informed.

@hj690 hj690 Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Just chatted with @JoeWang1127 offline, there's additional change needed to support protoc or pandoc, so we thought it's better to focus on pip in this PR for now.

@parthea

parthea commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Please could you resolve the conflict?

@parthea

parthea commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Moving to draft since there is a file conflict. Please mark it as ready for review once it's fixed

@parthea
parthea marked this pull request as draft July 24, 2026 15:47
@hj690
hj690 force-pushed the add-tools-section branch from 723db40 to fb3e7c7 Compare July 24, 2026 18:04
@hj690

hj690 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

Please could you resolve the conflict?

Sorry, GH was giving me a hard time this morning 😢 Now it seems back to normal and I just resolved the conflict.

@hj690
hj690 requested a review from parthea July 24, 2026 18:12
@hj690
hj690 marked this pull request as ready for review July 24, 2026 18:12
@hj690
hj690 merged commit 223c8c1 into googleapis:main Jul 24, 2026
39 checks passed
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