14 """A setup module for the gRPC Python package."""
16 import multiprocessing
24 PY3 = sys.version_info.major == 3
27 os.chdir(os.path.dirname(os.path.abspath(__file__)))
33 LICENSE =
'Apache License 2.0'
35 PACKAGE_DIRECTORIES = {
40 'coverage>=4.0',
'grpcio>={version}'.
format(version=grpc_version.VERSION),
41 'grpcio-channelz>={version}'.
format(version=grpc_version.VERSION),
42 'grpcio-status>={version}'.
format(version=grpc_version.VERSION),
43 'grpcio-tools>={version}'.
format(version=grpc_version.VERSION),
44 'grpcio-health-checking>={version}'.
format(version=grpc_version.VERSION),
45 'oauth2client>=1.4.7',
'protobuf>=3.12.0',
'six>=1.10',
46 'google-auth>=1.17.2',
'requests>=2.14.2')
49 INSTALL_REQUIRES += (
'futures>=2.2.0',
'enum34>=1.0.4')
67 'credentials/server1.key',
68 'credentials/server1.pem',
70 'tests.protoc_plugin.protos.invocation_testing': [
'same.proto',],
71 'tests.protoc_plugin.protos.invocation_testing.split_messages': [
74 'tests.protoc_plugin.protos.invocation_testing.split_services': [
77 'tests.testing.proto': [
83 'credentials/server1.key',
84 'credentials/server1.pem',
86 'tests': [
'tests.json'],
90 TEST_LOADER =
'tests:Loader'
91 TEST_RUNNER =
'tests:Runner'
92 TESTS_REQUIRE = INSTALL_REQUIRES
94 PACKAGES = setuptools.find_packages(
'.')
96 if __name__ ==
"__main__":
97 multiprocessing.freeze_support()
100 version=grpc_version.VERSION,
102 packages=list(PACKAGES),
103 package_dir=PACKAGE_DIRECTORIES,
104 package_data=PACKAGE_DATA,
105 install_requires=INSTALL_REQUIRES,
106 cmdclass=COMMAND_CLASS,
107 tests_require=TESTS_REQUIRE,
108 test_suite=TEST_SUITE,
109 test_loader=TEST_LOADER,
110 test_runner=TEST_RUNNER,