setup.py 1.4 KB

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