Skip to content

Commit f29234a

Browse files
author
Joe Reuter
authored
airbyte-lib: Refactor connectors (#34552)
1 parent d1334be commit f29234a

File tree

755 files changed

+7678
-1984
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

755 files changed

+7678
-1984
lines changed

airbyte-integrations/connectors/source-activecampaign/main.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
33
#
44

5-
6-
import sys
7-
8-
from airbyte_cdk.entrypoint import launch
9-
from source_activecampaign import SourceActivecampaign
5+
from source_activecampaign.run import run
106

117
if __name__ == "__main__":
12-
source = SourceActivecampaign()
13-
launch(source, sys.argv[1:])
8+
run()

airbyte-integrations/connectors/source-activecampaign/setup.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,30 @@
1616
]
1717

1818
setup(
19+
entry_points={
20+
"console_scripts": [
21+
"source-activecampaign=source_activecampaign.run:run",
22+
],
23+
},
1924
name="source_activecampaign",
2025
description="Source implementation for Activecampaign.",
2126
author="Airbyte",
2227
author_email="[email protected]",
2328
packages=find_packages(),
2429
install_requires=MAIN_REQUIREMENTS,
25-
package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]},
30+
package_data={
31+
"": [
32+
# Include yaml files in the package (if any)
33+
"*.yml",
34+
"*.yaml",
35+
# Include all json files in the package, up to 4 levels deep
36+
"*.json",
37+
"*/*.json",
38+
"*/*/*.json",
39+
"*/*/*/*.json",
40+
"*/*/*/*/*.json",
41+
]
42+
},
2643
extras_require={
2744
"tests": TEST_REQUIREMENTS,
2845
},
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#
2+
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
3+
#
4+
5+
6+
import sys
7+
8+
from airbyte_cdk.entrypoint import launch
9+
from source_activecampaign import SourceActivecampaign
10+
11+
12+
def run():
13+
source = SourceActivecampaign()
14+
launch(source, sys.argv[1:])

airbyte-integrations/connectors/source-adjust/main.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
33
#
44

5-
6-
import sys
7-
8-
from airbyte_cdk.entrypoint import launch
9-
from source_adjust import SourceAdjust
5+
from source_adjust.run import run
106

117
if __name__ == "__main__":
12-
source = SourceAdjust()
13-
launch(source, sys.argv[1:])
8+
run()

airbyte-integrations/connectors/source-adjust/setup.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,30 @@
1616
]
1717

1818
setup(
19+
entry_points={
20+
"console_scripts": [
21+
"source-adjust=source_adjust.run:run",
22+
],
23+
},
1924
name="source_adjust",
2025
description="Source implementation for Adjust.",
2126
author="Airbyte",
2227
author_email="[email protected]",
2328
packages=find_packages(),
2429
install_requires=MAIN_REQUIREMENTS,
25-
package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]},
30+
package_data={
31+
"": [
32+
# Include yaml files in the package (if any)
33+
"*.yml",
34+
"*.yaml",
35+
# Include all json files in the package, up to 4 levels deep
36+
"*.json",
37+
"*/*.json",
38+
"*/*/*.json",
39+
"*/*/*/*.json",
40+
"*/*/*/*/*.json",
41+
]
42+
},
2643
extras_require={
2744
"tests": TEST_REQUIREMENTS,
2845
},
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#
2+
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
3+
#
4+
5+
6+
import sys
7+
8+
from airbyte_cdk.entrypoint import launch
9+
from source_adjust import SourceAdjust
10+
11+
12+
def run():
13+
source = SourceAdjust()
14+
launch(source, sys.argv[1:])

airbyte-integrations/connectors/source-aha/main.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
33
#
44

5-
6-
import sys
7-
8-
from airbyte_cdk.entrypoint import launch
9-
from source_aha import SourceAha
5+
from source_aha.run import run
106

117
if __name__ == "__main__":
12-
source = SourceAha()
13-
launch(source, sys.argv[1:])
8+
run()

airbyte-integrations/connectors/source-aha/setup.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,30 @@
1616
]
1717

1818
setup(
19+
entry_points={
20+
"console_scripts": [
21+
"source-aha=source_aha.run:run",
22+
],
23+
},
1924
name="source_aha",
2025
description="Source implementation for Aha.",
2126
author="Airbyte",
2227
author_email="[email protected]",
2328
packages=find_packages(),
2429
install_requires=MAIN_REQUIREMENTS,
25-
package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]},
30+
package_data={
31+
"": [
32+
# Include yaml files in the package (if any)
33+
"*.yml",
34+
"*.yaml",
35+
# Include all json files in the package, up to 4 levels deep
36+
"*.json",
37+
"*/*.json",
38+
"*/*/*.json",
39+
"*/*/*/*.json",
40+
"*/*/*/*/*.json",
41+
]
42+
},
2643
extras_require={
2744
"tests": TEST_REQUIREMENTS,
2845
},
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#
2+
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
3+
#
4+
5+
6+
import sys
7+
8+
from airbyte_cdk.entrypoint import launch
9+
from source_aha import SourceAha
10+
11+
12+
def run():
13+
source = SourceAha()
14+
launch(source, sys.argv[1:])

airbyte-integrations/connectors/source-aircall/main.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
33
#
44

5-
6-
import sys
7-
8-
from airbyte_cdk.entrypoint import launch
9-
from source_aircall import SourceAircall
5+
from source_aircall.run import run
106

117
if __name__ == "__main__":
12-
source = SourceAircall()
13-
launch(source, sys.argv[1:])
8+
run()

0 commit comments

Comments
 (0)