Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source Mixpanel: Convert to airbyte-lib #34147

Merged
merged 2 commits into from Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 | [1234](https://github.com/airbytehq/airbyte/pull/1234) | prepare for airbyte-lib |
flash1293 marked this conversation as resolved.
Show resolved Hide resolved
| 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