Skip to content

Commit

Permalink
fix import logic
Browse files Browse the repository at this point in the history
  • Loading branch information
sherifnada committed Apr 14, 2021
1 parent 00ec8e4 commit e30d089
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
from base_python.client import BaseClient
from base_python.integration import AirbyteSpec, Destination, Integration, Source
from base_python.logger import AirbyteLogger
from base_python.sdk.abstract_source import AbstractSource
from base_python.source import BaseSource

# Separate the SDK imports so they can be moved somewhere else more easily
from base_python.sdk.abstract_source import AbstractSource
from base_python.sdk.streams.auth.core import HttpAuthenticator
from base_python.sdk.streams.auth.token import TokenAuthenticator
from base_python.sdk.streams.core import Stream
from base_python.sdk.streams.http import HttpStream
from base_python.source import BaseSource

# Must be the last one because the way we load the connector module creates a circular
# dependency and models might not have been loaded yet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@

from airbyte_protocol import AirbyteMessage, Status, Type

from .integration import Source
from .logger import AirbyteLogger
from base_python.integration import Source
from base_python.logger import AirbyteLogger

logger = AirbyteLogger()

Expand Down Expand Up @@ -116,7 +116,6 @@ def start(self, args):


def launch(source, args):

AirbyteEntrypoint(source).start(args)


Expand All @@ -133,3 +132,7 @@ def main():
raise Exception("Source implementation provided does not implement Source class!")

launch(source, sys.argv[1:])


if __name__ == '__main__':
main()
Empty file.
Empty file.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-iterable/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM airbyte/integration-base-python:0.1.2
FROM airbyte/integration-base-python:dev

# Bash is installed for more convenient debugging.
RUN apt-get update && apt-get install -y bash && rm -rf /var/lib/apt/lists/*
Expand Down
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-iterable/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
author="Airbyte",
author_email="contact@airbyte.io",
packages=find_packages(),
install_requires=["airbyte-protocol", "pytest==6.1.2", "pendulum", "requests"],
install_requires=["airbyte-protocol", "base-python", "pytest==6.1.2", "pendulum", "requests"],
package_data={"": ["*.json", "schemas/*.json"]},
)

0 comments on commit e30d089

Please sign in to comment.