python-protobuf
Options related to the Protobuf Python backend.
See https://www.pantsbuild.org/v2.3/docs/protobuf.
Backend: ``
Config section: [python-protobuf]
Basic options
mypy_plugin
--[no-]python-protobuf-mypy-pluginPANTS_PYTHON_PROTOBUF_MYPY_PLUGINpants.toml
[python-protobuf]
mypy_plugin = <bool>
default:
FalseUse the mypy-protobuf plugin (https://github.com/dropbox/mypy-protobuf) to also generate .pyi type stubs.
runtime_dependencies
--python-protobuf-runtime-dependencies="[<target_option>, <target_option>, ...]"PANTS_PYTHON_PROTOBUF_RUNTIME_DEPENDENCIESpants.toml
[python-protobuf]
runtime_dependencies = [
<target_option>,
<target_option>,
...,
]
default:
[]A list of addresses to python_requirement_library 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_library target
Advanced options
mypy_plugin_version
--python-protobuf-mypy-plugin-version=<str>PANTS_PYTHON_PROTOBUF_MYPY_PLUGIN_VERSIONpants.toml
[python-protobuf]
mypy_plugin_version = <str>
default:
mypy-protobuf==1.23The pip-style requirement string for mypy-protobuf. You must still set --mypy-plugin for this option to be used.
Deprecated options
None
Related subsystems
None