Skip to content

Commit

Permalink
move additional modules out of messaging package
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
  • Loading branch information
andrewwhitehead committed Dec 10, 2019
1 parent c791b69 commit 25dc621
Show file tree
Hide file tree
Showing 20 changed files with 23 additions and 21 deletions.
4 changes: 2 additions & 2 deletions aries_cloudagent/admin/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
from marshmallow import fields, Schema

from ..config.injection_context import InjectionContext
from ..messaging.plugin_registry import PluginRegistry
from ..core.plugin_registry import PluginRegistry
from ..messaging.responder import BaseResponder
from ..messaging.task_queue import TaskQueue
from ..transport.queue.basic import BasicMessageQueue
from ..transport.outbound.message import OutboundMessage
from ..utils.stats import Collector
from ..utils.task_queue import TaskQueue
from ..version import __version__

from .base_server import BaseAdminServer
Expand Down
4 changes: 2 additions & 2 deletions aries_cloudagent/admin/tests/test_admin_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
from ...config.default_context import DefaultContextBuilder
from ...config.injection_context import InjectionContext
from ...config.provider import ClassProvider
from ...messaging.plugin_registry import PluginRegistry
from ...messaging.protocol_registry import ProtocolRegistry
from ...core.plugin_registry import PluginRegistry
from ...core.protocol_registry import ProtocolRegistry
from ...transport.outbound.message import OutboundMessage

from ..server import AdminServer
Expand Down
4 changes: 2 additions & 2 deletions aries_cloudagent/config/default_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

from ..cache.base import BaseCache
from ..cache.basic import BasicCache
from ..core.plugin_registry import PluginRegistry
from ..core.protocol_registry import ProtocolRegistry
from ..ledger.base import BaseLedger
from ..ledger.provider import LedgerProvider
from ..issuer.base import BaseIssuer
from ..holder.base import BaseHolder
from ..verifier.base import BaseVerifier
from ..messaging.plugin_registry import PluginRegistry
from ..messaging.protocol_registry import ProtocolRegistry
from ..protocols.actionmenu.base_service import BaseMenuService
from ..protocols.actionmenu.driver_service import DriverMenuService
from ..protocols.introduction.base_service import BaseIntroductionService
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudagent/config/tests/test_default_context.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from asynctest import TestCase as AsyncTestCase

from ...messaging.protocol_registry import ProtocolRegistry
from ...core.protocol_registry import ProtocolRegistry
from ...storage.base import BaseStorage
from ...transport.wire_format import BaseWireFormat
from ...wallet.base import BaseWallet
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudagent/core/conductor.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
from ..config.logging import LoggingConfigurator
from ..config.wallet import wallet_config
from ..messaging.responder import BaseResponder
from ..messaging.task_queue import CompletedTask, TaskQueue
from ..protocols.connections.manager import ConnectionManager, ConnectionManagerError
from ..transport.inbound.manager import InboundTransportManager
from ..transport.inbound.message import InboundMessage
from ..transport.outbound.base import OutboundDeliveryError
from ..transport.outbound.manager import OutboundTransportManager
from ..transport.outbound.message import OutboundMessage
from ..transport.wire_format import BaseWireFormat
from ..utils.task_queue import CompletedTask, TaskQueue
from ..utils.stats import Collector

from .dispatcher import Dispatcher
Expand Down
4 changes: 2 additions & 2 deletions aries_cloudagent/core/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
from aiohttp.web import HTTPException

from ..config.injection_context import InjectionContext
from ..core.protocol_registry import ProtocolRegistry
from ..messaging.agent_message import AgentMessage
from ..messaging.error import MessageParseError
from ..messaging.models.base import BaseModelError
from ..messaging.protocol_registry import ProtocolRegistry
from ..messaging.request_context import RequestContext
from ..messaging.responder import BaseResponder
from ..messaging.task_queue import CompletedTask, PendingTask, TaskQueue
from ..messaging.util import datetime_now
from ..protocols.connections.manager import ConnectionManager
from ..protocols.problem_report.message import ProblemReport
from ..transport.inbound.message import InboundMessage
from ..transport.outbound.message import OutboundMessage
from ..utils.stats import Collector
from ..utils.task_queue import CompletedTask, PendingTask, TaskQueue

