• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /usr/bin/env python3
2# Copyright 2021 The gRPC Authors
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#     http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15"""A PyPI package for xDS protos generated Python code."""
16
17import os
18import setuptools
19
20WORK_DIR = os.path.dirname(os.path.abspath(__file__))
21EXCLUDE_PYTHON_FILES = ['generated_file_import_test.py', 'build.py']
22
23# Use setuptools to build Python package
24with open(os.path.join(WORK_DIR, 'README.rst'), 'r') as f:
25    LONG_DESCRIPTION = f.read()
26PACKAGES = setuptools.find_packages(where=".", exclude=EXCLUDE_PYTHON_FILES)
27CLASSIFIERS = [
28    'Development Status :: 3 - Alpha',
29    'Programming Language :: Python',
30    'Programming Language :: Python :: 2',
31    'Programming Language :: Python :: 3',
32    'License :: OSI Approved :: Apache Software License',
33]
34INSTALL_REQUIRES = [
35    'grpcio',
36    'protobuf',
37]
38SETUP_REQUIRES = INSTALL_REQUIRES + ['grpcio-tools']
39setuptools.setup(
40    name='xds-protos',
41    version='0.0.8',
42    packages=PACKAGES,
43    description='Generated Python code from envoyproxy/data-plane-api',
44    long_description_content_type='text/x-rst',
45    long_description=LONG_DESCRIPTION,
46    author='The gRPC Authors',
47    author_email='grpc-io@googlegroups.com',
48    url='https://grpc.io',
49    license='Apache License 2.0',
50    install_requires=INSTALL_REQUIRES,
51    setup_requires=SETUP_REQUIRES,
52    classifiers=CLASSIFIERS)
53