blob: 8ae217bb781005b063f4ae04f47493d2a46ef240 [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
Christopher Wilcox6f4070d2018-11-29 11:02:52 -080023name = "google-api-core"
24description = "Google API client core library"
25version = "1.5.2"
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 Wilcox6f4070d2018-11-29 11:02:52 -080030release_status = "Development Status :: 5 - Production/Stable"
Jon Wayne Parrottc0f12e22018-02-22 10:28:50 -080031dependencies = [
Christopher Wilcox6f4070d2018-11-29 11:02:52 -080032 "googleapis-common-protos >= 1.5.3, != 1.5.4, < 2.0dev",
33 "protobuf >= 3.4.0",
34 "google-auth >= 0.4.0, < 2.0dev",
35 "requests >= 2.18.0, < 3.0.0dev",
36 "setuptools >= 34.0.0",
37 "six >= 1.10.0",
38 "pytz",
39 'futures >= 3.2.0; python_version < "3.2"',
Jon Wayne Parrottc0f12e22018-02-22 10:28:50 -080040]
41extras = {
Christopher Wilcox6f4070d2018-11-29 11:02:52 -080042 "grpc": "grpcio >= 1.8.2",
43 "grpcgcp": "grpcio-gcp >= 0.2.2",
44 "grpcio-gcp": "grpcio-gcp >= 0.2.2",
Jon Wayne Parrottc0f12e22018-02-22 10:28:50 -080045}
Jon Wayne Parrott77fb0f22017-10-18 12:52:35 -070046
47
Jon Wayne Parrottc0f12e22018-02-22 10:28:50 -080048# Setup boilerplate below this line.
49
50package_root = os.path.abspath(os.path.dirname(__file__))
51
Christopher Wilcox6f4070d2018-11-29 11:02:52 -080052readme_filename = os.path.join(package_root, "README.rst")
53with io.open(readme_filename, encoding="utf-8") as readme_file:
Jon Wayne Parrottc0f12e22018-02-22 10:28:50 -080054 readme = readme_file.read()
55
56# Only include packages under the 'google' namespace. Do not include tests,
57# benchmarks, etc.
58packages = [
Christopher Wilcox6f4070d2018-11-29 11:02:52 -080059 package for package in setuptools.find_packages() if package.startswith("google")
60]
Jon Wayne Parrottc0f12e22018-02-22 10:28:50 -080061
62# Determine which namespaces are needed.
Christopher Wilcox6f4070d2018-11-29 11:02:52 -080063namespaces = ["google"]
64if "google.cloud" in packages:
65 namespaces.append("google.cloud")
Jon Wayne Parrottc0f12e22018-02-22 10:28:50 -080066
67
68setuptools.setup(
69 name=name,
70 version=version,
71 description=description,
72 long_description=readme,
Christopher Wilcox6f4070d2018-11-29 11:02:52 -080073 author="Google LLC",
74 author_email="googleapis-packages@google.com",
75 license="Apache 2.0",
76 url="https://github.com/GoogleCloudPlatform/google-cloud-python",
Jon Wayne Parrottc0f12e22018-02-22 10:28:50 -080077 classifiers=[
78 release_status,
Christopher Wilcox6f4070d2018-11-29 11:02:52 -080079 "Intended Audience :: Developers",
80 "License :: OSI Approved :: Apache Software License",
81 "Programming Language :: Python",
82 "Programming Language :: Python :: 2",
83 "Programming Language :: Python :: 2.7",
84 "Programming Language :: Python :: 3",
85 "Programming Language :: Python :: 3.5",
86 "Programming Language :: Python :: 3.6",
87 "Programming Language :: Python :: 3.7",
88 "Operating System :: OS Independent",
89 "Topic :: Internet",
Jon Wayne Parrott77fb0f22017-10-18 12:52:35 -070090 ],
Christopher Wilcox6f4070d2018-11-29 11:02:52 -080091 platforms="Posix; MacOS X; Windows",
Jon Wayne Parrottc0f12e22018-02-22 10:28:50 -080092 packages=packages,
93 namespace_packages=namespaces,
94 install_requires=dependencies,
95 extras_require=extras,
96 include_package_data=True,
97 zip_safe=False,
Jon Wayne Parrott77fb0f22017-10-18 12:52:35 -070098)