LOGGER = logging.getLogger(__name__)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
from typing import Sequence

from ..config.injection_context import InjectionContext
from ..messaging.protocol_registry import ProtocolRegistry
from ..utils.classloader import ClassLoader, ModuleLoadError

from .protocol_registry import ProtocolRegistry

LOGGER = logging.getLogger(__name__)


Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion aries_cloudagent/core/tests/test_conductor.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
PublicKeyType,
Service,
)
from ...messaging.protocol_registry import ProtocolRegistry
from ...core.protocol_registry import ProtocolRegistry
from ...protocols.connections.manager import ConnectionManager
from ...storage.base import BaseStorage
from ...storage.basic import BasicStorage
Expand Down
5 changes: 3 additions & 2 deletions aries_cloudagent/core/tests/test_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@

from asynctest import TestCase as AsyncTestCase, mock as async_mock

from .. import dispatcher as test_module
from ...config.injection_context import InjectionContext
from ...connections.models.connection_record import ConnectionRecord
from ...core.protocol_registry import ProtocolRegistry
from ...messaging.agent_message import AgentMessage, AgentMessageSchema
from ...messaging.error import MessageParseError
from ...messaging.protocol_registry import ProtocolRegistry
from ...protocols.problem_report.message import ProblemReport
from ...transport.inbound.message import InboundMessage
from ...transport.inbound.receipt import MessageReceipt
from ...transport.outbound.message import OutboundMessage

from .. import dispatcher as test_module


def make_context() -> InjectionContext:
context = InjectionContext()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from asynctest import TestCase as AsyncTestCase, mock as async_mock

from ...config.injection_context import InjectionContext
from ...messaging.error import MessageParseError

from ..error import MessageParseError
from ..protocol_registry import ProtocolRegistry


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Handler for incoming query messages."""

from ....core.protocol_registry import ProtocolRegistry
from ....messaging.base_handler import BaseHandler, BaseResponder, RequestContext
from ....messaging.protocol_registry import ProtocolRegistry

from ..messages.disclose import Disclose
from ..messages.query import Query
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pytest

from .....core.protocol_registry import ProtocolRegistry
from .....messaging.base_handler import HandlerException
from .....messaging.protocol_registry import ProtocolRegistry
from .....messaging.request_context import RequestContext
from .....messaging.responder import MockResponder

Expand Down
2 changes: 1 addition & 1 deletion aries_cloudagent/protocols/discovery/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from marshmallow import fields, Schema

from ...messaging.protocol_registry import ProtocolRegistry
from ...core.protocol_registry import ProtocolRegistry


class QueryResultSchema(Schema):
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudagent/transport/inbound/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from typing import Callable, Coroutine

from ...config.injection_context import InjectionContext
from ...messaging.task_queue import CompletedTask, TaskQueue
from ...utils.classloader import ClassLoader, ModuleLoadError, ClassNotFoundError
from ...utils.task_queue import CompletedTask, TaskQueue

from ..outbound.message import OutboundMessage
from ..wire_format import BaseWireFormat
Expand Down
2 changes: 1 addition & 1 deletion aries_cloudagent/transport/outbound/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

from ...connections.models.connection_target import ConnectionTarget
from ...config.injection_context import InjectionContext
from ...messaging.task_queue import CompletedTask, TaskQueue, task_exc_info
from ...utils.classloader import ClassLoader, ModuleLoadError, ClassNotFoundError
from ...utils.stats import Collector
from ...utils.task_queue import CompletedTask, TaskQueue, task_exc_info

from ..wire_format import BaseWireFormat

Expand Down
2 changes: 1 addition & 1 deletion aries_cloudagent/transport/pack_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from ..config.base import InjectorError
from ..config.injection_context import InjectionContext
from ..protocols.routing.messages.forward import Forward
from ..messaging.task_queue import TaskQueue
from ..messaging.util import time_now
from ..utils.task_queue import TaskQueue
from ..wallet.base import BaseWallet
from ..wallet.error import WalletError

Expand Down
File renamed without changes.

0 comments on commit 25dc621

Please sign in to comment.