Skip to content

Commit

Permalink
source-linkedin-ads: Convert to airbyte-lib (#34152)
Browse files Browse the repository at this point in the history
Co-authored-by: Serhii Lazebnyi <[email protected]>
  • Loading branch information
Joe Reuter and lazebnyi authored Jan 16, 2024
1 parent f235139 commit 2662f07
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[run]
omit =
source_linkedin_ads/run.py
9 changes: 2 additions & 7 deletions airbyte-integrations/connectors/source-linkedin-ads/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#


import sys

from airbyte_cdk.entrypoint import launch
from source_linkedin_ads import SourceLinkedinAds
from source_linkedin_ads.run import run

if __name__ == "__main__":
source = SourceLinkedinAds()
launch(source, sys.argv[1:])
run()
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: 137ece28-5434-455c-8f34-69dc3782f451
dockerImageTag: 0.6.6
dockerImageTag: 0.6.7
dockerRepository: airbyte/source-linkedin-ads
documentationUrl: https://docs.airbyte.com/integrations/sources/linkedin-ads
githubIssueLabel: source-linkedin-ads
Expand Down
5 changes: 5 additions & 0 deletions airbyte-integrations/connectors/source-linkedin-ads/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
]

setup(
entry_points={
"console_scripts": [
"source-linkedin-ads=source_linkedin_ads.run:run",
],
},
name="source_linkedin_ads",
description="Source implementation for Linkedin Ads.",
author="Airbyte",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#


import sys

from airbyte_cdk.entrypoint import launch
from source_linkedin_ads import SourceLinkedinAds


def run():
source = SourceLinkedinAds()
launch(source, sys.argv[1:])
1 change: 1 addition & 0 deletions docs/integrations/sources/linkedin-ads.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ After 5 unsuccessful attempts - the connector will stop the sync operation. In s

| Version | Date | Pull Request | Subject |
|:--------|:-----------|:---------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------|
| 0.6.7 | 2024-01-11 | [34152](https://github.com/airbytehq/airbyte/pull/34152) | prepare for airbyte-lib |
| 0.6.6 | 2024-01-15 | [34222](https://github.com/airbytehq/airbyte/pull/34222) | Use stream slices for Analytics streams |
| 0.6.5 | 2023-12-15 | [33530](https://github.com/airbytehq/airbyte/pull/33530) | Fix typo in `Pivot Category` list |
| 0.6.4 | 2023-10-19 | [31599](https://github.com/airbytehq/airbyte/pull/31599) | Base image migration: remove Dockerfile and use the python-connector-base image |
Expand Down

0 comments on commit 2662f07

Please sign in to comment.