diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 25bf810..9efa5ca 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.0.33" + ".": "0.0.34" } diff --git a/CHANGELOG.md b/CHANGELOG.md index aa81b31..94fd615 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## [0.0.34](https://github.com/cloudquery/plugin-pb-python/compare/v0.0.33...v0.0.34) (2024-09-01) + + +### Bug Fixes + +* **deps:** Update dependency black to v24.8.0 ([#110](https://github.com/cloudquery/plugin-pb-python/issues/110)) ([d0ff0fe](https://github.com/cloudquery/plugin-pb-python/commit/d0ff0fe53adcc87b08f9a73357a2dc878817484e)) +* **deps:** Update dependency grpcio to v1.66.1 ([#111](https://github.com/cloudquery/plugin-pb-python/issues/111)) ([1dd587e](https://github.com/cloudquery/plugin-pb-python/commit/1dd587ecd283770189691ff994123d3674869dc5)) +* **deps:** Update dependency grpcio-tools to v1.66.1 ([#113](https://github.com/cloudquery/plugin-pb-python/issues/113)) ([da1d6ba](https://github.com/cloudquery/plugin-pb-python/commit/da1d6bae735ec0b231a8da6ae039924247bbba63)) +* **deps:** Update dependency protobuf to v5.28.0 ([#114](https://github.com/cloudquery/plugin-pb-python/issues/114)) ([eee8a75](https://github.com/cloudquery/plugin-pb-python/commit/eee8a7510bcdc58e0330787e33e706376d4291b4)) +* Generate Python Code from `plugin-pb` ([#115](https://github.com/cloudquery/plugin-pb-python/issues/115)) ([1c6860e](https://github.com/cloudquery/plugin-pb-python/commit/1c6860e75dad4c3511096100765d3413568f2d4c)) + ## [0.0.33](https://github.com/cloudquery/plugin-pb-python/compare/v0.0.32...v0.0.33) (2024-08-01) diff --git a/cloudquery/discovery_v1/discovery_pb2.py b/cloudquery/discovery_v1/discovery_pb2.py index b680c71..f359702 100644 --- a/cloudquery/discovery_v1/discovery_pb2.py +++ b/cloudquery/discovery_v1/discovery_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: cloudquery/discovery_v1/discovery.proto -# Protobuf Python Version: 5.26.1 +# Protobuf Python Version: 5.27.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 27, + 2, + '', + 'cloudquery/discovery_v1/discovery.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() diff --git a/cloudquery/discovery_v1/discovery_pb2_grpc.py b/cloudquery/discovery_v1/discovery_pb2_grpc.py index 287f7b5..1ce89ff 100644 --- a/cloudquery/discovery_v1/discovery_pb2_grpc.py +++ b/cloudquery/discovery_v1/discovery_pb2_grpc.py @@ -5,10 +5,8 @@ from cloudquery.discovery_v1 import discovery_pb2 as cloudquery_dot_discovery__v1_dot_discovery__pb2 -GRPC_GENERATED_VERSION = '1.65.2' +GRPC_GENERATED_VERSION = '1.66.1' GRPC_VERSION = grpc.__version__ -EXPECTED_ERROR_RELEASE = '1.66.0' -SCHEDULED_RELEASE_DATE = 'August 6, 2024' _version_not_supported = False try: @@ -18,15 +16,12 @@ _version_not_supported = True if _version_not_supported: - warnings.warn( + raise RuntimeError( f'The grpc package installed is at version {GRPC_VERSION},' + f' but the generated code in cloudquery/discovery_v1/discovery_pb2_grpc.py depends on' + f' grpcio>={GRPC_GENERATED_VERSION}.' + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - + f' This warning will become an error in {EXPECTED_ERROR_RELEASE},' - + f' scheduled for release on {SCHEDULED_RELEASE_DATE}.', - RuntimeWarning ) diff --git a/cloudquery/plugin_v3/plugin_pb2.py b/cloudquery/plugin_v3/plugin_pb2.py index b24f77f..0e07e75 100644 --- a/cloudquery/plugin_v3/plugin_pb2.py +++ b/cloudquery/plugin_v3/plugin_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: cloudquery/plugin_v3/plugin.proto -# Protobuf Python Version: 5.26.1 +# Protobuf Python Version: 5.27.2 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 27, + 2, + '', + 'cloudquery/plugin_v3/plugin.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() diff --git a/cloudquery/plugin_v3/plugin_pb2_grpc.py b/cloudquery/plugin_v3/plugin_pb2_grpc.py index 35ed79a..62e36e2 100644 --- a/cloudquery/plugin_v3/plugin_pb2_grpc.py +++ b/cloudquery/plugin_v3/plugin_pb2_grpc.py @@ -5,10 +5,8 @@ from cloudquery.plugin_v3 import plugin_pb2 as cloudquery_dot_plugin__v3_dot_plugin__pb2 -GRPC_GENERATED_VERSION = '1.65.2' +GRPC_GENERATED_VERSION = '1.66.1' GRPC_VERSION = grpc.__version__ -EXPECTED_ERROR_RELEASE = '1.66.0' -SCHEDULED_RELEASE_DATE = 'August 6, 2024' _version_not_supported = False try: @@ -18,15 +16,12 @@ _version_not_supported = True if _version_not_supported: - warnings.warn( + raise RuntimeError( f'The grpc package installed is at version {GRPC_VERSION},' + f' but the generated code in cloudquery/plugin_v3/plugin_pb2_grpc.py depends on' + f' grpcio>={GRPC_GENERATED_VERSION}.' + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' - + f' This warning will become an error in {EXPECTED_ERROR_RELEASE},' - + f' scheduled for release on {SCHEDULED_RELEASE_DATE}.', - RuntimeWarning ) diff --git a/requirements.txt b/requirements.txt index 2426dcc..b3fb4d9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ -black==24.4.2 -grpcio-tools==1.65.2 -grpcio==1.65.2 -protobuf==5.27.3 +black==24.8.0 +grpcio-tools==1.66.1 +grpcio==1.66.1 +protobuf==5.28.0 pyarrow==17.0.0 pytest==8.3.2 diff --git a/setup.py b/setup.py index d9158c5..fb149d4 100644 --- a/setup.py +++ b/setup.py @@ -37,7 +37,7 @@ ] setuptools.setup( name=name, - version="0.0.33", + version="0.0.34", description=description, long_description=long_description, author="CloudQuery LTD",