python-protobuf
Options related to the Protobuf Python backend.
See Protobuf and gRPC.
Config section: [python-protobuf]
Basic options
runtime_dependencies
runtime_dependencies
--python-protobuf-runtime-dependencies="[<target_option>, <target_option>, ...]"
PANTS_PYTHON_PROTOBUF_RUNTIME_DEPENDENCIES
default:
[]
A list of addresses to python_requirement
targets for the runtime dependencies needed for generated Python code to work. For example, ['3rdparty/python:protobuf', '3rdparty/python:grpcio']
. These dependencies will be automatically added to every protobuf_sources
target
default:
False
Use the mypy-protobuf
plugin (https://github.com/dropbox/mypy-protobuf) to also generate .pyi type stubs.
Advanced options
None
Deprecated options
None
Updated almost 2 years ago