14 """Setup module for the GRPC Python package's status mapping."""
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),
67 'googleapis-common-protos>=1.5.5',
71 import status_commands
as _status_commands
76 'preprocess': _status_commands.Preprocess,
77 'build_package_protos': _NoOpCommand,
82 'preprocess': _NoOpCommand,
83 'build_package_protos': _NoOpCommand,
86 setuptools.setup(name=
'grpcio-status',
87 version=grpc_version.VERSION,
88 description=
'Status proto mapping for gRPC',
89 long_description=
open(_README_PATH,
'r').
read(),
90 author=
'The gRPC Authors',
91 author_email=
'grpc-io@googlegroups.com',
92 url=
'https://grpc.io',
93 license=
'Apache License 2.0',
94 classifiers=CLASSIFIERS,
95 package_dir=PACKAGE_DIRECTORIES,
96 packages=setuptools.find_packages(
'.'),
97 python_requires=
'>=3.6',
98 install_requires=INSTALL_REQUIRES,
99 cmdclass=COMMAND_CLASS)