Skip to content

Commit 1c6860e

Browse files
authored
fix: Generate Python Code from plugin-pb (#115)
This PR was created by a scheduled workflow to regenerate the Python code from `plugin-pb`.
1 parent eee8a75 commit 1c6860e

File tree

4 files changed

+26
-16
lines changed

4 files changed

+26
-16
lines changed

cloudquery/discovery_v1/discovery_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.

cloudquery/discovery_v1/discovery_pb2_grpc.py

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

66
from cloudquery.discovery_v1 import discovery_pb2 as cloudquery_dot_discovery__v1_dot_discovery__pb2
77

8-
GRPC_GENERATED_VERSION = '1.65.2'
8+
GRPC_GENERATED_VERSION = '1.66.1'
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 cloudquery/discovery_v1/discovery_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

cloudquery/plugin_v3/plugin_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.

cloudquery/plugin_v3/plugin_pb2_grpc.py

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

66
from cloudquery.plugin_v3 import plugin_pb2 as cloudquery_dot_plugin__v3_dot_plugin__pb2
77

8-
GRPC_GENERATED_VERSION = '1.65.2'
8+
GRPC_GENERATED_VERSION = '1.66.1'
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 cloudquery/plugin_v3/plugin_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)