Skip to content

Commit

Permalink
Source Slack: Convert to airbyte-lib (#34098)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Reuter authored Jan 12, 2024
1 parent e93703d commit 42eff7a
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 8 deletions.
9 changes: 2 additions & 7 deletions airbyte-integrations/connectors/source-slack/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_slack import SourceSlack
from source_slack.run import run

if __name__ == "__main__":
source = SourceSlack()
launch(source, sys.argv[1:])
run()
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-slack/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: c2281cee-86f9-4a86-bb48-d23286b4c7bd
dockerImageTag: 0.3.6
dockerImageTag: 0.3.7
dockerRepository: airbyte/source-slack
documentationUrl: https://docs.airbyte.com/integrations/sources/slack
githubIssueLabel: source-slack
Expand Down
5 changes: 5 additions & 0 deletions airbyte-integrations/connectors/source-slack/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
]

setup(
entry_points={
"console_scripts": [
"source-slack=source_slack.run:run",
],
},
name="source_slack",
description="Source implementation for Slack.",
author="Airbyte",
Expand Down
14 changes: 14 additions & 0 deletions airbyte-integrations/connectors/source-slack/source_slack/run.py
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_slack import SourceSlack


def run():
source = SourceSlack()
launch(source, sys.argv[1:])
1 change: 1 addition & 0 deletions docs/integrations/sources/slack.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ Slack has [rate limit restrictions](https://api.slack.com/docs/rate-limits).

| Version | Date | Pull Request | Subject |
|:--------|:-----------|:---------------------------------------------------------|:------------------------------------------------------------------------------------|
| 0.3.7 | 2024-01-10 | [1234](https://github.com/airbytehq/airbyte/pull/1234) | prepare for airbyte-lib |
| 0.3.6 | 2023-11-21 | [32707](https://github.com/airbytehq/airbyte/pull/32707) | Threads: do not use client-side record filtering |
| 0.3.5 | 2023-10-19 | [31599](https://github.com/airbytehq/airbyte/pull/31599) | Base image migration: remove Dockerfile and use the python-connector-base image |
| 0.3.4 | 2023-10-06 | [31134](https://github.com/airbytehq/airbyte/pull/31134) | Update CDK and remove non iterable return from records |
Expand Down

0 comments on commit 42eff7a

Please sign in to comment.