From f23513954be774d5f174fcc63e87a20cb40d0e06 Mon Sep 17 00:00:00 2001 From: Joe Reuter Date: Tue, 16 Jan 2024 11:07:20 +0100 Subject: [PATCH] source-paypal-transaction: Convert to airbyte-lib (#34155) Co-authored-by: Serhii Lazebnyi <53845333+lazebnyi@users.noreply.github.com> --- .../connectors/source-paypal-transaction/main.py | 9 ++------- .../source-paypal-transaction/metadata.yaml | 2 +- .../connectors/source-paypal-transaction/setup.py | 5 +++++ .../source_paypal_transaction/run.py | 14 ++++++++++++++ docs/integrations/sources/paypal-transaction.md | 1 + 5 files changed, 23 insertions(+), 8 deletions(-) create mode 100644 airbyte-integrations/connectors/source-paypal-transaction/source_paypal_transaction/run.py diff --git a/airbyte-integrations/connectors/source-paypal-transaction/main.py b/airbyte-integrations/connectors/source-paypal-transaction/main.py index 51be49033dca5..06823a4a71e50 100644 --- a/airbyte-integrations/connectors/source-paypal-transaction/main.py +++ b/airbyte-integrations/connectors/source-paypal-transaction/main.py @@ -2,12 +2,7 @@ # Copyright (c) 2023 Airbyte, Inc., all rights reserved. # - -import sys - -from airbyte_cdk.entrypoint import launch -from source_paypal_transaction import SourcePaypalTransaction +from source_paypal_transaction.run import run if __name__ == "__main__": - source = SourcePaypalTransaction() - launch(source, sys.argv[1:]) + run() diff --git a/airbyte-integrations/connectors/source-paypal-transaction/metadata.yaml b/airbyte-integrations/connectors/source-paypal-transaction/metadata.yaml index 1821fdddaddcd..d456b79b905f3 100644 --- a/airbyte-integrations/connectors/source-paypal-transaction/metadata.yaml +++ b/airbyte-integrations/connectors/source-paypal-transaction/metadata.yaml @@ -11,7 +11,7 @@ data: connectorSubtype: api connectorType: source definitionId: d913b0f2-cc51-4e55-a44c-8ba1697b9239 - dockerImageTag: 2.2.0 + dockerImageTag: 2.2.1 dockerRepository: airbyte/source-paypal-transaction documentationUrl: https://docs.airbyte.com/integrations/sources/paypal-transaction githubIssueLabel: source-paypal-transaction diff --git a/airbyte-integrations/connectors/source-paypal-transaction/setup.py b/airbyte-integrations/connectors/source-paypal-transaction/setup.py index 3ecf3c37436cf..a7f633e8ca287 100644 --- a/airbyte-integrations/connectors/source-paypal-transaction/setup.py +++ b/airbyte-integrations/connectors/source-paypal-transaction/setup.py @@ -16,6 +16,11 @@ ] setup( + entry_points={ + "console_scripts": [ + "source-paypal-transaction=source_paypal_transaction.run:run", + ], + }, name="source_paypal_transaction", description="Source implementation for Paypal Transaction.", author="Airbyte", diff --git a/airbyte-integrations/connectors/source-paypal-transaction/source_paypal_transaction/run.py b/airbyte-integrations/connectors/source-paypal-transaction/source_paypal_transaction/run.py new file mode 100644 index 0000000000000..1a6d4cc56c0ed --- /dev/null +++ b/airbyte-integrations/connectors/source-paypal-transaction/source_paypal_transaction/run.py @@ -0,0 +1,14 @@ +# +# Copyright (c) 2023 Airbyte, Inc., all rights reserved. +# + + +import sys + +from airbyte_cdk.entrypoint import launch +from source_paypal_transaction import SourcePaypalTransaction + + +def run(): + source = SourcePaypalTransaction() + launch(source, sys.argv[1:]) diff --git a/docs/integrations/sources/paypal-transaction.md b/docs/integrations/sources/paypal-transaction.md index 0abf7725b5400..9390c59dac6f7 100644 --- a/docs/integrations/sources/paypal-transaction.md +++ b/docs/integrations/sources/paypal-transaction.md @@ -87,6 +87,7 @@ By default, syncs are performed with a slice period of 7 days. If you see errors | Version | Date | Pull Request | Subject | |:--------|:-----------|:---------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------| +| 2.2.1 | 2024-01-11 | [34155](https://github.com/airbytehq/airbyte/pull/34155) | prepare for airbyte-lib | | 2.2.0 | 2023-10-25 | [31852](https://github.com/airbytehq/airbyte/pull/31852) | The size of the time_window can be configured | | 2.1.2 | 2023-10-23 | [31759](https://github.com/airbytehq/airbyte/pull/31759) | Keep transaction_id as a string and fetch data in 7-day batches | 2.1.1 | 2023-10-19 | [31599](https://github.com/airbytehq/airbyte/pull/31599) | Base image migration: remove Dockerfile and use the python-connector-base image |