blob: 643df2ed7cc5469e008ea4dc0c5b703b1eeec8bd [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):
Bu Sun Kim66bb32c2019-10-30 10:11:58 -070025 print("google-api-python-client requires python version >= 2.7.", file=sys.stderr)
26 sys.exit(1)
Christopher Wilcox8f4a5302018-12-14 12:24:44 -080027if (3, 1) <= sys.version_info < (3, 4):
Bu Sun Kim66bb32c2019-10-30 10:11:58 -070028 print("google-api-python-client requires python3 version >= 3.4.", file=sys.stderr)
29 sys.exit(1)
Craig Citroa540cf72014-08-18 22:50:58 -070030
Joe Gregorio336b9782011-09-15 14:35:54 -040031from setuptools import setup
Joe Gregorio01b92702011-03-23 21:44:42 -040032
Bu Sun Kim66bb32c2019-10-30 10:11:58 -070033packages = ["apiclient", "googleapiclient", "googleapiclient/discovery_cache"]
Joe Gregorio5cdaa512011-03-28 16:41:55 -040034
Joe Gregoriod667c9d2011-10-17 13:25:24 -040035install_requires = [
Bu Sun Kim66bb32c2019-10-30 10:11:58 -070036 "httplib2>=0.9.2,<1dev",
37 "google-auth>=1.4.1",
38 "google-auth-httplib2>=0.0.3",
39 "six>=1.6.1,<2dev",
40 "uritemplate>=3.0.0,<4dev",
John Asmuth864311d2014-04-24 15:46:08 -040041]
Joe Gregorio6429bf62011-03-01 22:53:21 -080042
Joe Gregorio3ad5e9a2010-12-09 15:01:04 -050043long_desc = """The Google API Client for Python is a client library for
Joe Gregorioc4fc0952011-11-09 12:21:11 -050044accessing the Plus, Moderator, and many other Google APIs."""
Tom Miller7c95d812010-10-11 11:50:52 -070045
John Asmuth864311d2014-04-24 15:46:08 -040046import googleapiclient
Bu Sun Kim66bb32c2019-10-30 10:11:58 -070047
John Asmuth864311d2014-04-24 15:46:08 -040048version = googleapiclient.__version__
Joe Gregorio696583c2012-03-21 15:20:51 -040049
John Asmuth864311d2014-04-24 15:46:08 -040050setup(
51 name="google-api-python-client",
52 version=version,
53 description="Google API Client Library for Python",
54 long_description=long_desc,
Craig Citro9b906772014-10-09 00:21:10 -070055 author="Google Inc.",
John Asmuth864311d2014-04-24 15:46:08 -040056 url="http://github.com/google/google-api-python-client/",
57 install_requires=install_requires,
Bu Sun Kim66bb32c2019-10-30 10:11:58 -070058 python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
John Asmuth864311d2014-04-24 15:46:08 -040059 packages=packages,
60 package_data={},
61 license="Apache 2.0",
62 keywords="google api client",
63 classifiers=[
Bu Sun Kim66bb32c2019-10-30 10:11:58 -070064 "Programming Language :: Python :: 2",
65 "Programming Language :: Python :: 2.7",
66 "Programming Language :: Python :: 3",
67 "Programming Language :: Python :: 3.4",
68 "Programming Language :: Python :: 3.5",
69 "Programming Language :: Python :: 3.6",
70 "Programming Language :: Python :: 3.7",
71 "Development Status :: 5 - Production/Stable",
72 "Intended Audience :: Developers",
73 "License :: OSI Approved :: Apache Software License",
74 "Operating System :: OS Independent",
75 "Topic :: Internet :: WWW/HTTP",
John Asmuth864311d2014-04-24 15:46:08 -040076 ],
John Asmuth864311d2014-04-24 15:46:08 -040077)