Merge pull request #144 from fernandezcuesta/fix/protobuf-gencode-misalignment

chore: update gRPC stubs
This commit is contained in:
Bob Haddleton 2025-04-23 14:04:50 -05:00 committed by GitHub
commit 57df02ae00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 13 additions and 10 deletions

View File

@ -2,7 +2,7 @@
# Generated by the protocol buffer compiler. DO NOT EDIT! # Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE # NO CHECKED-IN PROTOBUF GENCODE
# source: crossplane/function/proto/v1/run_function.proto # source: crossplane/function/proto/v1/run_function.proto
# Protobuf Python Version: 5.27.2 # Protobuf Python Version: 5.29.0
"""Generated protocol buffer code.""" """Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import descriptor_pool as _descriptor_pool
@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
_runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.ValidateProtobufRuntimeVersion(
_runtime_version.Domain.PUBLIC, _runtime_version.Domain.PUBLIC,
5, 5,
27, 29,
2, 0,
'', '',
'crossplane/function/proto/v1/run_function.proto' 'crossplane/function/proto/v1/run_function.proto'
) )

View File

@ -5,7 +5,7 @@ import warnings
from crossplane.function.proto.v1 import run_function_pb2 as crossplane_dot_function_dot_proto_dot_v1_dot_run__function__pb2 from crossplane.function.proto.v1 import run_function_pb2 as crossplane_dot_function_dot_proto_dot_v1_dot_run__function__pb2
GRPC_GENERATED_VERSION = '1.67.0' GRPC_GENERATED_VERSION = '1.71.0'
GRPC_VERSION = grpc.__version__ GRPC_VERSION = grpc.__version__
_version_not_supported = False _version_not_supported = False

View File

@ -2,7 +2,7 @@
# Generated by the protocol buffer compiler. DO NOT EDIT! # Generated by the protocol buffer compiler. DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE # NO CHECKED-IN PROTOBUF GENCODE
# source: crossplane/function/proto/v1beta1/run_function.proto # source: crossplane/function/proto/v1beta1/run_function.proto
# Protobuf Python Version: 5.27.2 # Protobuf Python Version: 5.29.0
"""Generated protocol buffer code.""" """Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import descriptor_pool as _descriptor_pool
@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
_runtime_version.ValidateProtobufRuntimeVersion( _runtime_version.ValidateProtobufRuntimeVersion(
_runtime_version.Domain.PUBLIC, _runtime_version.Domain.PUBLIC,
5, 5,
27, 29,
2, 0,
'', '',
'crossplane/function/proto/v1beta1/run_function.proto' 'crossplane/function/proto/v1beta1/run_function.proto'
) )

View File

@ -5,7 +5,7 @@ import warnings
from crossplane.function.proto.v1beta1 import run_function_pb2 as crossplane_dot_function_dot_proto_dot_v1beta1_dot_run__function__pb2 from crossplane.function.proto.v1beta1 import run_function_pb2 as crossplane_dot_function_dot_proto_dot_v1beta1_dot_run__function__pb2
GRPC_GENERATED_VERSION = '1.67.0' GRPC_GENERATED_VERSION = '1.71.0'
GRPC_VERSION = grpc.__version__ GRPC_VERSION = grpc.__version__
_version_not_supported = False _version_not_supported = False

View File

@ -20,7 +20,7 @@ classifiers = [
dependencies = [ dependencies = [
"grpcio==1.71.0", "grpcio==1.71.0",
"grpcio-reflection==1.*", "grpcio-reflection==1.*",
"protobuf==6.30.2", "protobuf==5.29.3", # Must be compatible with grpcio-tools.
"pydantic==2.*", "pydantic==2.*",
"structlog==25.*", "structlog==25.*",
] ]
@ -45,7 +45,10 @@ dependencies = ["ipython==9.1.0"]
type = "virtual" type = "virtual"
detached = true detached = true
path = ".venv-generate" path = ".venv-generate"
dependencies = ["grpcio-tools==1.71.0"] dependencies = [
"grpcio-tools==1.71.0",
"protobuf==5.29.3",
]
[tool.hatch.envs.generate.scripts] [tool.hatch.envs.generate.scripts]
protoc = "python -m grpc_tools.protoc --proto_path=. --python_out=. --pyi_out=. --grpc_python_out=. crossplane/function/proto/v1beta1/run_function.proto crossplane/function/proto/v1/run_function.proto" protoc = "python -m grpc_tools.protoc --proto_path=. --python_out=. --pyi_out=. --grpc_python_out=. crossplane/function/proto/v1beta1/run_function.proto crossplane/function/proto/v1/run_function.proto"