diff --git a/src/python/src/.gitignore b/src/python/grpcio/.gitignore similarity index 100% rename from src/python/src/.gitignore rename to src/python/grpcio/.gitignore diff --git a/src/python/src/MANIFEST.in b/src/python/grpcio/MANIFEST.in similarity index 100% rename from src/python/src/MANIFEST.in rename to src/python/grpcio/MANIFEST.in diff --git a/src/python/src/README.rst b/src/python/grpcio/README.rst similarity index 100% rename from src/python/src/README.rst rename to src/python/grpcio/README.rst diff --git a/src/python/src/commands.py b/src/python/grpcio/commands.py similarity index 99% rename from src/python/src/commands.py rename to src/python/grpcio/commands.py index 8e8785501149b380334b3677da6d593132a4ad1e..605d9d5612007550a9f4f920d5ff14e1a7f7b691 100644 --- a/src/python/src/commands.py +++ b/src/python/grpcio/commands.py @@ -43,6 +43,7 @@ napoleon_numpy_docstring = True html_theme = 'sphinx_rtd_theme' """ + class SphinxDocumentation(setuptools.Command): """Command to generate documentation via sphinx.""" diff --git a/src/python/interop/interop/__init__.py b/src/python/grpcio/grpc/__init__.py similarity index 100% rename from src/python/interop/interop/__init__.py rename to src/python/grpcio/grpc/__init__.py diff --git a/src/python/src/grpc/_adapter/.gitignore b/src/python/grpcio/grpc/_adapter/.gitignore similarity index 100% rename from src/python/src/grpc/_adapter/.gitignore rename to src/python/grpcio/grpc/_adapter/.gitignore diff --git a/src/python/src/grpc/__init__.py b/src/python/grpcio/grpc/_adapter/__init__.py similarity index 100% rename from src/python/src/grpc/__init__.py rename to src/python/grpcio/grpc/_adapter/__init__.py diff --git a/src/python/src/grpc/_adapter/_blocking_invocation_inline_service_test.py b/src/python/grpcio/grpc/_adapter/_blocking_invocation_inline_service_test.py similarity index 100% rename from src/python/src/grpc/_adapter/_blocking_invocation_inline_service_test.py rename to src/python/grpcio/grpc/_adapter/_blocking_invocation_inline_service_test.py diff --git a/src/python/src/grpc/_adapter/_c/module.c b/src/python/grpcio/grpc/_adapter/_c/module.c similarity index 100% rename from src/python/src/grpc/_adapter/_c/module.c rename to src/python/grpcio/grpc/_adapter/_c/module.c diff --git a/src/python/src/grpc/_adapter/_c/types.c b/src/python/grpcio/grpc/_adapter/_c/types.c similarity index 100% rename from src/python/src/grpc/_adapter/_c/types.c rename to src/python/grpcio/grpc/_adapter/_c/types.c diff --git a/src/python/src/grpc/_adapter/_c/types.h b/src/python/grpcio/grpc/_adapter/_c/types.h similarity index 100% rename from src/python/src/grpc/_adapter/_c/types.h rename to src/python/grpcio/grpc/_adapter/_c/types.h diff --git a/src/python/src/grpc/_adapter/_c/types/call.c b/src/python/grpcio/grpc/_adapter/_c/types/call.c similarity index 100% rename from src/python/src/grpc/_adapter/_c/types/call.c rename to src/python/grpcio/grpc/_adapter/_c/types/call.c diff --git a/src/python/src/grpc/_adapter/_c/types/channel.c b/src/python/grpcio/grpc/_adapter/_c/types/channel.c similarity index 100% rename from src/python/src/grpc/_adapter/_c/types/channel.c rename to src/python/grpcio/grpc/_adapter/_c/types/channel.c diff --git a/src/python/src/grpc/_adapter/_c/types/client_credentials.c b/src/python/grpcio/grpc/_adapter/_c/types/client_credentials.c similarity index 100% rename from src/python/src/grpc/_adapter/_c/types/client_credentials.c rename to src/python/grpcio/grpc/_adapter/_c/types/client_credentials.c diff --git a/src/python/src/grpc/_adapter/_c/types/completion_queue.c b/src/python/grpcio/grpc/_adapter/_c/types/completion_queue.c similarity index 100% rename from src/python/src/grpc/_adapter/_c/types/completion_queue.c rename to src/python/grpcio/grpc/_adapter/_c/types/completion_queue.c diff --git a/src/python/src/grpc/_adapter/_c/types/server.c b/src/python/grpcio/grpc/_adapter/_c/types/server.c similarity index 100% rename from src/python/src/grpc/_adapter/_c/types/server.c rename to src/python/grpcio/grpc/_adapter/_c/types/server.c diff --git a/src/python/src/grpc/_adapter/_c/types/server_credentials.c b/src/python/grpcio/grpc/_adapter/_c/types/server_credentials.c similarity index 100% rename from src/python/src/grpc/_adapter/_c/types/server_credentials.c rename to src/python/grpcio/grpc/_adapter/_c/types/server_credentials.c diff --git a/src/python/src/grpc/_adapter/_c/utility.c b/src/python/grpcio/grpc/_adapter/_c/utility.c similarity index 100% rename from src/python/src/grpc/_adapter/_c/utility.c rename to src/python/grpcio/grpc/_adapter/_c/utility.c diff --git a/src/python/src/grpc/_adapter/_c_test.py b/src/python/grpcio/grpc/_adapter/_c_test.py similarity index 100% rename from src/python/src/grpc/_adapter/_c_test.py rename to src/python/grpcio/grpc/_adapter/_c_test.py diff --git a/src/python/src/grpc/_adapter/_common.py b/src/python/grpcio/grpc/_adapter/_common.py similarity index 100% rename from src/python/src/grpc/_adapter/_common.py rename to src/python/grpcio/grpc/_adapter/_common.py diff --git a/src/python/src/grpc/_adapter/_event_invocation_synchronous_event_service_test.py b/src/python/grpcio/grpc/_adapter/_event_invocation_synchronous_event_service_test.py similarity index 100% rename from src/python/src/grpc/_adapter/_event_invocation_synchronous_event_service_test.py rename to src/python/grpcio/grpc/_adapter/_event_invocation_synchronous_event_service_test.py diff --git a/src/python/src/grpc/_adapter/_face_test_case.py b/src/python/grpcio/grpc/_adapter/_face_test_case.py similarity index 100% rename from src/python/src/grpc/_adapter/_face_test_case.py rename to src/python/grpcio/grpc/_adapter/_face_test_case.py diff --git a/src/python/src/grpc/_adapter/_future_invocation_asynchronous_event_service_test.py b/src/python/grpcio/grpc/_adapter/_future_invocation_asynchronous_event_service_test.py similarity index 100% rename from src/python/src/grpc/_adapter/_future_invocation_asynchronous_event_service_test.py rename to src/python/grpcio/grpc/_adapter/_future_invocation_asynchronous_event_service_test.py diff --git a/src/python/src/grpc/_adapter/_intermediary_low.py b/src/python/grpcio/grpc/_adapter/_intermediary_low.py similarity index 100% rename from src/python/src/grpc/_adapter/_intermediary_low.py rename to src/python/grpcio/grpc/_adapter/_intermediary_low.py diff --git a/src/python/src/grpc/_adapter/_intermediary_low_test.py b/src/python/grpcio/grpc/_adapter/_intermediary_low_test.py similarity index 100% rename from src/python/src/grpc/_adapter/_intermediary_low_test.py rename to src/python/grpcio/grpc/_adapter/_intermediary_low_test.py diff --git a/src/python/src/grpc/_adapter/_links_test.py b/src/python/grpcio/grpc/_adapter/_links_test.py similarity index 100% rename from src/python/src/grpc/_adapter/_links_test.py rename to src/python/grpcio/grpc/_adapter/_links_test.py diff --git a/src/python/src/grpc/_adapter/_lonely_rear_link_test.py b/src/python/grpcio/grpc/_adapter/_lonely_rear_link_test.py similarity index 100% rename from src/python/src/grpc/_adapter/_lonely_rear_link_test.py rename to src/python/grpcio/grpc/_adapter/_lonely_rear_link_test.py diff --git a/src/python/src/grpc/_adapter/_low.py b/src/python/grpcio/grpc/_adapter/_low.py similarity index 100% rename from src/python/src/grpc/_adapter/_low.py rename to src/python/grpcio/grpc/_adapter/_low.py diff --git a/src/python/src/grpc/_adapter/_low_test.py b/src/python/grpcio/grpc/_adapter/_low_test.py similarity index 100% rename from src/python/src/grpc/_adapter/_low_test.py rename to src/python/grpcio/grpc/_adapter/_low_test.py diff --git a/src/python/src/grpc/_adapter/_proto_scenarios.py b/src/python/grpcio/grpc/_adapter/_proto_scenarios.py similarity index 100% rename from src/python/src/grpc/_adapter/_proto_scenarios.py rename to src/python/grpcio/grpc/_adapter/_proto_scenarios.py diff --git a/src/python/src/grpc/_adapter/_test_links.py b/src/python/grpcio/grpc/_adapter/_test_links.py similarity index 100% rename from src/python/src/grpc/_adapter/_test_links.py rename to src/python/grpcio/grpc/_adapter/_test_links.py diff --git a/src/python/src/grpc/_adapter/_types.py b/src/python/grpcio/grpc/_adapter/_types.py similarity index 100% rename from src/python/src/grpc/_adapter/_types.py rename to src/python/grpcio/grpc/_adapter/_types.py diff --git a/src/python/src/grpc/_adapter/fore.py b/src/python/grpcio/grpc/_adapter/fore.py similarity index 100% rename from src/python/src/grpc/_adapter/fore.py rename to src/python/grpcio/grpc/_adapter/fore.py diff --git a/src/python/src/grpc/_adapter/rear.py b/src/python/grpcio/grpc/_adapter/rear.py similarity index 100% rename from src/python/src/grpc/_adapter/rear.py rename to src/python/grpcio/grpc/_adapter/rear.py diff --git a/src/python/src/grpc/_cython/.gitignore b/src/python/grpcio/grpc/_cython/.gitignore similarity index 100% rename from src/python/src/grpc/_cython/.gitignore rename to src/python/grpcio/grpc/_cython/.gitignore diff --git a/src/python/src/grpc/_cython/README.rst b/src/python/grpcio/grpc/_cython/README.rst similarity index 100% rename from src/python/src/grpc/_cython/README.rst rename to src/python/grpcio/grpc/_cython/README.rst diff --git a/src/python/src/grpc/_cython/__init__.py b/src/python/grpcio/grpc/_cython/__init__.py similarity index 100% rename from src/python/src/grpc/_cython/__init__.py rename to src/python/grpcio/grpc/_cython/__init__.py diff --git a/src/python/src/grpc/_cython/_cygrpc/__init__.py b/src/python/grpcio/grpc/_cython/_cygrpc/__init__.py similarity index 100% rename from src/python/src/grpc/_cython/_cygrpc/__init__.py rename to src/python/grpcio/grpc/_cython/_cygrpc/__init__.py diff --git a/src/python/src/grpc/_cython/_cygrpc/call.pxd b/src/python/grpcio/grpc/_cython/_cygrpc/call.pxd similarity index 100% rename from src/python/src/grpc/_cython/_cygrpc/call.pxd rename to src/python/grpcio/grpc/_cython/_cygrpc/call.pxd diff --git a/src/python/src/grpc/_cython/_cygrpc/call.pyx b/src/python/grpcio/grpc/_cython/_cygrpc/call.pyx similarity index 100% rename from src/python/src/grpc/_cython/_cygrpc/call.pyx rename to src/python/grpcio/grpc/_cython/_cygrpc/call.pyx diff --git a/src/python/src/grpc/_cython/_cygrpc/channel.pxd b/src/python/grpcio/grpc/_cython/_cygrpc/channel.pxd similarity index 100% rename from src/python/src/grpc/_cython/_cygrpc/channel.pxd rename to src/python/grpcio/grpc/_cython/_cygrpc/channel.pxd diff --git a/src/python/src/grpc/_cython/_cygrpc/channel.pyx b/src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx similarity index 100% rename from src/python/src/grpc/_cython/_cygrpc/channel.pyx rename to src/python/grpcio/grpc/_cython/_cygrpc/channel.pyx diff --git a/src/python/src/grpc/_cython/_cygrpc/completion_queue.pxd b/src/python/grpcio/grpc/_cython/_cygrpc/completion_queue.pxd similarity index 100% rename from src/python/src/grpc/_cython/_cygrpc/completion_queue.pxd rename to src/python/grpcio/grpc/_cython/_cygrpc/completion_queue.pxd diff --git a/src/python/src/grpc/_cython/_cygrpc/completion_queue.pyx b/src/python/grpcio/grpc/_cython/_cygrpc/completion_queue.pyx similarity index 100% rename from src/python/src/grpc/_cython/_cygrpc/completion_queue.pyx rename to src/python/grpcio/grpc/_cython/_cygrpc/completion_queue.pyx diff --git a/src/python/src/grpc/_cython/_cygrpc/credentials.pxd b/src/python/grpcio/grpc/_cython/_cygrpc/credentials.pxd similarity index 100% rename from src/python/src/grpc/_cython/_cygrpc/credentials.pxd rename to src/python/grpcio/grpc/_cython/_cygrpc/credentials.pxd diff --git a/src/python/src/grpc/_cython/_cygrpc/credentials.pyx b/src/python/grpcio/grpc/_cython/_cygrpc/credentials.pyx similarity index 100% rename from src/python/src/grpc/_cython/_cygrpc/credentials.pyx rename to src/python/grpcio/grpc/_cython/_cygrpc/credentials.pyx diff --git a/src/python/src/grpc/_cython/_cygrpc/grpc.pxd b/src/python/grpcio/grpc/_cython/_cygrpc/grpc.pxd similarity index 100% rename from src/python/src/grpc/_cython/_cygrpc/grpc.pxd rename to src/python/grpcio/grpc/_cython/_cygrpc/grpc.pxd diff --git a/src/python/src/grpc/_cython/_cygrpc/records.pxd b/src/python/grpcio/grpc/_cython/_cygrpc/records.pxd similarity index 100% rename from src/python/src/grpc/_cython/_cygrpc/records.pxd rename to src/python/grpcio/grpc/_cython/_cygrpc/records.pxd diff --git a/src/python/src/grpc/_cython/_cygrpc/records.pyx b/src/python/grpcio/grpc/_cython/_cygrpc/records.pyx similarity index 100% rename from src/python/src/grpc/_cython/_cygrpc/records.pyx rename to src/python/grpcio/grpc/_cython/_cygrpc/records.pyx diff --git a/src/python/src/grpc/_cython/_cygrpc/server.pxd b/src/python/grpcio/grpc/_cython/_cygrpc/server.pxd similarity index 100% rename from src/python/src/grpc/_cython/_cygrpc/server.pxd rename to src/python/grpcio/grpc/_cython/_cygrpc/server.pxd diff --git a/src/python/src/grpc/_cython/_cygrpc/server.pyx b/src/python/grpcio/grpc/_cython/_cygrpc/server.pyx similarity index 100% rename from src/python/src/grpc/_cython/_cygrpc/server.pyx rename to src/python/grpcio/grpc/_cython/_cygrpc/server.pyx diff --git a/src/python/src/grpc/_cython/adapter_low.py b/src/python/grpcio/grpc/_cython/adapter_low.py similarity index 100% rename from src/python/src/grpc/_cython/adapter_low.py rename to src/python/grpcio/grpc/_cython/adapter_low.py diff --git a/src/python/src/grpc/_cython/adapter_low_test.py b/src/python/grpcio/grpc/_cython/adapter_low_test.py similarity index 100% rename from src/python/src/grpc/_cython/adapter_low_test.py rename to src/python/grpcio/grpc/_cython/adapter_low_test.py diff --git a/src/python/src/grpc/_cython/cygrpc.pyx b/src/python/grpcio/grpc/_cython/cygrpc.pyx similarity index 100% rename from src/python/src/grpc/_cython/cygrpc.pyx rename to src/python/grpcio/grpc/_cython/cygrpc.pyx diff --git a/src/python/src/grpc/_cython/cygrpc_test.py b/src/python/grpcio/grpc/_cython/cygrpc_test.py similarity index 100% rename from src/python/src/grpc/_cython/cygrpc_test.py rename to src/python/grpcio/grpc/_cython/cygrpc_test.py diff --git a/src/python/src/grpc/_cython/test_utilities.py b/src/python/grpcio/grpc/_cython/test_utilities.py similarity index 100% rename from src/python/src/grpc/_cython/test_utilities.py rename to src/python/grpcio/grpc/_cython/test_utilities.py diff --git a/src/python/src/grpc/_adapter/__init__.py b/src/python/grpcio/grpc/_junkdrawer/__init__.py similarity index 100% rename from src/python/src/grpc/_adapter/__init__.py rename to src/python/grpcio/grpc/_junkdrawer/__init__.py diff --git a/src/python/src/grpc/_junkdrawer/math_pb2.py b/src/python/grpcio/grpc/_junkdrawer/math_pb2.py similarity index 100% rename from src/python/src/grpc/_junkdrawer/math_pb2.py rename to src/python/grpcio/grpc/_junkdrawer/math_pb2.py diff --git a/src/python/src/grpc/_junkdrawer/stock_pb2.py b/src/python/grpcio/grpc/_junkdrawer/stock_pb2.py similarity index 100% rename from src/python/src/grpc/_junkdrawer/stock_pb2.py rename to src/python/grpcio/grpc/_junkdrawer/stock_pb2.py diff --git a/src/python/src/grpc/_junkdrawer/__init__.py b/src/python/grpcio/grpc/_links/__init__.py similarity index 100% rename from src/python/src/grpc/_junkdrawer/__init__.py rename to src/python/grpcio/grpc/_links/__init__.py diff --git a/src/python/src/grpc/_links/_lonely_invocation_link_test.py b/src/python/grpcio/grpc/_links/_lonely_invocation_link_test.py similarity index 100% rename from src/python/src/grpc/_links/_lonely_invocation_link_test.py rename to src/python/grpcio/grpc/_links/_lonely_invocation_link_test.py diff --git a/src/python/src/grpc/_links/_proto_scenarios.py b/src/python/grpcio/grpc/_links/_proto_scenarios.py similarity index 100% rename from src/python/src/grpc/_links/_proto_scenarios.py rename to src/python/grpcio/grpc/_links/_proto_scenarios.py diff --git a/src/python/src/grpc/_links/_transmission_test.py b/src/python/grpcio/grpc/_links/_transmission_test.py similarity index 100% rename from src/python/src/grpc/_links/_transmission_test.py rename to src/python/grpcio/grpc/_links/_transmission_test.py diff --git a/src/python/src/grpc/_links/invocation.py b/src/python/grpcio/grpc/_links/invocation.py similarity index 100% rename from src/python/src/grpc/_links/invocation.py rename to src/python/grpcio/grpc/_links/invocation.py diff --git a/src/python/src/grpc/_links/service.py b/src/python/grpcio/grpc/_links/service.py similarity index 100% rename from src/python/src/grpc/_links/service.py rename to src/python/grpcio/grpc/_links/service.py diff --git a/src/python/src/grpc/_links/__init__.py b/src/python/grpcio/grpc/early_adopter/__init__.py similarity index 100% rename from src/python/src/grpc/_links/__init__.py rename to src/python/grpcio/grpc/early_adopter/__init__.py diff --git a/src/python/src/grpc/early_adopter/implementations.py b/src/python/grpcio/grpc/early_adopter/implementations.py similarity index 100% rename from src/python/src/grpc/early_adopter/implementations.py rename to src/python/grpcio/grpc/early_adopter/implementations.py diff --git a/src/python/src/grpc/early_adopter/implementations_test.py b/src/python/grpcio/grpc/early_adopter/implementations_test.py similarity index 100% rename from src/python/src/grpc/early_adopter/implementations_test.py rename to src/python/grpcio/grpc/early_adopter/implementations_test.py diff --git a/src/python/src/grpc/early_adopter/__init__.py b/src/python/grpcio/grpc/framework/__init__.py similarity index 100% rename from src/python/src/grpc/early_adopter/__init__.py rename to src/python/grpcio/grpc/framework/__init__.py diff --git a/src/python/src/grpc/framework/alpha/__init__.py b/src/python/grpcio/grpc/framework/alpha/__init__.py similarity index 100% rename from src/python/src/grpc/framework/alpha/__init__.py rename to src/python/grpcio/grpc/framework/alpha/__init__.py diff --git a/src/python/src/grpc/framework/alpha/_face_utilities.py b/src/python/grpcio/grpc/framework/alpha/_face_utilities.py similarity index 100% rename from src/python/src/grpc/framework/alpha/_face_utilities.py rename to src/python/grpcio/grpc/framework/alpha/_face_utilities.py diff --git a/src/python/src/grpc/framework/alpha/_reexport.py b/src/python/grpcio/grpc/framework/alpha/_reexport.py similarity index 100% rename from src/python/src/grpc/framework/alpha/_reexport.py rename to src/python/grpcio/grpc/framework/alpha/_reexport.py diff --git a/src/python/src/grpc/framework/alpha/exceptions.py b/src/python/grpcio/grpc/framework/alpha/exceptions.py similarity index 100% rename from src/python/src/grpc/framework/alpha/exceptions.py rename to src/python/grpcio/grpc/framework/alpha/exceptions.py diff --git a/src/python/src/grpc/framework/alpha/interfaces.py b/src/python/grpcio/grpc/framework/alpha/interfaces.py similarity index 100% rename from src/python/src/grpc/framework/alpha/interfaces.py rename to src/python/grpcio/grpc/framework/alpha/interfaces.py diff --git a/src/python/src/grpc/framework/alpha/utilities.py b/src/python/grpcio/grpc/framework/alpha/utilities.py similarity index 100% rename from src/python/src/grpc/framework/alpha/utilities.py rename to src/python/grpcio/grpc/framework/alpha/utilities.py diff --git a/src/python/src/grpc/framework/__init__.py b/src/python/grpcio/grpc/framework/base/__init__.py similarity index 100% rename from src/python/src/grpc/framework/__init__.py rename to src/python/grpcio/grpc/framework/base/__init__.py diff --git a/src/python/src/grpc/framework/base/_cancellation.py b/src/python/grpcio/grpc/framework/base/_cancellation.py similarity index 100% rename from src/python/src/grpc/framework/base/_cancellation.py rename to src/python/grpcio/grpc/framework/base/_cancellation.py diff --git a/src/python/src/grpc/framework/base/_constants.py b/src/python/grpcio/grpc/framework/base/_constants.py similarity index 100% rename from src/python/src/grpc/framework/base/_constants.py rename to src/python/grpcio/grpc/framework/base/_constants.py diff --git a/src/python/src/grpc/framework/base/_context.py b/src/python/grpcio/grpc/framework/base/_context.py similarity index 100% rename from src/python/src/grpc/framework/base/_context.py rename to src/python/grpcio/grpc/framework/base/_context.py diff --git a/src/python/src/grpc/framework/base/_emission.py b/src/python/grpcio/grpc/framework/base/_emission.py similarity index 100% rename from src/python/src/grpc/framework/base/_emission.py rename to src/python/grpcio/grpc/framework/base/_emission.py diff --git a/src/python/src/grpc/framework/base/_ends.py b/src/python/grpcio/grpc/framework/base/_ends.py similarity index 100% rename from src/python/src/grpc/framework/base/_ends.py rename to src/python/grpcio/grpc/framework/base/_ends.py diff --git a/src/python/src/grpc/framework/base/_expiration.py b/src/python/grpcio/grpc/framework/base/_expiration.py similarity index 100% rename from src/python/src/grpc/framework/base/_expiration.py rename to src/python/grpcio/grpc/framework/base/_expiration.py diff --git a/src/python/src/grpc/framework/base/_ingestion.py b/src/python/grpcio/grpc/framework/base/_ingestion.py similarity index 100% rename from src/python/src/grpc/framework/base/_ingestion.py rename to src/python/grpcio/grpc/framework/base/_ingestion.py diff --git a/src/python/src/grpc/framework/base/_interfaces.py b/src/python/grpcio/grpc/framework/base/_interfaces.py similarity index 100% rename from src/python/src/grpc/framework/base/_interfaces.py rename to src/python/grpcio/grpc/framework/base/_interfaces.py diff --git a/src/python/src/grpc/framework/base/_reception.py b/src/python/grpcio/grpc/framework/base/_reception.py similarity index 100% rename from src/python/src/grpc/framework/base/_reception.py rename to src/python/grpcio/grpc/framework/base/_reception.py diff --git a/src/python/src/grpc/framework/base/_termination.py b/src/python/grpcio/grpc/framework/base/_termination.py similarity index 100% rename from src/python/src/grpc/framework/base/_termination.py rename to src/python/grpcio/grpc/framework/base/_termination.py diff --git a/src/python/src/grpc/framework/base/_transmission.py b/src/python/grpcio/grpc/framework/base/_transmission.py similarity index 100% rename from src/python/src/grpc/framework/base/_transmission.py rename to src/python/grpcio/grpc/framework/base/_transmission.py diff --git a/src/python/src/grpc/framework/base/exceptions.py b/src/python/grpcio/grpc/framework/base/exceptions.py similarity index 100% rename from src/python/src/grpc/framework/base/exceptions.py rename to src/python/grpcio/grpc/framework/base/exceptions.py diff --git a/src/python/src/grpc/framework/base/implementations.py b/src/python/grpcio/grpc/framework/base/implementations.py similarity index 100% rename from src/python/src/grpc/framework/base/implementations.py rename to src/python/grpcio/grpc/framework/base/implementations.py diff --git a/src/python/src/grpc/framework/base/implementations_test.py b/src/python/grpcio/grpc/framework/base/implementations_test.py similarity index 100% rename from src/python/src/grpc/framework/base/implementations_test.py rename to src/python/grpcio/grpc/framework/base/implementations_test.py diff --git a/src/python/src/grpc/framework/base/in_memory.py b/src/python/grpcio/grpc/framework/base/in_memory.py similarity index 100% rename from src/python/src/grpc/framework/base/in_memory.py rename to src/python/grpcio/grpc/framework/base/in_memory.py diff --git a/src/python/src/grpc/framework/base/interfaces.py b/src/python/grpcio/grpc/framework/base/interfaces.py similarity index 100% rename from src/python/src/grpc/framework/base/interfaces.py rename to src/python/grpcio/grpc/framework/base/interfaces.py diff --git a/src/python/src/grpc/framework/base/interfaces_test_case.py b/src/python/grpcio/grpc/framework/base/interfaces_test_case.py similarity index 100% rename from src/python/src/grpc/framework/base/interfaces_test_case.py rename to src/python/grpcio/grpc/framework/base/interfaces_test_case.py diff --git a/src/python/src/grpc/framework/base/null.py b/src/python/grpcio/grpc/framework/base/null.py similarity index 100% rename from src/python/src/grpc/framework/base/null.py rename to src/python/grpcio/grpc/framework/base/null.py diff --git a/src/python/src/grpc/framework/base/util.py b/src/python/grpcio/grpc/framework/base/util.py similarity index 100% rename from src/python/src/grpc/framework/base/util.py rename to src/python/grpcio/grpc/framework/base/util.py diff --git a/src/python/src/grpc/framework/base/__init__.py b/src/python/grpcio/grpc/framework/common/__init__.py similarity index 100% rename from src/python/src/grpc/framework/base/__init__.py rename to src/python/grpcio/grpc/framework/common/__init__.py diff --git a/src/python/src/grpc/framework/common/cardinality.py b/src/python/grpcio/grpc/framework/common/cardinality.py similarity index 100% rename from src/python/src/grpc/framework/common/cardinality.py rename to src/python/grpcio/grpc/framework/common/cardinality.py diff --git a/src/python/src/grpc/framework/common/style.py b/src/python/grpcio/grpc/framework/common/style.py similarity index 100% rename from src/python/src/grpc/framework/common/style.py rename to src/python/grpcio/grpc/framework/common/style.py diff --git a/src/python/src/grpc/framework/common/test_constants.py b/src/python/grpcio/grpc/framework/common/test_constants.py similarity index 100% rename from src/python/src/grpc/framework/common/test_constants.py rename to src/python/grpcio/grpc/framework/common/test_constants.py diff --git a/src/python/src/grpc/framework/common/test_control.py b/src/python/grpcio/grpc/framework/common/test_control.py similarity index 100% rename from src/python/src/grpc/framework/common/test_control.py rename to src/python/grpcio/grpc/framework/common/test_control.py diff --git a/src/python/src/grpc/framework/common/test_coverage.py b/src/python/grpcio/grpc/framework/common/test_coverage.py similarity index 100% rename from src/python/src/grpc/framework/common/test_coverage.py rename to src/python/grpcio/grpc/framework/common/test_coverage.py diff --git a/src/python/src/grpc/framework/common/__init__.py b/src/python/grpcio/grpc/framework/face/__init__.py similarity index 100% rename from src/python/src/grpc/framework/common/__init__.py rename to src/python/grpcio/grpc/framework/face/__init__.py diff --git a/src/python/src/grpc/framework/face/_calls.py b/src/python/grpcio/grpc/framework/face/_calls.py similarity index 100% rename from src/python/src/grpc/framework/face/_calls.py rename to src/python/grpcio/grpc/framework/face/_calls.py diff --git a/src/python/src/grpc/framework/face/_control.py b/src/python/grpcio/grpc/framework/face/_control.py similarity index 100% rename from src/python/src/grpc/framework/face/_control.py rename to src/python/grpcio/grpc/framework/face/_control.py diff --git a/src/python/src/grpc/framework/face/_service.py b/src/python/grpcio/grpc/framework/face/_service.py similarity index 100% rename from src/python/src/grpc/framework/face/_service.py rename to src/python/grpcio/grpc/framework/face/_service.py diff --git a/src/python/src/grpc/framework/face/_test_case.py b/src/python/grpcio/grpc/framework/face/_test_case.py similarity index 100% rename from src/python/src/grpc/framework/face/_test_case.py rename to src/python/grpcio/grpc/framework/face/_test_case.py diff --git a/src/python/src/grpc/framework/face/blocking_invocation_inline_service_test.py b/src/python/grpcio/grpc/framework/face/blocking_invocation_inline_service_test.py similarity index 100% rename from src/python/src/grpc/framework/face/blocking_invocation_inline_service_test.py rename to src/python/grpcio/grpc/framework/face/blocking_invocation_inline_service_test.py diff --git a/src/python/src/grpc/framework/face/demonstration.py b/src/python/grpcio/grpc/framework/face/demonstration.py similarity index 100% rename from src/python/src/grpc/framework/face/demonstration.py rename to src/python/grpcio/grpc/framework/face/demonstration.py diff --git a/src/python/src/grpc/framework/face/event_invocation_synchronous_event_service_test.py b/src/python/grpcio/grpc/framework/face/event_invocation_synchronous_event_service_test.py similarity index 100% rename from src/python/src/grpc/framework/face/event_invocation_synchronous_event_service_test.py rename to src/python/grpcio/grpc/framework/face/event_invocation_synchronous_event_service_test.py diff --git a/src/python/src/grpc/framework/face/exceptions.py b/src/python/grpcio/grpc/framework/face/exceptions.py similarity index 100% rename from src/python/src/grpc/framework/face/exceptions.py rename to src/python/grpcio/grpc/framework/face/exceptions.py diff --git a/src/python/src/grpc/framework/face/future_invocation_asynchronous_event_service_test.py b/src/python/grpcio/grpc/framework/face/future_invocation_asynchronous_event_service_test.py similarity index 100% rename from src/python/src/grpc/framework/face/future_invocation_asynchronous_event_service_test.py rename to src/python/grpcio/grpc/framework/face/future_invocation_asynchronous_event_service_test.py diff --git a/src/python/src/grpc/framework/face/implementations.py b/src/python/grpcio/grpc/framework/face/implementations.py similarity index 100% rename from src/python/src/grpc/framework/face/implementations.py rename to src/python/grpcio/grpc/framework/face/implementations.py diff --git a/src/python/src/grpc/framework/face/interfaces.py b/src/python/grpcio/grpc/framework/face/interfaces.py similarity index 100% rename from src/python/src/grpc/framework/face/interfaces.py rename to src/python/grpcio/grpc/framework/face/interfaces.py diff --git a/src/python/src/grpc/framework/face/__init__.py b/src/python/grpcio/grpc/framework/face/testing/__init__.py similarity index 100% rename from src/python/src/grpc/framework/face/__init__.py rename to src/python/grpcio/grpc/framework/face/testing/__init__.py diff --git a/src/python/src/grpc/framework/face/testing/base_util.py b/src/python/grpcio/grpc/framework/face/testing/base_util.py similarity index 100% rename from src/python/src/grpc/framework/face/testing/base_util.py rename to src/python/grpcio/grpc/framework/face/testing/base_util.py diff --git a/src/python/src/grpc/framework/face/testing/blocking_invocation_inline_service_test_case.py b/src/python/grpcio/grpc/framework/face/testing/blocking_invocation_inline_service_test_case.py similarity index 100% rename from src/python/src/grpc/framework/face/testing/blocking_invocation_inline_service_test_case.py rename to src/python/grpcio/grpc/framework/face/testing/blocking_invocation_inline_service_test_case.py diff --git a/src/python/src/grpc/framework/face/testing/callback.py b/src/python/grpcio/grpc/framework/face/testing/callback.py similarity index 100% rename from src/python/src/grpc/framework/face/testing/callback.py rename to src/python/grpcio/grpc/framework/face/testing/callback.py diff --git a/src/python/src/grpc/framework/face/testing/control.py b/src/python/grpcio/grpc/framework/face/testing/control.py similarity index 100% rename from src/python/src/grpc/framework/face/testing/control.py rename to src/python/grpcio/grpc/framework/face/testing/control.py diff --git a/src/python/src/grpc/framework/face/testing/coverage.py b/src/python/grpcio/grpc/framework/face/testing/coverage.py similarity index 100% rename from src/python/src/grpc/framework/face/testing/coverage.py rename to src/python/grpcio/grpc/framework/face/testing/coverage.py diff --git a/src/python/src/grpc/framework/face/testing/digest.py b/src/python/grpcio/grpc/framework/face/testing/digest.py similarity index 100% rename from src/python/src/grpc/framework/face/testing/digest.py rename to src/python/grpcio/grpc/framework/face/testing/digest.py diff --git a/src/python/src/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.py b/src/python/grpcio/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.py similarity index 100% rename from src/python/src/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.py rename to src/python/grpcio/grpc/framework/face/testing/event_invocation_synchronous_event_service_test_case.py diff --git a/src/python/src/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.py b/src/python/grpcio/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.py similarity index 100% rename from src/python/src/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.py rename to src/python/grpcio/grpc/framework/face/testing/future_invocation_asynchronous_event_service_test_case.py diff --git a/src/python/src/grpc/framework/face/testing/interfaces.py b/src/python/grpcio/grpc/framework/face/testing/interfaces.py similarity index 100% rename from src/python/src/grpc/framework/face/testing/interfaces.py rename to src/python/grpcio/grpc/framework/face/testing/interfaces.py diff --git a/src/python/src/grpc/framework/face/testing/serial.py b/src/python/grpcio/grpc/framework/face/testing/serial.py similarity index 100% rename from src/python/src/grpc/framework/face/testing/serial.py rename to src/python/grpcio/grpc/framework/face/testing/serial.py diff --git a/src/python/src/grpc/framework/face/testing/service.py b/src/python/grpcio/grpc/framework/face/testing/service.py similarity index 100% rename from src/python/src/grpc/framework/face/testing/service.py rename to src/python/grpcio/grpc/framework/face/testing/service.py diff --git a/src/python/src/grpc/framework/face/testing/stock_service.py b/src/python/grpcio/grpc/framework/face/testing/stock_service.py similarity index 100% rename from src/python/src/grpc/framework/face/testing/stock_service.py rename to src/python/grpcio/grpc/framework/face/testing/stock_service.py diff --git a/src/python/src/grpc/framework/face/testing/test_case.py b/src/python/grpcio/grpc/framework/face/testing/test_case.py similarity index 100% rename from src/python/src/grpc/framework/face/testing/test_case.py rename to src/python/grpcio/grpc/framework/face/testing/test_case.py diff --git a/src/python/src/grpc/framework/face/utilities.py b/src/python/grpcio/grpc/framework/face/utilities.py similarity index 100% rename from src/python/src/grpc/framework/face/utilities.py rename to src/python/grpcio/grpc/framework/face/utilities.py diff --git a/src/python/src/grpc/framework/face/testing/__init__.py b/src/python/grpcio/grpc/framework/foundation/__init__.py similarity index 100% rename from src/python/src/grpc/framework/face/testing/__init__.py rename to src/python/grpcio/grpc/framework/foundation/__init__.py diff --git a/src/python/src/grpc/framework/foundation/_later_test.py b/src/python/grpcio/grpc/framework/foundation/_later_test.py similarity index 100% rename from src/python/src/grpc/framework/foundation/_later_test.py rename to src/python/grpcio/grpc/framework/foundation/_later_test.py diff --git a/src/python/src/grpc/framework/foundation/_logging_pool_test.py b/src/python/grpcio/grpc/framework/foundation/_logging_pool_test.py similarity index 100% rename from src/python/src/grpc/framework/foundation/_logging_pool_test.py rename to src/python/grpcio/grpc/framework/foundation/_logging_pool_test.py diff --git a/src/python/src/grpc/framework/foundation/_timer_future.py b/src/python/grpcio/grpc/framework/foundation/_timer_future.py similarity index 100% rename from src/python/src/grpc/framework/foundation/_timer_future.py rename to src/python/grpcio/grpc/framework/foundation/_timer_future.py diff --git a/src/python/src/grpc/framework/foundation/abandonment.py b/src/python/grpcio/grpc/framework/foundation/abandonment.py similarity index 100% rename from src/python/src/grpc/framework/foundation/abandonment.py rename to src/python/grpcio/grpc/framework/foundation/abandonment.py diff --git a/src/python/src/grpc/framework/foundation/activated.py b/src/python/grpcio/grpc/framework/foundation/activated.py similarity index 100% rename from src/python/src/grpc/framework/foundation/activated.py rename to src/python/grpcio/grpc/framework/foundation/activated.py diff --git a/src/python/src/grpc/framework/foundation/callable_util.py b/src/python/grpcio/grpc/framework/foundation/callable_util.py similarity index 100% rename from src/python/src/grpc/framework/foundation/callable_util.py rename to src/python/grpcio/grpc/framework/foundation/callable_util.py diff --git a/src/python/src/grpc/framework/foundation/future.py b/src/python/grpcio/grpc/framework/foundation/future.py similarity index 100% rename from src/python/src/grpc/framework/foundation/future.py rename to src/python/grpcio/grpc/framework/foundation/future.py diff --git a/src/python/src/grpc/framework/foundation/later.py b/src/python/grpcio/grpc/framework/foundation/later.py similarity index 100% rename from src/python/src/grpc/framework/foundation/later.py rename to src/python/grpcio/grpc/framework/foundation/later.py diff --git a/src/python/src/grpc/framework/foundation/logging_pool.py b/src/python/grpcio/grpc/framework/foundation/logging_pool.py similarity index 100% rename from src/python/src/grpc/framework/foundation/logging_pool.py rename to src/python/grpcio/grpc/framework/foundation/logging_pool.py diff --git a/src/python/src/grpc/framework/foundation/relay.py b/src/python/grpcio/grpc/framework/foundation/relay.py similarity index 100% rename from src/python/src/grpc/framework/foundation/relay.py rename to src/python/grpcio/grpc/framework/foundation/relay.py diff --git a/src/python/src/grpc/framework/foundation/stream.py b/src/python/grpcio/grpc/framework/foundation/stream.py similarity index 100% rename from src/python/src/grpc/framework/foundation/stream.py rename to src/python/grpcio/grpc/framework/foundation/stream.py diff --git a/src/python/src/grpc/framework/foundation/stream_testing.py b/src/python/grpcio/grpc/framework/foundation/stream_testing.py similarity index 100% rename from src/python/src/grpc/framework/foundation/stream_testing.py rename to src/python/grpcio/grpc/framework/foundation/stream_testing.py diff --git a/src/python/src/grpc/framework/foundation/stream_util.py b/src/python/grpcio/grpc/framework/foundation/stream_util.py similarity index 100% rename from src/python/src/grpc/framework/foundation/stream_util.py rename to src/python/grpcio/grpc/framework/foundation/stream_util.py diff --git a/src/python/src/grpc/framework/foundation/__init__.py b/src/python/grpcio/grpc/framework/interfaces/__init__.py similarity index 100% rename from src/python/src/grpc/framework/foundation/__init__.py rename to src/python/grpcio/grpc/framework/interfaces/__init__.py diff --git a/src/python/src/grpc/framework/interfaces/__init__.py b/src/python/grpcio/grpc/framework/interfaces/links/__init__.py similarity index 100% rename from src/python/src/grpc/framework/interfaces/__init__.py rename to src/python/grpcio/grpc/framework/interfaces/links/__init__.py diff --git a/src/python/src/grpc/framework/interfaces/links/links.py b/src/python/grpcio/grpc/framework/interfaces/links/links.py similarity index 100% rename from src/python/src/grpc/framework/interfaces/links/links.py rename to src/python/grpcio/grpc/framework/interfaces/links/links.py diff --git a/src/python/src/grpc/framework/interfaces/links/test_cases.py b/src/python/grpcio/grpc/framework/interfaces/links/test_cases.py similarity index 100% rename from src/python/src/grpc/framework/interfaces/links/test_cases.py rename to src/python/grpcio/grpc/framework/interfaces/links/test_cases.py diff --git a/src/python/src/grpc/framework/interfaces/links/test_utilities.py b/src/python/grpcio/grpc/framework/interfaces/links/test_utilities.py similarity index 100% rename from src/python/src/grpc/framework/interfaces/links/test_utilities.py rename to src/python/grpcio/grpc/framework/interfaces/links/test_utilities.py diff --git a/src/python/src/grpc/framework/interfaces/links/utilities.py b/src/python/grpcio/grpc/framework/interfaces/links/utilities.py similarity index 100% rename from src/python/src/grpc/framework/interfaces/links/utilities.py rename to src/python/grpcio/grpc/framework/interfaces/links/utilities.py diff --git a/src/python/src/setup.cfg b/src/python/grpcio/setup.cfg similarity index 100% rename from src/python/src/setup.cfg rename to src/python/grpcio/setup.cfg diff --git a/src/python/src/setup.py b/src/python/grpcio/setup.py similarity index 85% rename from src/python/src/setup.py rename to src/python/grpcio/setup.py index 0310a83a7bad5b69ce461ea27d4c536582539a89..1333ae0086a7146557584d8873fe41c6376d2d35 100644 --- a/src/python/src/setup.py +++ b/src/python/grpcio/setup.py @@ -79,29 +79,11 @@ _C_EXTENSION_MODULE = _core.Extension( _EXTENSION_MODULES = [_C_EXTENSION_MODULE] _PACKAGES = ( - 'grpc', - 'grpc._adapter', - 'grpc._junkdrawer', - 'grpc._links', - 'grpc.early_adopter', - 'grpc.framework', - 'grpc.framework.alpha', - 'grpc.framework.base', - 'grpc.framework.common', - 'grpc.framework.face', - 'grpc.framework.face.testing', - 'grpc.framework.foundation', - 'grpc.framework.interfaces', - 'grpc.framework.interfaces.links', + setuptools.find_packages('.', exclude=['*._cython', '*._cython.*']) ) _PACKAGE_DIRECTORIES = { - 'grpc': 'grpc', - 'grpc._adapter': 'grpc/_adapter', - 'grpc._junkdrawer': 'grpc/_junkdrawer', - 'grpc._links': 'grpc/_links', - 'grpc.early_adopter': 'grpc/early_adopter', - 'grpc.framework': 'grpc/framework', + '': '.', } _INSTALL_REQUIRES = ( diff --git a/src/python/src/grpc/framework/interfaces/links/__init__.py b/src/python/grpcio_test/grpc_interop/__init__.py similarity index 100% rename from src/python/src/grpc/framework/interfaces/links/__init__.py rename to src/python/grpcio_test/grpc_interop/__init__.py diff --git a/src/python/interop/interop/_insecure_interop_test.py b/src/python/grpcio_test/grpc_interop/_insecure_interop_test.py similarity index 96% rename from src/python/interop/interop/_insecure_interop_test.py rename to src/python/grpcio_test/grpc_interop/_insecure_interop_test.py index 98ea3a664886e07f64836a344418a243673348ac..825988a072c4842e93cdd742ff079d136924ff34 100644 --- a/src/python/interop/interop/_insecure_interop_test.py +++ b/src/python/grpcio_test/grpc_interop/_insecure_interop_test.py @@ -33,8 +33,8 @@ import unittest from grpc.early_adopter import implementations -from interop import _interop_test_case -from interop import methods +from grpc_interop import _interop_test_case +from grpc_interop import methods class InsecureInteropTest( diff --git a/src/python/interop/interop/_interop_test_case.py b/src/python/grpcio_test/grpc_interop/_interop_test_case.py similarity index 98% rename from src/python/interop/interop/_interop_test_case.py rename to src/python/grpcio_test/grpc_interop/_interop_test_case.py index f40ef0ec83896839a1110cfaebdaaa2f8381b38d..ed8f7ef0099871ba6e66b1ed71ef3ef8c8809401 100644 --- a/src/python/interop/interop/_interop_test_case.py +++ b/src/python/grpcio_test/grpc_interop/_interop_test_case.py @@ -29,7 +29,7 @@ """Common code for unit tests of the interoperability test code.""" -from interop import methods +from grpc_interop import methods class InteropTestCase(object): diff --git a/src/python/interop/interop/_secure_interop_test.py b/src/python/grpcio_test/grpc_interop/_secure_interop_test.py similarity index 95% rename from src/python/interop/interop/_secure_interop_test.py rename to src/python/grpcio_test/grpc_interop/_secure_interop_test.py index be7618f54986c3fa21468cf31283eb756710eea0..a2682dee9929d489a1e9c522e883e16ce1cf26da 100644 --- a/src/python/interop/interop/_secure_interop_test.py +++ b/src/python/grpcio_test/grpc_interop/_secure_interop_test.py @@ -33,9 +33,9 @@ import unittest from grpc.early_adopter import implementations -from interop import _interop_test_case -from interop import methods -from interop import resources +from grpc_interop import _interop_test_case +from grpc_interop import methods +from grpc_interop import resources _SERVER_HOST_OVERRIDE = 'foo.test.google.fr' diff --git a/src/python/interop/interop/client.py b/src/python/grpcio_test/grpc_interop/client.py similarity index 98% rename from src/python/interop/interop/client.py rename to src/python/grpcio_test/grpc_interop/client.py index 41f0d9453932ad994ff877c8d99822e173df5d8e..2dd2103cbec4caabbfc22db1c35a464c5e85f41c 100644 --- a/src/python/interop/interop/client.py +++ b/src/python/grpcio_test/grpc_interop/client.py @@ -34,8 +34,8 @@ from oauth2client import client as oauth2client_client from grpc.early_adopter import implementations -from interop import methods -from interop import resources +from grpc_interop import methods +from grpc_interop import resources _ONE_DAY_IN_SECONDS = 60 * 60 * 24 diff --git a/src/python/interop/interop/credentials/README b/src/python/grpcio_test/grpc_interop/credentials/README similarity index 100% rename from src/python/interop/interop/credentials/README rename to src/python/grpcio_test/grpc_interop/credentials/README diff --git a/src/python/interop/interop/credentials/ca.pem b/src/python/grpcio_test/grpc_interop/credentials/ca.pem similarity index 100% rename from src/python/interop/interop/credentials/ca.pem rename to src/python/grpcio_test/grpc_interop/credentials/ca.pem diff --git a/src/python/interop/interop/credentials/server1.key b/src/python/grpcio_test/grpc_interop/credentials/server1.key similarity index 100% rename from src/python/interop/interop/credentials/server1.key rename to src/python/grpcio_test/grpc_interop/credentials/server1.key diff --git a/src/python/interop/interop/credentials/server1.pem b/src/python/grpcio_test/grpc_interop/credentials/server1.pem similarity index 100% rename from src/python/interop/interop/credentials/server1.pem rename to src/python/grpcio_test/grpc_interop/credentials/server1.pem diff --git a/src/python/interop/interop/empty_pb2.py b/src/python/grpcio_test/grpc_interop/empty_pb2.py similarity index 100% rename from src/python/interop/interop/empty_pb2.py rename to src/python/grpcio_test/grpc_interop/empty_pb2.py diff --git a/src/python/interop/interop/messages_pb2.py b/src/python/grpcio_test/grpc_interop/messages_pb2.py similarity index 100% rename from src/python/interop/interop/messages_pb2.py rename to src/python/grpcio_test/grpc_interop/messages_pb2.py diff --git a/src/python/interop/interop/methods.py b/src/python/grpcio_test/grpc_interop/methods.py similarity index 99% rename from src/python/interop/interop/methods.py rename to src/python/grpcio_test/grpc_interop/methods.py index 194afadb17fee72bc4281f1599c0197632fa94b8..f4c94685eea3a738228029e49808009c15bc3826 100644 --- a/src/python/interop/interop/methods.py +++ b/src/python/grpcio_test/grpc_interop/methods.py @@ -38,8 +38,8 @@ from oauth2client import client as oauth2client_client from grpc.framework.alpha import utilities -from interop import empty_pb2 -from interop import messages_pb2 +from grpc_interop import empty_pb2 +from grpc_interop import messages_pb2 _TIMEOUT = 7 diff --git a/src/python/interop/interop/resources.py b/src/python/grpcio_test/grpc_interop/resources.py similarity index 100% rename from src/python/interop/interop/resources.py rename to src/python/grpcio_test/grpc_interop/resources.py diff --git a/src/python/interop/interop/server.py b/src/python/grpcio_test/grpc_interop/server.py similarity index 97% rename from src/python/interop/interop/server.py rename to src/python/grpcio_test/grpc_interop/server.py index a67d4120389f83dfc76a9a01354830f25420df16..60f630a6be5c451cf632f4d89972e0caca0623b8 100644 --- a/src/python/interop/interop/server.py +++ b/src/python/grpcio_test/grpc_interop/server.py @@ -35,8 +35,8 @@ import time from grpc.early_adopter import implementations -from interop import methods -from interop import resources +from grpc_interop import methods +from grpc_interop import resources _ONE_DAY_IN_SECONDS = 60 * 60 * 24 diff --git a/src/python/interop/interop/test_pb2.py b/src/python/grpcio_test/grpc_interop/test_pb2.py similarity index 100% rename from src/python/interop/interop/test_pb2.py rename to src/python/grpcio_test/grpc_interop/test_pb2.py diff --git a/src/python/interop/setup.py b/src/python/grpcio_test/setup.py similarity index 95% rename from src/python/interop/setup.py rename to src/python/grpcio_test/setup.py index 75012b0d8f4cd35830cf49b50636fa763be27aa3..dbea0f76ae195168f2190be9a620d3bf7a6f0c34 100644 --- a/src/python/interop/setup.py +++ b/src/python/grpcio_test/setup.py @@ -31,16 +31,14 @@ import setuptools -_PACKAGES = ( - 'interop', -) +_PACKAGES = setuptools.find_packages('.') _PACKAGE_DIRECTORIES = { - 'interop': 'interop', + '': '.', } _PACKAGE_DATA = { - 'interop': [ + 'grpc_interop': [ 'credentials/ca.pem', 'credentials/server1.key', 'credentials/server1.pem',] } @@ -48,7 +46,7 @@ _PACKAGE_DATA = { _INSTALL_REQUIRES = ['oauth2client>=1.4.7', 'grpcio>=0.10.0a0'] setuptools.setup( - name='interop', + name='grpcio_test', version='0.0.1', packages=_PACKAGES, package_dir=_PACKAGE_DIRECTORIES, diff --git a/tools/distrib/python/docgen.py b/tools/distrib/python/docgen.py index 3ab84a6ba1d8524acce17387d38677582016b93a..d76792c56f418733099ddee90273e70e7cf1a8a2 100755 --- a/tools/distrib/python/docgen.py +++ b/tools/distrib/python/docgen.py @@ -51,8 +51,8 @@ SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) PROJECT_ROOT = os.path.abspath(os.path.join(SCRIPT_DIR, '..', '..', '..')) CONFIG = args.config -SETUP_PATH = os.path.join(PROJECT_ROOT, 'src/python/src/setup.py') -DOC_PATH = os.path.join(PROJECT_ROOT, 'src/python/src/doc/build') +SETUP_PATH = os.path.join(PROJECT_ROOT, 'src/python/grpcio/setup.py') +DOC_PATH = os.path.join(PROJECT_ROOT, 'src/python/grpcio/doc/build') INCLUDE_PATH = os.path.join(PROJECT_ROOT, 'include') LIBRARY_PATH = os.path.join(PROJECT_ROOT, 'libs/{}'.format(CONFIG)) VIRTUALENV_DIR = os.path.join(SCRIPT_DIR, 'distrib_virtualenv') diff --git a/tools/distrib/python/submit.py b/tools/distrib/python/submit.py index a3615b3640412bab10492068a7a8da6770af297f..909ba563270ac5e0f70d566e65c9a06a20fbc28c 100755 --- a/tools/distrib/python/submit.py +++ b/tools/distrib/python/submit.py @@ -59,7 +59,7 @@ args = parser.parse_args() # Move to the root directory of Python GRPC. pkgdir = os.path.join(os.path.dirname(os.path.abspath(__file__)), - '../../../src/python/src') + '../../../src/python/grpcio') # Remove previous distributions; they somehow confuse twine. try: shutil.rmtree(os.path.join(pkgdir, 'dist/')) diff --git a/tools/run_tests/build_python.sh b/tools/run_tests/build_python.sh index ae0fb42241dca617cab4d324bcada9832d1220de..265a542e3a6ab01e21927e792096f955c41d819f 100755 --- a/tools/run_tests/build_python.sh +++ b/tools/run_tests/build_python.sh @@ -43,8 +43,8 @@ make_virtualenv() { virtualenv -p `which "python"$1` $virtualenv_name source $virtualenv_name/bin/activate pip install -r src/python/requirements.txt - CFLAGS="-I$root/include -std=c89" LDFLAGS=-L$root/libs/$CONFIG GRPC_PYTHON_BUILD_WITH_CYTHON=1 pip install src/python/src - pip install src/python/interop + CFLAGS="-I$root/include -std=c89" LDFLAGS=-L$root/libs/$CONFIG GRPC_PYTHON_BUILD_WITH_CYTHON=1 pip install src/python/grpcio + pip install src/python/grpcio_test else source $virtualenv_name/bin/activate # Uninstall and re-install the packages we care about. Don't use @@ -52,13 +52,13 @@ make_virtualenv() { # unnecessarily to dependencies. Don't use --no-deps to avoid missing # dependency upgrades. (yes | pip uninstall grpcio) || true - (yes | pip uninstall interop) || true - (CFLAGS="-I$root/include -std=c89" LDFLAGS=-L$root/libs/$CONFIG GRPC_PYTHON_BUILD_WITH_CYTHON=1 pip install src/python/src) || ( + (yes | pip uninstall grpcio_test) || true + (CFLAGS="-I$root/include -std=c89" LDFLAGS=-L$root/libs/$CONFIG GRPC_PYTHON_BUILD_WITH_CYTHON=1 pip install src/python/grpcio) || ( # Fall back to rebuilding the entire environment rm -rf $virtualenv_name make_virtualenv $1 ) - pip install src/python/interop + pip install src/python/grpcio_test fi } diff --git a/tools/run_tests/python_tests.json b/tools/run_tests/python_tests.json index 3d75d8de36c52da855102cc10ffd514f20526e04..8bb3939fddf8e709b4ccb29e359fa00f65780a67 100755 --- a/tools/run_tests/python_tests.json +++ b/tools/run_tests/python_tests.json @@ -102,13 +102,13 @@ ] }, { - "module": "interop._insecure_interop_test", + "module": "grpc_interop._insecure_interop_test", "pythonVersions": [ "2.7" ] }, { - "module": "interop._secure_interop_test", + "module": "grpc_interop._secure_interop_test", "pythonVersions": [ "2.7" ]