Skip to content

Commit

Permalink
✨Source BrainTree: Migrate Python CDK to LOW-code CDK (#29200)
Browse files Browse the repository at this point in the history
Co-authored-by: Sunny Hashmi <6833405+sh4sh@users.noreply.github.com>
  • Loading branch information
masyagin1998 and sh4sh committed Aug 17, 2023
1 parent 900645d commit 861abce
Show file tree
Hide file tree
Showing 28 changed files with 16,197 additions and 1,224 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ RUN pip install .
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.1.5
LABEL io.airbyte.version=0.2.0
LABEL io.airbyte.name=airbyte/source-braintree
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"customer_stream": {
"created_at": "2222"
"created_at": "2222-01-01 00:00:00"
},
"dispute_stream": {
"received_date": "2222"
"received_date": "2222-01-01 00:00:00"
},
"transaction_stream": {
"created_at": "2222"
"created_at": "2222-01-01 00:00:00"
},
"subscription_stream": {
"created_at": "2222-01-01 00:00:00"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"stream": {
"name": "subscription_stream",
"json_schema": {},
"supported_sync_modes": ["full_refresh"],
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": false,
"source_defined_primary_key": [["id"]]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@
},
"sync_mode": "incremental",
"destination_sync_mode": "overwrite"
},
{
"stream": {
"name": "subscription_stream",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": false,
"default_cursor_field": ["created_at"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "incremental",
"destination_sync_mode": "overwrite"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"customer_stream": {
"created_at": "2021-08-01"
"created_at": "2023-08-08 00:00:00"
},
"dispute_stream": {
"received_date": "2021-08-01"
"received_date": "2023-08-08 00:00:00"
},
"transaction_stream": {
"created_at": "2021-08-01"
"created_at": "2023-08-08 00:00:00"
},
"subscription_stream": {
"created_at": "2023-08-08 00:00:00"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: 63cea06f-1c75-458d-88fe-ad48c7cb27fd
dockerImageTag: 0.1.5
dockerImageTag: 0.2.0
dockerRepository: airbyte/source-braintree
githubIssueLabel: source-braintree
icon: braintree.svg
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# This file is autogenerated -- only edit if you know what you are doing. Use setup.py for declaring dependencies.
-e .
-e ../../bases/connector-acceptance-test
14 changes: 9 additions & 5 deletions airbyte-integrations/connectors/source-braintree/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,22 @@

from setuptools import find_packages, setup

MAIN_REQUIREMENTS = ["airbyte-cdk~=0.1", "braintree~=4.18.1", "pendulum~=1.5.1", "inflection~=0.5.1", "backoff~=1.11.0"]
MAIN_REQUIREMENTS = ["airbyte-cdk~=0.1", "braintree~=4.21.0"]

TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest-mock~=3.6.1", "pytest~=6.1", "freezegun~=1.1.0", "responses~=0.13.3"]
TEST_REQUIREMENTS = [
"pytest~=6.2",
"pytest-mock~=3.6.1",
"connector-acceptance-test",
]

setup(
name="source_braintree",
description="Source implementation for Braintree.",
name="source_braintree_no_code",
description="Source implementation for Braintree No Code.",
author="Airbyte",
author_email="contact@airbyte.io",
packages=find_packages(),
install_requires=MAIN_REQUIREMENTS,
package_data={"": ["*.json"]},
package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]},
extras_require={
"tests": TEST_REQUIREMENTS,
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,25 +1,5 @@
#
# MIT License
#
# Copyright (c) 2020 Airbyte
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#


Expand Down

0 comments on commit 861abce

Please sign in to comment.