From 5d1a1d7d98ec88607695a6454085317f32df6abd Mon Sep 17 00:00:00 2001
From: CloudQuery Bot <102256036+cq-bot@users.noreply.github.com>
Date: Fri, 9 Feb 2024 15:19:02 +0200
Subject: [PATCH 1/5] fix(deps): Update dependency cloudquery-plugin-pb to
v0.0.23 (#125)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| [cloudquery-plugin-pb](https://togithub.com/cloudquery/plugin-pb-python) | patch | `==0.0.22` -> `==0.0.23` |
---
### Release Notes
cloudquery/plugin-pb-python (cloudquery-plugin-pb)
### [`v0.0.23`](https://togithub.com/cloudquery/plugin-pb-python/blob/HEAD/CHANGELOG.md#0023-2024-02-09)
[Compare Source](https://togithub.com/cloudquery/plugin-pb-python/compare/v0.0.22...v0.0.23)
##### Bug Fixes
- **deps:** Update dependency pyarrow to v15 ([#56](https://togithub.com/cloudquery/plugin-pb-python/issues/56)) ([3acf899](https://togithub.com/cloudquery/plugin-pb-python/commit/3acf899d4bd675154c61885b8b8ea07a6c4513b7))
- Generate Python Code from `plugin-pb` ([#59](https://togithub.com/cloudquery/plugin-pb-python/issues/59)) ([ca2574b](https://togithub.com/cloudquery/plugin-pb-python/commit/ca2574b0bafb6c9adbc541c1096b03d88f32b904))
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
â™» **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate).
---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index 0f6db0b..b31e3f2 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@
description = "CloudQuery Plugin SDK for Python"
dependencies = [
- "cloudquery-plugin-pb==0.0.22",
+ "cloudquery-plugin-pb==0.0.23",
"exceptiongroup==1.2.0",
"black==24.1.1",
"grpcio==1.60.0",
From 541e9ca6748d327a9a4f5117ee49695e0f8bb464 Mon Sep 17 00:00:00 2001
From: CloudQuery Bot <102256036+cq-bot@users.noreply.github.com>
Date: Fri, 9 Feb 2024 15:25:15 +0200
Subject: [PATCH 2/5] fix(deps): Update dependency pyarrow to v15 (#126)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This PR contains the following updates:
| Package | Update | Change |
|---|---|---|
| [pyarrow](https://arrow.apache.org/) ([source](https://togithub.com/apache/arrow)) | major | `==14.0.2` -> `==15.0.0` |
---
### Configuration
📅 **Schedule**: Branch creation - "before 4am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
â™» **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Renovate Bot](https://togithub.com/renovatebot/renovate).
---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index b31e3f2..28d0a12 100644
--- a/setup.py
+++ b/setup.py
@@ -23,7 +23,7 @@
"pandas==2.2.0",
"pluggy==1.4.0",
"protobuf==4.25.2",
- "pyarrow==14.0.2",
+ "pyarrow==15.0.0",
"pytest==7.4.4",
"python-dateutil==2.8.2",
"pytz==2023.4",
From 723ccdce27c8c4bbc5c59a8011abe9bf2c1d8ff3 Mon Sep 17 00:00:00 2001
From: Alex Shcherbakov
Date: Mon, 12 Feb 2024 10:47:03 +0200
Subject: [PATCH 3/5] chore: Remove second `package_root` (#128)
Already present on [line 6](https://github.com/cloudquery/plugin-sdk-python/blob/main/setup.py#L6)
https://github.com/cloudquery/plugin-sdk-python/blob/541e9ca6748d327a9a4f5117ee49695e0f8bb464/setup.py#L6
---
setup.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/setup.py b/setup.py
index 28d0a12..644edba 100644
--- a/setup.py
+++ b/setup.py
@@ -34,8 +34,6 @@
]
url = "https://github.com/cloudquery/plugin-sdk-python"
-package_root = os.path.abspath(os.path.dirname(__file__))
-
long_description = """
CloudQuery Plugin SDK for Python
================================================
From 35c981c6c57247d210b4e8513cbb45caf6659177 Mon Sep 17 00:00:00 2001
From: Alex Shcherbakov
Date: Mon, 12 Feb 2024 14:06:54 +0200
Subject: [PATCH 4/5] feat: Implement `GetSpecSchema` plugin gRPC call (#130)
Closes https://github.com/cloudquery/cloudquery/issues/16505
---
cloudquery/sdk/internal/servers/plugin_v3/plugin.py | 3 +++
cloudquery/sdk/plugin/plugin.py | 4 ++++
2 files changed, 7 insertions(+)
diff --git a/cloudquery/sdk/internal/servers/plugin_v3/plugin.py b/cloudquery/sdk/internal/servers/plugin_v3/plugin.py
index 8bc561f..8246085 100644
--- a/cloudquery/sdk/internal/servers/plugin_v3/plugin.py
+++ b/cloudquery/sdk/internal/servers/plugin_v3/plugin.py
@@ -28,6 +28,9 @@ def GetName(self, request, context):
def GetVersion(self, request, context):
return plugin_pb2.GetVersion.Response(version=self._plugin.version())
+ def GetSpecSchema(self, request, context):
+ return plugin_pb2.GetSpecSchema.Response(json_schema=self._plugin.json_schema())
+
def Init(self, request: plugin_pb2.Init.Request, context):
self._plugin.init(request.spec, no_connection=request.no_connection)
return plugin_pb2.Init.Response()
diff --git a/cloudquery/sdk/plugin/plugin.py b/cloudquery/sdk/plugin/plugin.py
index ff20cd6..5b3d5f5 100644
--- a/cloudquery/sdk/plugin/plugin.py
+++ b/cloudquery/sdk/plugin/plugin.py
@@ -41,6 +41,7 @@ class Options:
build_targets: List[BuildTarget] = None
team: str = None
kind: str = None
+ json_schema: str = None
class Plugin:
@@ -74,6 +75,9 @@ def team(self) -> str:
def kind(self) -> str:
return self._opts.kind
+ def json_schema(self) -> str:
+ return self._opts.json_schema
+
def dockerfile(self) -> str:
return self._opts.dockerfile
From c5e152648ee18e6bab4b829873bc4606cae5efa3 Mon Sep 17 00:00:00 2001
From: CloudQuery Bot <102256036+cq-bot@users.noreply.github.com>
Date: Mon, 12 Feb 2024 14:11:13 +0200
Subject: [PATCH 5/5] chore(main): Release v0.1.14 (#127)
:robot: I have created a release *beep* *boop*
---
## [0.1.14](https://github.com/cloudquery/plugin-sdk-python/compare/v0.1.13...v0.1.14) (2024-02-12)
### Features
* Implement `GetSpecSchema` plugin gRPC call ([#130](https://github.com/cloudquery/plugin-sdk-python/issues/130)) ([35c981c](https://github.com/cloudquery/plugin-sdk-python/commit/35c981c6c57247d210b4e8513cbb45caf6659177))
### Bug Fixes
* **deps:** Update dependency cloudquery-plugin-pb to v0.0.23 ([#125](https://github.com/cloudquery/plugin-sdk-python/issues/125)) ([5d1a1d7](https://github.com/cloudquery/plugin-sdk-python/commit/5d1a1d7d98ec88607695a6454085317f32df6abd))
* **deps:** Update dependency pyarrow to v15 ([#126](https://github.com/cloudquery/plugin-sdk-python/issues/126)) ([541e9ca](https://github.com/cloudquery/plugin-sdk-python/commit/541e9ca6748d327a9a4f5117ee49695e0f8bb464))
---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
---
.release-please-manifest.json | 2 +-
CHANGELOG.md | 13 +++++++++++++
setup.py | 2 +-
3 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 0ebd1f6..243f893 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.1.13"
+ ".": "0.1.14"
}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 588c998..cf93845 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,18 @@
# Changelog
+## [0.1.14](https://github.com/cloudquery/plugin-sdk-python/compare/v0.1.13...v0.1.14) (2024-02-12)
+
+
+### Features
+
+* Implement `GetSpecSchema` plugin gRPC call ([#130](https://github.com/cloudquery/plugin-sdk-python/issues/130)) ([35c981c](https://github.com/cloudquery/plugin-sdk-python/commit/35c981c6c57247d210b4e8513cbb45caf6659177))
+
+
+### Bug Fixes
+
+* **deps:** Update dependency cloudquery-plugin-pb to v0.0.23 ([#125](https://github.com/cloudquery/plugin-sdk-python/issues/125)) ([5d1a1d7](https://github.com/cloudquery/plugin-sdk-python/commit/5d1a1d7d98ec88607695a6454085317f32df6abd))
+* **deps:** Update dependency pyarrow to v15 ([#126](https://github.com/cloudquery/plugin-sdk-python/issues/126)) ([541e9ca](https://github.com/cloudquery/plugin-sdk-python/commit/541e9ca6748d327a9a4f5117ee49695e0f8bb464))
+
## [0.1.13](https://github.com/cloudquery/plugin-sdk-python/compare/v0.1.12...v0.1.13) (2024-02-01)
diff --git a/setup.py b/setup.py
index 644edba..5dee4ba 100644
--- a/setup.py
+++ b/setup.py
@@ -51,7 +51,7 @@
]
setuptools.setup(
name=name,
- version="0.1.13",
+ version="0.1.14",
description=description,
long_description=long_description,
author="CloudQuery LTD",