setup.py.template 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Copyright 2020 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 the {{ name_long }} package."""
  15. import sys
  16. import setuptools
  17. CLASSIFIERS = [
  18. 'Development Status :: 7 - Inactive',
  19. 'Programming Language :: Python',
  20. 'Programming Language :: Python :: 3',
  21. 'License :: OSI Approved :: Apache Software License',
  22. ]
  23. HINT = 'Please install the official package with: pip install {{ destination_package }}'
  24. if 'sdist' not in sys.argv:
  25. raise RuntimeError(HINT)
  26. setuptools.setup(
  27. name='{{ name }}',
  28. version='{{ version }}',
  29. description=HINT,
  30. author='The gRPC Authors',
  31. author_email='grpc-io@googlegroups.com',
  32. url='https://grpc.io',
  33. license='Apache License 2.0',
  34. classifiers=CLASSIFIERS
  35. )