blob: d5382464cfee5cff4ddd05e13efb42317fbed539 [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
24if sys.version_info <= (2, 6):
Craig Citro28467c82014-10-09 00:15:00 -070025 print('google-api-python-client requires python version >= 2.6.',
26 file=sys.stderr)
Craig Citroa540cf72014-08-18 22:50:58 -070027 sys.exit(1)
28
Joe Gregorio336b9782011-09-15 14:35:54 -040029from setuptools import setup
Joe Gregorio01b92702011-03-23 21:44:42 -040030
Joe Gregorio6429bf62011-03-01 22:53:21 -080031packages = [
Craig Citro7547de62014-10-13 09:21:08 -070032 'apiclient',
John Asmuth864311d2014-04-24 15:46:08 -040033 'googleapiclient',
John Asmuth864311d2014-04-24 15:46:08 -040034]
Joe Gregorio5cdaa512011-03-28 16:41:55 -040035
Joe Gregoriod667c9d2011-10-17 13:25:24 -040036install_requires = [
Joe Gregorio3cc9a452013-03-07 10:08:39 -050037 'httplib2>=0.8',
Craig Citro28467c82014-10-09 00:15:00 -070038 'oauth2client>=1.3',
Craig Citro951b75f2014-08-18 23:14:20 -070039 'uritemplate>=0.6',
John Asmuth864311d2014-04-24 15:46:08 -040040]
Joe Gregorio6429bf62011-03-01 22:53:21 -080041
Joe Gregorio3ad5e9a2010-12-09 15:01:04 -050042long_desc = """The Google API Client for Python is a client library for
Joe Gregorioc4fc0952011-11-09 12:21:11 -050043accessing the Plus, Moderator, and many other Google APIs."""
Tom Miller7c95d812010-10-11 11:50:52 -070044
John Asmuth864311d2014-04-24 15:46:08 -040045import googleapiclient
46version = googleapiclient.__version__
Joe Gregorio696583c2012-03-21 15:20:51 -040047
John Asmuth864311d2014-04-24 15:46:08 -040048setup(
49 name="google-api-python-client",
50 version=version,
51 description="Google API Client Library for Python",
52 long_description=long_desc,
Craig Citro9b906772014-10-09 00:21:10 -070053 author="Google Inc.",
John Asmuth864311d2014-04-24 15:46:08 -040054 url="http://github.com/google/google-api-python-client/",
55 install_requires=install_requires,
56 packages=packages,
57 package_data={},
58 license="Apache 2.0",
59 keywords="google api client",
60 classifiers=[
61 'Development Status :: 5 - Production/Stable',
62 'Intended Audience :: Developers',
63 'License :: OSI Approved :: Apache Software License',
64 'Operating System :: POSIX',
65 'Topic :: Internet :: WWW/HTTP',
66 ],
John Asmuth864311d2014-04-24 15:46:08 -040067)