Skip to content

Commit

Permalink
Source Mixpanel: Convert to airbyte-lib (#34147)
Browse files Browse the repository at this point in the history
Co-authored-by: Serhii Lazebnyi <53845333+lazebnyi@users.noreply.github.com>
  • Loading branch information
Joe Reuter and lazebnyi committed Jan 16, 2024
1 parent 9078ec6 commit 5306466
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 10 deletions.
11 changes: 2 additions & 9 deletions airbyte-integrations/connectors/source-mixpanel/main.py
Expand Up @@ -2,14 +2,7 @@
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#


import sys

from airbyte_cdk.entrypoint import launch
from source_mixpanel import SourceMixpanel
from source_mixpanel.config_migrations import MigrateProjectId
from source_mixpanel.run import run

if __name__ == "__main__":
source = SourceMixpanel()
MigrateProjectId.migrate(sys.argv[1:], source)
launch(source, sys.argv[1:])
run()
Expand Up @@ -11,7 +11,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: 12928b32-bf0a-4f1e-964f-07e12e37153a
dockerImageTag: 2.0.0
dockerImageTag: 2.0.1
dockerRepository: airbyte/source-mixpanel
documentationUrl: https://docs.airbyte.com/integrations/sources/mixpanel
githubIssueLabel: source-mixpanel
Expand Down
5 changes: 5 additions & 0 deletions airbyte-integrations/connectors/source-mixpanel/setup.py
Expand Up @@ -12,6 +12,11 @@
TEST_REQUIREMENTS = ["requests-mock~=1.9.3", "pytest~=6.1", "pytest-mock~=3.6", "requests_mock~=1.8"]

setup(
entry_points={
"console_scripts": [
"source-mixpanel=source_mixpanel.run:run",
],
},
name="source_mixpanel",
description="Source implementation for Mixpanel.",
author="Airbyte",
Expand Down
@@ -0,0 +1,16 @@
#
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#


import sys

from airbyte_cdk.entrypoint import launch
from source_mixpanel import SourceMixpanel
from source_mixpanel.config_migrations import MigrateProjectId


def run():
source = SourceMixpanel()
MigrateProjectId.migrate(sys.argv[1:], source)
launch(source, sys.argv[1:])
1 change: 1 addition & 0 deletions docs/integrations/sources/mixpanel.md
Expand Up @@ -55,6 +55,7 @@ Syncing huge date windows may take longer due to Mixpanel's low API rate-limits

| Version | Date | Pull Request | Subject |
|:--------|:-----------|:---------------------------------------------------------|:------------------------------------------------------------------------------------------------------------|
| 2.0.1 | 2024-01-11 | [34147](https://github.com/airbytehq/airbyte/pull/34147) | prepare for airbyte-lib |
| 2.0.0 | 2023-10-30 | [31955](https://github.com/airbytehq/airbyte/pull/31955) | Delete the default primary key for the Export stream |
| 1.0.1 | 2023-10-19 | [31599](https://github.com/airbytehq/airbyte/pull/31599) | Base image migration: remove Dockerfile and use the python-connector-base image |
| 1.0.0 | 2023-09-27 | [30025](https://github.com/airbytehq/airbyte/pull/30025) | Fix type of datetime field in engage stream; fix primary key for export stream. |
Expand Down

0 comments on commit 5306466

Please sign in to comment.