src/python/grpcio_admin/setup.py
Go to the documentation of this file.
1 # Copyright 2021 The gRPC Authors
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 """Setup module for admin interface in gRPC Python."""
15 
16 import os
17 import sys
18 
19 import setuptools
20 
21 _PACKAGE_PATH = os.path.realpath(os.path.dirname(__file__))
22 _README_PATH = os.path.join(_PACKAGE_PATH, 'README.rst')
23 
24 # Ensure we're in the proper directory whether or not we're being used by pip.
25 os.chdir(os.path.dirname(os.path.abspath(__file__)))
26 
27 # Break import-style to ensure we can actually find our local modules.
28 import grpc_version
29 
30 CLASSIFIERS = [
31  'Development Status :: 5 - Production/Stable',
32  'Programming Language :: Python',
33  'Programming Language :: Python :: 3',
34  'License :: OSI Approved :: Apache Software License',
35 ]
36 
37 PACKAGE_DIRECTORIES = {
38  '': '.',
39 }
40 
41 INSTALL_REQUIRES = (
42  'grpcio-channelz>={version}'.format(version=grpc_version.VERSION),
43  'grpcio-csds>={version}'.format(version=grpc_version.VERSION),
44 )
45 SETUP_REQUIRES = INSTALL_REQUIRES
46 
47 setuptools.setup(name='grpcio-admin',
48  version=grpc_version.VERSION,
49  license='Apache License 2.0',
50  description='a collection of admin services',
51  long_description=open(_README_PATH, 'r').read(),
52  author='The gRPC Authors',
53  author_email='grpc-io@googlegroups.com',
54  classifiers=CLASSIFIERS,
55  url='https://grpc.io',
56  package_dir=PACKAGE_DIRECTORIES,
57  packages=setuptools.find_packages('.'),
58  python_requires='>=3.6',
59  install_requires=INSTALL_REQUIRES,
60  setup_requires=SETUP_REQUIRES)
http2_test_server.format
format
Definition: http2_test_server.py:118
read
int read(izstream &zs, T *x, Items items)
Definition: bloaty/third_party/zlib/contrib/iostream2/zstream.h:115
open
#define open
Definition: test-fs.c:46


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:18