Skip to content
Snippets Groups Projects
Commit c25a3b35 authored by Nathaniel Manista's avatar Nathaniel Manista
Browse files

Python source reorganization.

A top-level "grpc" package is added and RPC Framework
is made public.
parent e1b97b60
No related branches found
No related tags found
No related merge requests found
Showing
with 33 additions and 33 deletions
......@@ -29,7 +29,7 @@
"""Implementations of interoperability test methods."""
from grpc_early_adopter import utilities
from grpc.early_adopter import utilities
from interop import empty_pb2
from interop import messages_pb2
......
......@@ -34,7 +34,7 @@ import logging
import pkg_resources
import time
from grpc_early_adopter import implementations
from grpc.early_adopter import implementations
from interop import methods
......
File moved
......@@ -2,8 +2,8 @@
import unittest
from _adapter import _face_test_case
from _framework.face.testing import blocking_invocation_inline_service_test_case as test_case
from grpc._adapter import _face_test_case
from grpc.framework.face.testing import blocking_invocation_inline_service_test_case as test_case
class BlockingInvocationInlineServiceTest(
......
......@@ -34,11 +34,11 @@
#include <Python.h>
#include <grpc/grpc.h>
#include "_adapter/_completion_queue.h"
#include "_adapter/_channel.h"
#include "_adapter/_call.h"
#include "_adapter/_server.h"
#include "_adapter/_server_credentials.h"
#include "grpc/_adapter/_completion_queue.h"
#include "grpc/_adapter/_channel.h"
#include "grpc/_adapter/_call.h"
#include "grpc/_adapter/_server.h"
#include "grpc/_adapter/_server_credentials.h"
static PyObject *init(PyObject *self, PyObject *args) {
grpc_init();
......
......@@ -33,8 +33,8 @@ import threading
import time
import unittest
from _adapter import _c
from _adapter import _datatypes
from grpc._adapter import _c
from grpc._adapter import _datatypes
_TIMEOUT = 3
_FUTURE = time.time() + 60 * 60 * 24
......
......@@ -31,15 +31,15 @@
*
*/
#include "_adapter/_call.h"
#include "grpc/_adapter/_call.h"
#include <math.h>
#include <Python.h>
#include <grpc/grpc.h>
#include "_adapter/_channel.h"
#include "_adapter/_completion_queue.h"
#include "_adapter/_error.h"
#include "grpc/_adapter/_channel.h"
#include "grpc/_adapter/_completion_queue.h"
#include "grpc/_adapter/_error.h"
static int pygrpc_call_init(Call *self, PyObject *args, PyObject *kwds) {
const PyObject *channel;
......
......@@ -31,7 +31,7 @@
*
*/
#include "_adapter/_channel.h"
#include "grpc/_adapter/_channel.h"
#include <Python.h>
#include <grpc/grpc.h>
......
......@@ -31,13 +31,13 @@
*
*/
#include "_adapter/_completion_queue.h"
#include "grpc/_adapter/_completion_queue.h"
#include <Python.h>
#include <grpc/grpc.h>
#include <grpc/support/alloc.h>
#include "_adapter/_call.h"
#include "grpc/_adapter/_call.h"
static PyObject *status_class;
static PyObject *service_acceptance_class;
......@@ -500,7 +500,7 @@ static int pygrpc_get_event_kinds(PyObject *event_class) {
}
int pygrpc_add_completion_queue(PyObject *module) {
char *datatypes_module_path = "_adapter._datatypes";
char *datatypes_module_path = "grpc._adapter._datatypes";
PyObject *datatypes_module = PyImport_ImportModule(datatypes_module_path);
if (datatypes_module == NULL) {
PyErr_SetString(PyExc_ImportError, datatypes_module_path);
......
......@@ -31,7 +31,7 @@
*
*/
#include "_adapter/_error.h"
#include "grpc/_adapter/_error.h"
#include <Python.h>
#include <grpc/grpc.h>
......
......@@ -31,8 +31,8 @@
import unittest
from _adapter import _face_test_case
from _framework.face.testing import event_invocation_synchronous_event_service_test_case as test_case
from grpc._adapter import _face_test_case
from grpc.framework.face.testing import event_invocation_synchronous_event_service_test_case as test_case
class EventInvocationSynchronousEventServiceTest(
......
......@@ -31,15 +31,15 @@
import unittest
from _adapter import fore
from _adapter import rear
from _framework.base import util
from _framework.base.packets import implementations as tickets_implementations
from _framework.face import implementations as face_implementations
from _framework.face.testing import coverage
from _framework.face.testing import serial
from _framework.face.testing import test_case
from _framework.foundation import logging_pool
from grpc._adapter import fore
from grpc._adapter import rear
from grpc.framework.base import util
from grpc.framework.base.packets import implementations as tickets_implementations
from grpc.framework.face import implementations as face_implementations
from grpc.framework.face.testing import coverage
from grpc.framework.face.testing import serial
from grpc.framework.face.testing import test_case
from grpc.framework.foundation import logging_pool
_TIMEOUT = 3
_MAXIMUM_TIMEOUT = 90
......
......@@ -31,8 +31,8 @@
import unittest
from _adapter import _face_test_case
from _framework.face.testing import future_invocation_asynchronous_event_service_test_case as test_case
from grpc._adapter import _face_test_case
from grpc.framework.face.testing import future_invocation_asynchronous_event_service_test_case as test_case
class FutureInvocationAsynchronousEventServiceTest(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment