Skip to content

Commit 8a723bc

Browse files
authored
Merge pull request #84 from bobh66/update_grpc_proto
Update protobuf to 5.27.2
2 parents d287926 + b3ca1f4 commit 8a723bc

File tree

5 files changed

+27
-17
lines changed

5 files changed

+27
-17
lines changed

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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ classifiers = [
1616
"Programming Language :: Python :: 3.11",
1717
]
1818

19-
dependencies = ["grpcio==1.*", "grpcio-reflection==1.*", "structlog==24.*"]
19+
dependencies = ["grpcio==1.*", "grpcio-reflection==1.*", "protobuf==5.27.2", "structlog==24.*"]
2020

2121
dynamic = ["version"]
2222

0 commit comments

Comments
 (0)