blob: b6fee4e9757e907d1e69d9a256b74ed5a6cf56fb [file] [log] [blame]
Tom Miller7c95d812010-10-11 11:50:52 -07001# Copyright (C) 2010 Google Inc.
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 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"""
Joe Gregorio336b9782011-09-15 14:35:54 -040020from setuptools import setup
Joe Gregorio01b92702011-03-23 21:44:42 -040021
Joe Gregorio6429bf62011-03-01 22:53:21 -080022packages = [
23 'apiclient',
24 'oauth2client',
25 'apiclient.ext',
26 'apiclient.contrib',
Joe Gregorio6429bf62011-03-01 22:53:21 -080027 'apiclient.contrib.latitude',
28 'apiclient.contrib.moderator',
Joe Gregorio4258d6b2011-03-18 10:20:16 -040029 'uritemplate',
Joe Gregoriod667c9d2011-10-17 13:25:24 -040030 ]
Joe Gregorio5cdaa512011-03-28 16:41:55 -040031
Joe Gregoriod667c9d2011-10-17 13:25:24 -040032install_requires = [
Joe Gregorioc2928a42012-02-23 13:43:59 -050033 'httplib2>=0.7.2',
Joe Gregoriod667c9d2011-10-17 13:25:24 -040034 'oauth2',
35 'python-gflags',
36 ]
Joe Gregorio6429bf62011-03-01 22:53:21 -080037
Joe Gregoriod667c9d2011-10-17 13:25:24 -040038try:
39 import json
40 needs_json = False
41except ImportError:
42 needs_json = True
Tom Miller7c95d812010-10-11 11:50:52 -070043
Joe Gregoriod667c9d2011-10-17 13:25:24 -040044if needs_json:
45 install_requires.append('simplejson')
Tom Miller7c95d812010-10-11 11:50:52 -070046
Joe Gregorio3ad5e9a2010-12-09 15:01:04 -050047long_desc = """The Google API Client for Python is a client library for
Joe Gregorioc4fc0952011-11-09 12:21:11 -050048accessing the Plus, Moderator, and many other Google APIs."""
Tom Miller7c95d812010-10-11 11:50:52 -070049
Joe Gregorio48d361f2010-08-18 13:19:21 -040050setup(name="google-api-python-client",
Joe Gregorio2401bd62011-12-15 09:18:49 -050051 version="1.0beta7",
Joe Gregorio48d361f2010-08-18 13:19:21 -040052 description="Google API Client Library for Python",
Tom Miller7c95d812010-10-11 11:50:52 -070053 long_description=long_desc,
Joe Gregorio48d361f2010-08-18 13:19:21 -040054 author="Joe Gregorio",
55 author_email="jcgregorio@google.com",
56 url="http://code.google.com/p/google-api-python-client/",
Joe Gregorio5cdaa512011-03-28 16:41:55 -040057 install_requires=install_requires,
Tom Miller7c95d812010-10-11 11:50:52 -070058 packages=packages,
Joe Gregorio6429bf62011-03-01 22:53:21 -080059 package_data={
60 'apiclient': ['contrib/*/*.json']
61 },
Joe Gregorio8e9f0e92011-10-28 14:34:12 -040062 scripts=['bin/enable-app-engine-project'],
Tom Miller7c95d812010-10-11 11:50:52 -070063 license="Apache 2.0",
64 keywords="google api client",
Joe Gregorioc47fab72011-07-06 08:29:20 -040065 classifiers=['Development Status :: 4 - Beta',
Tom Miller7c95d812010-10-11 11:50:52 -070066 'Intended Audience :: Developers',
67 'License :: OSI Approved :: Apache Software License',
68 'Operating System :: POSIX',
69 'Topic :: Internet :: WWW/HTTP'])