blob: 8998a389daf7029236e7babe292dc1023653a95e [file] [log] [blame]
Jon Wayne Parrott77fb0f22017-10-18 12:52:35 -07001# 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
15import os
16
17from setuptools import find_packages
18from setuptools import setup
19
20
21PACKAGE_ROOT = os.path.abspath(os.path.dirname(__file__))
22
23with open(os.path.join(PACKAGE_ROOT, 'README.rst')) as file_obj:
24 README = file_obj.read()
25
26
27SETUP_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
52REQUIREMENTS = [
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
61EXTRAS_REQUIREMENTS = {
62 ':python_version<"3.2"': ['futures >= 3.0.0'],
Danny Hermes69979702017-10-30 14:41:42 -070063 'grpc': ['grpcio >= 1.7.0'],
Jon Wayne Parrott77fb0f22017-10-18 12:52:35 -070064}
65
66setup(
67 name='google-api-core',
Danny Hermes09a970a2017-10-30 15:46:49 -070068 version='0.1.2.dev1',
Jon Wayne Parrott77fb0f22017-10-18 12:52:35 -070069 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)