Skip to content

Commit ed304cc

Browse files
committed
feat: add a protobuf extra
1 parent 3f4b397 commit ed304cc

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/ci-pr-validation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
python3 -m pip install -U pip setuptools wheel requests
7979
python3 setup.py bdist_wheel
8080
WHEEL=$(find dist -name '*.whl')
81-
pip3 install ${WHEEL}[avro]
81+
pip3 install ${WHEEL}[avro,protobuf]
8282
8383
- name: Run Oauth2 tests
8484
run: |

setup.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,21 @@ def build_extension(self, ext):
7676

7777
extras_require = {}
7878

79+
# protobuf schema dependencies
80+
extras_require["protobuf"] = sorted(
81+
{
82+
"protobuf>=3.6.1",
83+
}
84+
)
85+
7986
# functions dependencies
8087
extras_require["functions"] = sorted(
8188
{
82-
"protobuf>=3.6.1",
8389
"grpcio>=1.59.3",
8490
"apache-bookkeeper-client>=4.16.1",
8591
"prometheus_client",
86-
"ratelimit"
92+
"ratelimit",
93+
*extras_require["protobuf"],
8794
}
8895
)
8996

0 commit comments

Comments
 (0)