blob: dbb5102832918eecb4faa47536dd359b8d1352f8 [file] [log] [blame]
Jon Wayne Parrottc0f12e22018-02-22 10:28:50 -08001# Copyright 2018 Google LLC
Jon Wayne Parrott77fb0f22017-10-18 12:52:35 -07002#
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
Jon Wayne Parrottc0f12e22018-02-22 10:28:50 -080015import io
Jon Wayne Parrott77fb0f22017-10-18 12:52:35 -070016import os
17
Jon Wayne Parrottc0f12e22018-02-22 10:28:50 -080018import setuptools
Jon Wayne Parrott77fb0f22017-10-18 12:52:35 -070019
20
Jon Wayne Parrottc0f12e22018-02-22 10:28:50 -080021# Package metadata.
Jon Wayne Parrott77fb0f22017-10-18 12:52:35 -070022
Jon Wayne Parrottc0f12e22018-02-22 10:28:50 -080023name = 'google-api-core'
24description = 'Google API client core library'
Weiran Fang2c7f8972018-09-11 10:49:35 -070025version = '1.4.0'
Jon Wayne Parrottc0f12e22018-02-22 10:28:50 -080026# Should be one of:
27# 'Development Status :: 3 - Alpha'
28# 'Development Status :: 4 - Beta'
Jon Wayne Parrotta7309d72018-03-15 08:52:22 -070029# 'Development Status :: 5 - Production/Stable'
Christopher Wilcoxd65417d2018-04-18 12:52:17 -070030release_status = 'Development Status :: 5 - Production/Stable'
Jon Wayne Parrottc0f12e22018-02-22 10:28:50 -080031dependencies = [
32 'googleapis-common-protos<2.0dev,>=1.5.3',
33 'protobuf>=3.0.0',
34 'google-auth<2.0.0dev,>=0.4.0',
35 'requests<3.0.0dev,>=2.18.0',
36 'setuptools>=34.0.0',
37 'six>=1.10.0',
38 'pytz',
David Gangf2a03392018-03-22 22:41:39 +020039 'futures>=3.2.0;python_version<"3.2"'
Jon Wayne Parrottc0f12e22018-02-22 10:28:50 -080040]
41extras = {
Weiran Fang2c7f8972018-09-11 10:49:35 -070042 'grpc': 'grpcio>=1.8.2',
43 'grpcio-gcp': 'grpcio-gcp>=0.2.2'
Jon Wayne Parrottc0f12e22018-02-22 10:28:50 -080044}
Jon Wayne Parrott77fb0f22017-10-18 12:52:35 -070045
46
Jon Wayne Parrottc0f12e22018-02-22 10:28:50 -080047# Setup boilerplate below this line.
48
49package_root = os.path.abspath(os.path.dirname(__file__))
50
51readme_filename = os.path.join(package_root, 'README.rst')
52with io.open(readme_filename, encoding='utf-8') as readme_file:
53 readme = readme_file.read()
54
55# Only include packages under the 'google' namespace. Do not include tests,
56# benchmarks, etc.
57packages = [
58 package for package in setuptools.find_packages()
59 if package.startswith('google')]
60
61# Determine which namespaces are needed.
62namespaces = ['google']
63if 'google.cloud' in packages:
64 namespaces.append('google.cloud')
65
66
67setuptools.setup(
68 name=name,
69 version=version,
70 description=description,
71 long_description=readme,
72 author='Google LLC',
73 author_email='googleapis-packages@google.com',
74 license='Apache 2.0',
75 url='https://github.com/GoogleCloudPlatform/google-cloud-python',
76 classifiers=[
77 release_status,
Jon Wayne Parrott77fb0f22017-10-18 12:52:35 -070078 'Intended Audience :: Developers',
79 'License :: OSI Approved :: Apache Software License',
Jon Wayne Parrottc0f12e22018-02-22 10:28:50 -080080 'Programming Language :: Python',
Jon Wayne Parrott77fb0f22017-10-18 12:52:35 -070081 'Programming Language :: Python :: 2',
82 'Programming Language :: Python :: 2.7',
83 'Programming Language :: Python :: 3',
Jon Wayne Parrott77fb0f22017-10-18 12:52:35 -070084 'Programming Language :: Python :: 3.5',
85 'Programming Language :: Python :: 3.6',
Thea Flowersf1f5f782018-07-27 11:04:31 -070086 'Programming Language :: Python :: 3.7',
Jon Wayne Parrottc0f12e22018-02-22 10:28:50 -080087 'Operating System :: OS Independent',
Jon Wayne Parrott77fb0f22017-10-18 12:52:35 -070088 'Topic :: Internet',
89 ],
Jon Wayne Parrottc0f12e22018-02-22 10:28:50 -080090 platforms='Posix; MacOS X; Windows',
91 packages=packages,
92 namespace_packages=namespaces,
93 install_requires=dependencies,
94 extras_require=extras,
95 include_package_data=True,
96 zip_safe=False,
Jon Wayne Parrott77fb0f22017-10-18 12:52:35 -070097)