Jon Wayne Parrott | 77fb0f2 | 2017-10-18 12:52:35 -0700 | [diff] [blame] | 1 | # Copyright 2016 Google Inc. |
| 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 | |
| 15 | import os |
| 16 | |
| 17 | from setuptools import find_packages |
| 18 | from setuptools import setup |
| 19 | |
| 20 | |
| 21 | PACKAGE_ROOT = os.path.abspath(os.path.dirname(__file__)) |
| 22 | |
| 23 | with open(os.path.join(PACKAGE_ROOT, 'README.rst')) as file_obj: |
| 24 | README = file_obj.read() |
| 25 | |
| 26 | |
| 27 | SETUP_BASE = { |
| 28 | 'author': 'Google Cloud Platform', |
| 29 | 'author_email': 'googleapis-publisher@google.com', |
| 30 | 'scripts': [], |
| 31 | 'url': 'https://github.com/GoogleCloudPlatform/google-cloud-python', |
| 32 | 'license': 'Apache 2.0', |
| 33 | 'platforms': 'Posix; MacOS X; Windows', |
| 34 | 'include_package_data': True, |
| 35 | 'zip_safe': False, |
| 36 | 'classifiers': [ |
| 37 | 'Development Status :: 4 - Beta', |
| 38 | 'Intended Audience :: Developers', |
| 39 | 'License :: OSI Approved :: Apache Software License', |
| 40 | 'Operating System :: OS Independent', |
| 41 | 'Programming Language :: Python :: 2', |
| 42 | 'Programming Language :: Python :: 2.7', |
| 43 | 'Programming Language :: Python :: 3', |
| 44 | 'Programming Language :: Python :: 3.4', |
| 45 | 'Programming Language :: Python :: 3.5', |
| 46 | 'Programming Language :: Python :: 3.6', |
| 47 | 'Topic :: Internet', |
| 48 | ], |
| 49 | } |
| 50 | |
| 51 | |
| 52 | REQUIREMENTS = [ |
| 53 | 'googleapis-common-protos >= 1.5.3, < 2.0dev', |
| 54 | 'protobuf >= 3.0.0', |
| 55 | 'google-auth >= 0.4.0, < 2.0.0dev', |
| 56 | 'requests >= 2.18.0, < 3.0.0dev', |
| 57 | 'setuptools >= 34.0.0', |
| 58 | 'six >= 1.10.0', |
| 59 | ] |
| 60 | |
| 61 | EXTRAS_REQUIREMENTS = { |
| 62 | ':python_version<"3.2"': ['futures >= 3.0.0'], |
| 63 | 'grpc': ['grpcio >= 1.2.0, < 1.6dev'], |
| 64 | } |
| 65 | |
| 66 | setup( |
| 67 | name='google-api-core', |
| 68 | version='0.1.0', |
| 69 | description='Core Google API Client Library', |
| 70 | long_description=README, |
| 71 | namespace_packages=['google'], |
| 72 | packages=find_packages(exclude=('tests*',)), |
| 73 | install_requires=REQUIREMENTS, |
| 74 | extras_require=EXTRAS_REQUIREMENTS, |
| 75 | **SETUP_BASE |
| 76 | ) |