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

Santa: rename sdk --> cdk #3040

Merged
merged 1 commit into from
Apr 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions airbyte-integrations/bases/base-python/base_python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
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.cdk.abstract_source import AbstractSource

# Separate the SDK imports so they can be moved somewhere else more easily
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.cdk.streams.auth.core import HttpAuthenticator
from base_python.cdk.streams.auth.token import TokenAuthenticator
from base_python.cdk.streams.core import Stream
from base_python.cdk.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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
from airbyte_protocol import Type as MessageType
from base_python.integration import Source
from base_python.logger import AirbyteLogger
from base_python.sdk.streams.core import Stream
from base_python.cdk.streams.core import Stream


class AbstractSource(Source, ABC):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

from typing import Any, Mapping

from base_python.sdk.streams.auth.core import HttpAuthenticator
from base_python.cdk.streams.auth.core import HttpAuthenticator


class JWTAuthenticator(HttpAuthenticator):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

import pendulum
import requests
from base_python.sdk.streams.auth.core import HttpAuthenticator
from base_python.cdk.streams.auth.core import HttpAuthenticator


class Oauth2Authenticator(HttpAuthenticator):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

from typing import Any, Mapping

from base_python.sdk.streams.auth.core import HttpAuthenticator
from base_python.cdk.streams.auth.core import HttpAuthenticator


class TokenAuthenticator(HttpAuthenticator):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from abc import ABC, abstractmethod
from typing import Any, Iterable, List, Mapping, MutableMapping, Optional, Union

import base_python.sdk.utils.casing as casing
import base_python.cdk.utils.casing as casing
from airbyte_protocol import AirbyteStream, SyncMode
from base_python.logger import AirbyteLogger
from base_python.schema_helpers import ResourceSchemaLoader
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@

import requests
from airbyte_protocol import SyncMode
from base_python.sdk.streams.auth.core import HttpAuthenticator, NoAuth
from base_python.sdk.streams.core import Stream
from base_python.sdk.streams.exceptions import DefaultBackoffException, UserDefinedBackoffException
from base_python.sdk.streams.rate_limiting import default_backoff_handler, user_defined_backoff_handler
from base_python.cdk.streams.auth.core import HttpAuthenticator, NoAuth
from base_python.cdk.streams.core import Stream
from base_python.cdk.streams.exceptions import DefaultBackoffException, UserDefinedBackoffException
from base_python.cdk.streams.rate_limiting import default_backoff_handler, user_defined_backoff_handler


class HttpStream(Stream, ABC):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import backoff
from base_python.logger import AirbyteLogger
from base_python.sdk.streams.exceptions import DefaultBackoffException, UserDefinedBackoffException
from base_python.cdk.streams.exceptions import DefaultBackoffException, UserDefinedBackoffException
from requests import codes, exceptions

TRANSIENT_EXCEPTIONS = (DefaultBackoffException, exceptions.ConnectTimeout, exceptions.ReadTimeout, exceptions.ConnectionError)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


import pytest
from base_python.sdk.utils.casing import camel_to_snake
from base_python.cdk.utils.casing import camel_to_snake


@pytest.mark.parametrize(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
import requests
from airbyte_protocol import SyncMode
from base_python.logger import AirbyteLogger
from base_python.sdk.abstract_source import AbstractSource
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.cdk.abstract_source import AbstractSource
from base_python.cdk.streams.auth.token import TokenAuthenticator
from base_python.cdk.streams.core import Stream
from base_python.cdk.streams.http import HttpStream
from pendulum import DateTime
from slack_sdk import WebClient

Expand Down