14 """Setup module for gRPC Python's testing package."""
21 _PACKAGE_PATH = os.path.realpath(os.path.dirname(__file__))
22 _README_PATH = os.path.join(_PACKAGE_PATH,
'README.rst')
25 os.chdir(os.path.dirname(os.path.abspath(__file__)))
31 class _NoOpCommand(setuptools.Command):
47 PACKAGE_DIRECTORIES = {
53 'grpcio>={version}'.
format(version=grpc_version.VERSION),
57 import testing_commands
as _testing_commands
62 'preprocess': _testing_commands.Preprocess,
67 'preprocess': _NoOpCommand,
70 setuptools.setup(name=
'grpcio-testing',
71 version=grpc_version.VERSION,
72 license=
'Apache License 2.0',
73 description=
'Testing utilities for gRPC Python',
74 long_description=
open(_README_PATH,
'r').
read(),
75 author=
'The gRPC Authors',
76 author_email=
'grpc-io@googlegroups.com',
77 url=
'https://grpc.io',
78 package_dir=PACKAGE_DIRECTORIES,
79 packages=setuptools.find_packages(
'.'),
80 install_requires=INSTALL_REQUIRES,
81 cmdclass=COMMAND_CLASS)