Luke Sneeringer | acb6e3e | 2017-10-31 08:57:09 -0700 | [diff] [blame] | 1 | # Copyright 2016 Google LLC |
Jon Wayne Parrott | 77fb0f2 | 2017-10-18 12:52:35 -0700 | [diff] [blame] | 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', |
Jon Wayne Parrott | 06b7c45 | 2017-11-16 14:37:30 -0800 | [diff] [blame] | 59 | # pytz does not adhere to semver and uses a year.month based scheme. |
| 60 | # Any valid version of pytz should work for us. |
| 61 | 'pytz', |
Jon Wayne Parrott | 77fb0f2 | 2017-10-18 12:52:35 -0700 | [diff] [blame] | 62 | ] |
| 63 | |
| 64 | EXTRAS_REQUIREMENTS = { |
Danny Hermes | 9623e82 | 2017-12-04 11:06:04 -0800 | [diff] [blame] | 65 | ':python_version<"3.2"': ['futures >= 3.2.0'], |
Danny Hermes | ad7f591 | 2017-12-20 15:32:13 -0800 | [diff] [blame] | 66 | 'grpc': ['grpcio >= 1.8.2'], |
Jon Wayne Parrott | 77fb0f2 | 2017-10-18 12:52:35 -0700 | [diff] [blame] | 67 | } |
| 68 | |
| 69 | setup( |
| 70 | name='google-api-core', |
Danny Hermes | 5527d2a | 2018-01-12 13:01:50 -0800 | [diff] [blame^] | 71 | version='0.1.5.dev1', |
Jon Wayne Parrott | 77fb0f2 | 2017-10-18 12:52:35 -0700 | [diff] [blame] | 72 | description='Core Google API Client Library', |
| 73 | long_description=README, |
| 74 | namespace_packages=['google'], |
| 75 | packages=find_packages(exclude=('tests*',)), |
| 76 | install_requires=REQUIREMENTS, |
| 77 | extras_require=EXTRAS_REQUIREMENTS, |
| 78 | **SETUP_BASE |
| 79 | ) |