1# Copyright 2014 Google Inc. All Rights Reserved. 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 15"""Setup script for Google API Python client. 16 17Also installs included versions of third party libraries, if those libraries 18are not already installed. 19""" 20from __future__ import print_function 21 22import sys 23 24if sys.version_info < (2, 7): 25 print("google-api-python-client requires python version >= 2.7.", file=sys.stderr) 26 sys.exit(1) 27if (3, 1) <= sys.version_info < (3, 4): 28 print("google-api-python-client requires python3 version >= 3.4.", file=sys.stderr) 29 sys.exit(1) 30 31from setuptools import setup 32 33packages = ["apiclient", "googleapiclient", "googleapiclient/discovery_cache"] 34 35install_requires = [ 36 "httplib2>=0.17.0,<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", 41] 42 43long_desc = """The Google API Client for Python is a client library for 44accessing the Plus, Moderator, and many other Google APIs.""" 45 46import googleapiclient 47 48version = googleapiclient.__version__ 49 50setup( 51 name="google-api-python-client", 52 version=version, 53 description="Google API Client Library for Python", 54 long_description=long_desc, 55 author="Google Inc.", 56 url="http://github.com/google/google-api-python-client/", 57 install_requires=install_requires, 58 python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*", 59 packages=packages, 60 package_data={}, 61 license="Apache 2.0", 62 keywords="google api client", 63 classifiers=[ 64 "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", 76 ], 77) 78