Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions doc/source/hacking/grpc_protocols.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ To actually regenerate the code::

./setup.py build_grpc

The ``requirements/requirements.in`` file needs to be updated to match the
protobuf version requirements of the ``grpcio-tools`` version used to
generate the code.
2 changes: 1 addition & 1 deletion requirements/requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Jinja2 >= 2.10
importlib_metadata >= 3.6; python_version < "3.10"
packaging
pluginbase
protobuf >= 3.19
protobuf <6.0dev,>=5.26.1
psutil
ruamel.yaml >= 0.16.7
ruamel.yaml.clib >= 0.1.2
Expand Down
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,12 @@ def run(self):
with open(path, "w", encoding="utf-8") as f:
f.write(code)

print(
"\n"
"NOTE: Please update requirements/requirements.in to match the protobuf\n"
"requirement in the grpcio-tools version you used."
)


def get_cmdclass():
cmdclass = {
Expand Down
Loading