blob: a34514f2eaea4a2165fcbce9901d4a72c9af8fd7 [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
Tom Millerb10a2402010-11-01 10:14:12 -070023packages = ['apiclient', 'apiclient.ext', 'uritemplate']
Tom Miller7c95d812010-10-11 11:50:52 -070024
25# Don't clobber installed versions of third party libraries
26# with what we include.
27packages.extend(setup_utils.get_missing_requirements())
28print 'Installing the following packages: '
29print str(packages)[1:-1]
30
31try:
32 # Some people prefer setuptools, and may have that installed
33 from setuptools import setup
34except ImportError:
35 from distutils.core import setup
36 print 'Loaded distutils.core'
37else:
38 print 'Loaded setuptools'
39
40long_desc = """The Google API Client for Python is a client library for
41accessing the Buzz, Moderator, and Latitude APIs."""
42
Joe Gregorio48d361f2010-08-18 13:19:21 -040043setup(name="google-api-python-client",
44 version="0.1",
45 description="Google API Client Library for Python",
Tom Miller7c95d812010-10-11 11:50:52 -070046 long_description=long_desc,
Joe Gregorio48d361f2010-08-18 13:19:21 -040047 author="Joe Gregorio",
48 author_email="jcgregorio@google.com",
49 url="http://code.google.com/p/google-api-python-client/",
Tom Miller7c95d812010-10-11 11:50:52 -070050 packages=packages,
51 package_data={'apiclient':['contrib/buzz/future.json',
52 'contrib/latitude/future.json',
53 'contrib/moderator/future.json']},
54 license="Apache 2.0",
55 keywords="google api client",
56 classifiers=['Development Status :: 3 - Alpha',
57 'Intended Audience :: Developers',
58 'License :: OSI Approved :: Apache Software License',
59 'Operating System :: POSIX',
60 'Topic :: Internet :: WWW/HTTP'])
61
62print 'Setup complete!'