blob: 9ae315067b309cae1f6ced3854f1676c5f094126 [file] [log] [blame]
Craig Citro751b7fb2014-09-23 11:20:38 -07001# Copyright 2014 Google Inc. All Rights Reserved.
Tom Miller7c95d812010-10-11 11:50:52 -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.
Joe Gregorio48d361f2010-08-18 13:19:21 -040014
Tom Miller7c95d812010-10-11 11:50:52 -070015"""Setup script for Google API Python client.
16
17Also installs included versions of third party libraries, if those libraries
18are not already installed.
19"""
Craig Citroa540cf72014-08-18 22:50:58 -070020from __future__ import print_function
21
22import sys
23
Jon Wayne Parrott85c2c6d2017-01-05 12:34:49 -080024if sys.version_info < (2, 7):
25 print('google-api-python-client requires python version >= 2.7.',
Craig Citro28467c82014-10-09 00:15:00 -070026 file=sys.stderr)
Craig Citroa540cf72014-08-18 22:50:58 -070027 sys.exit(1)
Pat Feratee52ea212015-03-10 12:59:13 -070028if (3, 1) <= sys.version_info < (3, 3):
29 print('google-api-python-client requires python3 version >= 3.3.',
30 file=sys.stderr)
31 sys.exit(1)
Craig Citroa540cf72014-08-18 22:50:58 -070032
Joe Gregorio336b9782011-09-15 14:35:54 -040033from setuptools import setup
Joe Gregorio01b92702011-03-23 21:44:42 -040034
Joe Gregorio6429bf62011-03-01 22:53:21 -080035packages = [
Craig Citro7547de62014-10-13 09:21:08 -070036 'apiclient',
John Asmuth864311d2014-04-24 15:46:08 -040037 'googleapiclient',
Takashi Matsuo2ec6efa2015-09-03 13:26:24 -070038 'googleapiclient/discovery_cache',
John Asmuth864311d2014-04-24 15:46:08 -040039]
Joe Gregorio5cdaa512011-03-28 16:41:55 -040040
Joe Gregoriod667c9d2011-10-17 13:25:24 -040041install_requires = [
Jon Wayne Parrott6394b662016-10-28 09:49:34 -070042 'httplib2>=0.9.2,<1dev',
Helen Koike9eb303e2018-05-31 19:11:34 -030043 'google-auth>=1.4.1',
44 'google-auth-httplib2>=0.0.3',
Jon Wayne Parrotte2ce0042016-10-14 11:02:09 -070045 'six>=1.6.1,<2dev',
46 'uritemplate>=3.0.0,<4dev',
John Asmuth864311d2014-04-24 15:46:08 -040047]
Joe Gregorio6429bf62011-03-01 22:53:21 -080048
Joe Gregorio3ad5e9a2010-12-09 15:01:04 -050049long_desc = """The Google API Client for Python is a client library for
Joe Gregorioc4fc0952011-11-09 12:21:11 -050050accessing the Plus, Moderator, and many other Google APIs."""
Tom Miller7c95d812010-10-11 11:50:52 -070051
John Asmuth864311d2014-04-24 15:46:08 -040052import googleapiclient
53version = googleapiclient.__version__
Joe Gregorio696583c2012-03-21 15:20:51 -040054
John Asmuth864311d2014-04-24 15:46:08 -040055setup(
56 name="google-api-python-client",
57 version=version,
58 description="Google API Client Library for Python",
59 long_description=long_desc,
Craig Citro9b906772014-10-09 00:21:10 -070060 author="Google Inc.",
John Asmuth864311d2014-04-24 15:46:08 -040061 url="http://github.com/google/google-api-python-client/",
62 install_requires=install_requires,
63 packages=packages,
64 package_data={},
65 license="Apache 2.0",
66 keywords="google api client",
67 classifiers=[
Pat Feratee52ea212015-03-10 12:59:13 -070068 'Programming Language :: Python :: 2',
Pat Feratee52ea212015-03-10 12:59:13 -070069 'Programming Language :: Python :: 2.7',
70 'Programming Language :: Python :: 3',
71 'Programming Language :: Python :: 3.3',
72 'Programming Language :: Python :: 3.4',
Jon Wayne Parrottafe134b2017-02-08 10:20:57 -080073 'Programming Language :: Python :: 3.5',
74 'Programming Language :: Python :: 3.6',
John Asmuth864311d2014-04-24 15:46:08 -040075 'Development Status :: 5 - Production/Stable',
76 'Intended Audience :: Developers',
77 'License :: OSI Approved :: Apache Software License',
Pat Feratee52ea212015-03-10 12:59:13 -070078 'Operating System :: OS Independent',
John Asmuth864311d2014-04-24 15:46:08 -040079 'Topic :: Internet :: WWW/HTTP',
80 ],
John Asmuth864311d2014-04-24 15:46:08 -040081)