danielgtaylor / danielgtaylor/python-betterproto
Update buf plugin with latest v2 beta
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 1.8k
- フォーク
- 234
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Summary
Buf uses 1.2.5 of betterproto package, which cannot process optional keywords
What is the feature request for?
The core library
The Problem
In our company we have a standard to use buf to generate bindings to proto files.
And we wanted to use betterproto plugin to generate idiomatic python code.
Unfortunately, the only version of the plugin (v1.2.5) doesn't support some "newer" protobuf features, like "optional" keyword.
This was fixed in v.2.0.0b4, but this release is not available in buf.
The Ideal Solution
Can I ask to release latest beta (v.2.0.0b7 as the time of writing) as another version of community plugin?
https://github.com/danielgtaylor/python-betterproto/milestone/4 does not seem to be forthcoming.
Thanks
The Current Solution
Rely on official buf python plugin
https://buf.build/protocolbuffers/python?version=v28.0
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
plugins/community/danielgtaylor-betterproto のコミュニティプラグイン定義から始め、betterproto のリリースをどのように固定しているかを確認します。プラグインを要求されたベータ版 v2.0.0b7 に更新し、Buf が新しいバージョンを公開することと、オプションの protobuf フィールドが正常に生成されることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- tooling
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100