Craig Citro | 751b7fb | 2014-09-23 11:20:38 -0700 | [diff] [blame] | 1 | # Copyright 2014 Google Inc. All Rights Reserved. |
Tom Miller | 7c95d81 | 2010-10-11 11:50:52 -0700 | [diff] [blame] | 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. |
Joe Gregorio | 48d361f | 2010-08-18 13:19:21 -0400 | [diff] [blame] | 14 | |
Tom Miller | 7c95d81 | 2010-10-11 11:50:52 -0700 | [diff] [blame] | 15 | """Setup script for Google API Python client. |
| 16 | |
| 17 | Also installs included versions of third party libraries, if those libraries |
| 18 | are not already installed. |
| 19 | """ |
Craig Citro | a540cf7 | 2014-08-18 22:50:58 -0700 | [diff] [blame] | 20 | from __future__ import print_function |
| 21 | |
| 22 | import sys |
| 23 | |
Jon Wayne Parrott | 85c2c6d | 2017-01-05 12:34:49 -0800 | [diff] [blame] | 24 | if sys.version_info < (2, 7): |
| 25 | print('google-api-python-client requires python version >= 2.7.', |
Craig Citro | 28467c8 | 2014-10-09 00:15:00 -0700 | [diff] [blame] | 26 | file=sys.stderr) |
Craig Citro | a540cf7 | 2014-08-18 22:50:58 -0700 | [diff] [blame] | 27 | sys.exit(1) |
Christopher Wilcox | 8f4a530 | 2018-12-14 12:24:44 -0800 | [diff] [blame] | 28 | if (3, 1) <= sys.version_info < (3, 4): |
| 29 | print('google-api-python-client requires python3 version >= 3.4.', |
Pat Ferate | e52ea21 | 2015-03-10 12:59:13 -0700 | [diff] [blame] | 30 | file=sys.stderr) |
| 31 | sys.exit(1) |
Craig Citro | a540cf7 | 2014-08-18 22:50:58 -0700 | [diff] [blame] | 32 | |
Joe Gregorio | 336b978 | 2011-09-15 14:35:54 -0400 | [diff] [blame] | 33 | from setuptools import setup |
Joe Gregorio | 01b9270 | 2011-03-23 21:44:42 -0400 | [diff] [blame] | 34 | |
Joe Gregorio | 6429bf6 | 2011-03-01 22:53:21 -0800 | [diff] [blame] | 35 | packages = [ |
Craig Citro | 7547de6 | 2014-10-13 09:21:08 -0700 | [diff] [blame] | 36 | 'apiclient', |
John Asmuth | 864311d | 2014-04-24 15:46:08 -0400 | [diff] [blame] | 37 | 'googleapiclient', |
Takashi Matsuo | 2ec6efa | 2015-09-03 13:26:24 -0700 | [diff] [blame] | 38 | 'googleapiclient/discovery_cache', |
John Asmuth | 864311d | 2014-04-24 15:46:08 -0400 | [diff] [blame] | 39 | ] |
Joe Gregorio | 5cdaa51 | 2011-03-28 16:41:55 -0400 | [diff] [blame] | 40 | |
Joe Gregorio | d667c9d | 2011-10-17 13:25:24 -0400 | [diff] [blame] | 41 | install_requires = [ |
Jon Wayne Parrott | 6394b66 | 2016-10-28 09:49:34 -0700 | [diff] [blame] | 42 | 'httplib2>=0.9.2,<1dev', |
Helen Koike | 9eb303e | 2018-05-31 19:11:34 -0300 | [diff] [blame] | 43 | 'google-auth>=1.4.1', |
| 44 | 'google-auth-httplib2>=0.0.3', |
Jon Wayne Parrott | e2ce004 | 2016-10-14 11:02:09 -0700 | [diff] [blame] | 45 | 'six>=1.6.1,<2dev', |
| 46 | 'uritemplate>=3.0.0,<4dev', |
John Asmuth | 864311d | 2014-04-24 15:46:08 -0400 | [diff] [blame] | 47 | ] |
Joe Gregorio | 6429bf6 | 2011-03-01 22:53:21 -0800 | [diff] [blame] | 48 | |
Joe Gregorio | 3ad5e9a | 2010-12-09 15:01:04 -0500 | [diff] [blame] | 49 | long_desc = """The Google API Client for Python is a client library for |
Joe Gregorio | c4fc095 | 2011-11-09 12:21:11 -0500 | [diff] [blame] | 50 | accessing the Plus, Moderator, and many other Google APIs.""" |
Tom Miller | 7c95d81 | 2010-10-11 11:50:52 -0700 | [diff] [blame] | 51 | |
John Asmuth | 864311d | 2014-04-24 15:46:08 -0400 | [diff] [blame] | 52 | import googleapiclient |
| 53 | version = googleapiclient.__version__ |
Joe Gregorio | 696583c | 2012-03-21 15:20:51 -0400 | [diff] [blame] | 54 | |
John Asmuth | 864311d | 2014-04-24 15:46:08 -0400 | [diff] [blame] | 55 | setup( |
| 56 | name="google-api-python-client", |
| 57 | version=version, |
| 58 | description="Google API Client Library for Python", |
| 59 | long_description=long_desc, |
Craig Citro | 9b90677 | 2014-10-09 00:21:10 -0700 | [diff] [blame] | 60 | author="Google Inc.", |
John Asmuth | 864311d | 2014-04-24 15:46:08 -0400 | [diff] [blame] | 61 | url="http://github.com/google/google-api-python-client/", |
| 62 | install_requires=install_requires, |
Christopher Wilcox | 8f4a530 | 2018-12-14 12:24:44 -0800 | [diff] [blame] | 63 | python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*', |
John Asmuth | 864311d | 2014-04-24 15:46:08 -0400 | [diff] [blame] | 64 | packages=packages, |
| 65 | package_data={}, |
| 66 | license="Apache 2.0", |
| 67 | keywords="google api client", |
| 68 | classifiers=[ |
Pat Ferate | e52ea21 | 2015-03-10 12:59:13 -0700 | [diff] [blame] | 69 | 'Programming Language :: Python :: 2', |
Pat Ferate | e52ea21 | 2015-03-10 12:59:13 -0700 | [diff] [blame] | 70 | 'Programming Language :: Python :: 2.7', |
| 71 | 'Programming Language :: Python :: 3', |
Pat Ferate | e52ea21 | 2015-03-10 12:59:13 -0700 | [diff] [blame] | 72 | 'Programming Language :: Python :: 3.4', |
Jon Wayne Parrott | afe134b | 2017-02-08 10:20:57 -0800 | [diff] [blame] | 73 | 'Programming Language :: Python :: 3.5', |
| 74 | 'Programming Language :: Python :: 3.6', |
Bu Sun Kim | 61cd925 | 2018-11-20 08:23:51 -0800 | [diff] [blame] | 75 | 'Programming Language :: Python :: 3.7', |
John Asmuth | 864311d | 2014-04-24 15:46:08 -0400 | [diff] [blame] | 76 | 'Development Status :: 5 - Production/Stable', |
| 77 | 'Intended Audience :: Developers', |
| 78 | 'License :: OSI Approved :: Apache Software License', |
Pat Ferate | e52ea21 | 2015-03-10 12:59:13 -0700 | [diff] [blame] | 79 | 'Operating System :: OS Independent', |
John Asmuth | 864311d | 2014-04-24 15:46:08 -0400 | [diff] [blame] | 80 | 'Topic :: Internet :: WWW/HTTP', |
| 81 | ], |
John Asmuth | 864311d | 2014-04-24 15:46:08 -0400 | [diff] [blame] | 82 | ) |