blob: 1d2d6dbc48e5773b98f57d285f9159a3107199b5 [file] [log] [blame]
Luke Sneeringeracb6e3e2017-10-31 08:57:09 -07001# Copyright 2016 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
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',
Jon Wayne Parrott06b7c452017-11-16 14:37:30 -080059 # 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 Parrott77fb0f22017-10-18 12:52:35 -070062]
63
64EXTRAS_REQUIREMENTS = {
Danny Hermes9623e822017-12-04 11:06:04 -080065 ':python_version<"3.2"': ['futures >= 3.2.0'],
Danny Hermesad7f5912017-12-20 15:32:13 -080066 'grpc': ['grpcio >= 1.8.2'],
Jon Wayne Parrott77fb0f22017-10-18 12:52:35 -070067}
68
69setup(
70 name='google-api-core',
Danny Hermes5527d2a2018-01-12 13:01:50 -080071 version='0.1.5.dev1',
Jon Wayne Parrott77fb0f22017-10-18 12:52:35 -070072 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)