1# Copyright 2017 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 gRPC Python's testing package.""" 15 16import os 17import sys 18 19import setuptools 20 21# Ensure we're in the proper directory whether or not we're being used by pip. 22os.chdir(os.path.dirname(os.path.abspath(__file__))) 23 24# Break import style to ensure that we can find same-directory modules. 25import grpc_version 26 27PACKAGE_DIRECTORIES = { 28 '': '.', 29} 30 31INSTALL_REQUIRES = ( 32 'protobuf>=3.6.0', 33 'grpcio>={version}'.format(version=grpc_version.VERSION), 34) 35 36setuptools.setup( 37 name='grpcio-testing', 38 version=grpc_version.VERSION, 39 license='Apache License 2.0', 40 description='Testing utilities for gRPC Python', 41 author='The gRPC Authors', 42 author_email='grpc-io@googlegroups.com', 43 url='https://grpc.io', 44 package_dir=PACKAGE_DIRECTORIES, 45 packages=setuptools.find_packages('.'), 46 install_requires=INSTALL_REQUIRES) 47