Skip to content

Commit f197e41

Browse files
committed
Update grpc proto to 1.66
Signed-off-by: Bob Haddleton <bob.haddleton@nokia.com>
1 parent d287926 commit f197e41

4 files changed

Lines changed: 26 additions & 16 deletions

File tree

crossplane/function/proto/v1/run_function_pb2.py

Lines changed: 11 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crossplane/function/proto/v1/run_function_pb2_grpc.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55

66
from crossplane.function.proto.v1 import run_function_pb2 as crossplane_dot_function_dot_proto_dot_v1_dot_run__function__pb2
77

8-
GRPC_GENERATED_VERSION = '1.65.4'
8+
GRPC_GENERATED_VERSION = '1.66.0'
99
GRPC_VERSION = grpc.__version__
10-
EXPECTED_ERROR_RELEASE = '1.66.0'
11-
SCHEDULED_RELEASE_DATE = 'August 6, 2024'
1210
_version_not_supported = False
1311

1412
try:
@@ -18,15 +16,12 @@
1816
_version_not_supported = True
1917

2018
if _version_not_supported:
21-
warnings.warn(
19+
raise RuntimeError(
2220
f'The grpc package installed is at version {GRPC_VERSION},'
2321
+ f' but the generated code in crossplane/function/proto/v1/run_function_pb2_grpc.py depends on'
2422
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
2523
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
2624
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
27-
+ f' This warning will become an error in {EXPECTED_ERROR_RELEASE},'
28-
+ f' scheduled for release on {SCHEDULED_RELEASE_DATE}.',
29-
RuntimeWarning
3025
)
3126

3227

crossplane/function/proto/v1beta1/run_function_pb2.py

Lines changed: 11 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crossplane/function/proto/v1beta1/run_function_pb2_grpc.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55

66
from crossplane.function.proto.v1beta1 import run_function_pb2 as crossplane_dot_function_dot_proto_dot_v1beta1_dot_run__function__pb2
77

8-
GRPC_GENERATED_VERSION = '1.65.4'
8+
GRPC_GENERATED_VERSION = '1.66.0'
99
GRPC_VERSION = grpc.__version__
10-
EXPECTED_ERROR_RELEASE = '1.66.0'
11-
SCHEDULED_RELEASE_DATE = 'August 6, 2024'
1210
_version_not_supported = False
1311

1412
try:
@@ -18,15 +16,12 @@
1816
_version_not_supported = True
1917

2018
if _version_not_supported:
21-
warnings.warn(
19+
raise RuntimeError(
2220
f'The grpc package installed is at version {GRPC_VERSION},'
2321
+ f' but the generated code in crossplane/function/proto/v1beta1/run_function_pb2_grpc.py depends on'
2422
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
2523
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
2624
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
27-
+ f' This warning will become an error in {EXPECTED_ERROR_RELEASE},'
28-
+ f' scheduled for release on {SCHEDULED_RELEASE_DATE}.',
29-
RuntimeWarning
3025
)
3126

3227

0 commit comments

Comments
 (0)