Contains protos, non-proto Python library code, and tools for generating Go and Python proto library code.
You need to have protoc
installed. You can find the releases here.
If you get an error ImportError: cannot import name 'runtime_version' from 'google.protobuf'
when trying to import kfp-kubernetes that you've built with protoc, you're using a protoc that's too new. Version 21.12 is known to work for compiling the python protos. Version 27.1 is known to produce this error.
Python proto code should be updated prior to releasing the package. For this reason, bumping the version number is included in the instructions.
Python proto code should not be checked into source control.
- Update version in
python/setup.py
if applicable. make clean-python python
If you get an error error: invalid command 'bdist_wheel'
, run pip install wheel
then try again.
Go proto code should be updated when the kubernetes_executor_config.proto
file is updated.
Go proto code should be checked into source control.
make clean-go golang