14 """Setup module for the GRPC Python package's optional health checking."""
20 _PACKAGE_PATH = os.path.realpath(os.path.dirname(__file__))
21 _README_PATH = os.path.join(_PACKAGE_PATH,
'README.rst')
24 os.chdir(os.path.dirname(os.path.abspath(__file__)))
30 class _NoOpCommand(setuptools.Command):
47 'Development Status :: 5 - Production/Stable',
48 'Programming Language :: Python',
49 'Programming Language :: Python :: 3',
50 'Programming Language :: Python :: 3.4',
51 'Programming Language :: Python :: 3.5',
52 'Programming Language :: Python :: 3.6',
53 'Programming Language :: Python :: 3.7',
54 'Programming Language :: Python :: 3.8',
55 'Programming Language :: Python :: 3.9',
56 'Programming Language :: Python :: 3.10',
57 'License :: OSI Approved :: Apache Software License',
60 PACKAGE_DIRECTORIES = {
66 'grpcio>={version}'.
format(version=grpc_version.VERSION),
70 import health_commands
as _health_commands
73 SETUP_REQUIRES = (
'grpcio-tools=={version}'.
format(
74 version=grpc_version.VERSION),)
77 'preprocess': _health_commands.Preprocess,
78 'build_package_protos': _health_commands.BuildPackageProtos,
84 'preprocess': _NoOpCommand,
85 'build_package_protos': _NoOpCommand,
88 setuptools.setup(name=
'grpcio-health-checking',
89 version=grpc_version.VERSION,
90 description=
'Standard Health Checking Service for gRPC',
91 long_description=
open(_README_PATH,
'r').
read(),
92 author=
'The gRPC Authors',
93 author_email=
'grpc-io@googlegroups.com',
94 url=
'https://grpc.io',
95 license=
'Apache License 2.0',
96 classifiers=CLASSIFIERS,
97 package_dir=PACKAGE_DIRECTORIES,
98 packages=setuptools.find_packages(
'.'),
99 python_requires=
'>=3.6',
100 install_requires=INSTALL_REQUIRES,
101 setup_requires=SETUP_REQUIRES,
102 cmdclass=COMMAND_CLASS)