blob: 8a3c867f348eb9e22fd1824bf9d465eed9677913 [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"""
20
21import setup_utils
22
Joe Gregorio6429bf62011-03-01 22:53:21 -080023packages = [
24 'apiclient',
25 'oauth2client',
26 'apiclient.ext',
27 'apiclient.contrib',
28 'apiclient.contrib.buzz',
29 'apiclient.contrib.latitude',
30 'apiclient.contrib.moderator',
Joe Gregorio4258d6b2011-03-18 10:20:16 -040031 'uritemplate',
Joe Gregorio6429bf62011-03-01 22:53:21 -080032]
33
Joe Gregorio4258d6b2011-03-18 10:20:16 -040034third_party_reqs = ['httplib2']
Tom Miller7c95d812010-10-11 11:50:52 -070035
36# Don't clobber installed versions of third party libraries
37# with what we include.
Joe Gregorio6429bf62011-03-01 22:53:21 -080038packages.extend(setup_utils.get_missing_requirements(third_party_reqs ))
Tom Miller7c95d812010-10-11 11:50:52 -070039
40try:
41 # Some people prefer setuptools, and may have that installed
42 from setuptools import setup
43except ImportError:
44 from distutils.core import setup
Tom Miller7c95d812010-10-11 11:50:52 -070045
Joe Gregorio3ad5e9a2010-12-09 15:01:04 -050046long_desc = """The Google API Client for Python is a client library for
Tom Miller7c95d812010-10-11 11:50:52 -070047accessing the Buzz, Moderator, and Latitude APIs."""
48
Joe Gregorio48d361f2010-08-18 13:19:21 -040049setup(name="google-api-python-client",
Joe Gregorio4258d6b2011-03-18 10:20:16 -040050 version="1.0alpha2",
Joe Gregorio48d361f2010-08-18 13:19:21 -040051 description="Google API Client Library for Python",
Tom Miller7c95d812010-10-11 11:50:52 -070052 long_description=long_desc,
Joe Gregorio48d361f2010-08-18 13:19:21 -040053 author="Joe Gregorio",
54 author_email="jcgregorio@google.com",
55 url="http://code.google.com/p/google-api-python-client/",
Tom Miller7c95d812010-10-11 11:50:52 -070056 packages=packages,
Joe Gregorio6429bf62011-03-01 22:53:21 -080057 package_data={
58 'apiclient': ['contrib/*/*.json']
59 },
Tom Miller7c95d812010-10-11 11:50:52 -070060 license="Apache 2.0",
Joe Gregorio4258d6b2011-03-18 10:20:16 -040061 install_requires = ['python-gflags', 'oauth2'],
Tom Miller7c95d812010-10-11 11:50:52 -070062 keywords="google api client",
63 classifiers=['Development Status :: 3 - Alpha',
64 'Intended Audience :: Developers',
65 'License :: OSI Approved :: Apache Software License',
66 'Operating System :: POSIX',
67 'Topic :: Internet :: WWW/HTTP'])
68