blob: 6012693ec217feb9329d0f4e4dfaebfe50bbcd20 [file] [log] [blame]
John Asmuth864311d2014-04-24 15:46:08 -04001# Copyright (C) 2014 Google Inc.
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"""
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 = [
John Asmuth864311d2014-04-24 15:46:08 -040023 'googleapiclient',
24 'oauth2client',
25 'uritemplate',
26]
Joe Gregorio5cdaa512011-03-28 16:41:55 -040027
Joe Gregoriod667c9d2011-10-17 13:25:24 -040028install_requires = [
Joe Gregorio3cc9a452013-03-07 10:08:39 -050029 'httplib2>=0.8',
John Asmuth864311d2014-04-24 15:46:08 -040030]
Joe Gregorio6429bf62011-03-01 22:53:21 -080031
Joe Gregorio14eb9732013-03-13 09:27:53 -040032needs_json = False
Joe Gregoriod667c9d2011-10-17 13:25:24 -040033try:
34 import json
Joe Gregoriod667c9d2011-10-17 13:25:24 -040035except ImportError:
Joe Gregorio921b8e42012-06-15 15:51:51 -040036 try:
37 import simplejson
Joe Gregorio921b8e42012-06-15 15:51:51 -040038 except ImportError:
39 needs_json = True
Tom Miller7c95d812010-10-11 11:50:52 -070040
Joe Gregoriod667c9d2011-10-17 13:25:24 -040041if needs_json:
42 install_requires.append('simplejson')
Tom Miller7c95d812010-10-11 11:50:52 -070043
Joe Gregorio3ad5e9a2010-12-09 15:01:04 -050044long_desc = """The Google API Client for Python is a client library for
Joe Gregorioc4fc0952011-11-09 12:21:11 -050045accessing the Plus, Moderator, and many other Google APIs."""
Tom Miller7c95d812010-10-11 11:50:52 -070046
John Asmuth864311d2014-04-24 15:46:08 -040047import googleapiclient
48version = googleapiclient.__version__
Joe Gregorio696583c2012-03-21 15:20:51 -040049
John Asmuth864311d2014-04-24 15:46:08 -040050setup(
51 name="google-api-python-client",
52 version=version,
53 description="Google API Client Library for Python",
54 long_description=long_desc,
55 author="Joe Gregorio",
56 author_email="jcgregorio@google.com",
57 url="http://github.com/google/google-api-python-client/",
58 install_requires=install_requires,
59 packages=packages,
60 package_data={},
61 license="Apache 2.0",
62 keywords="google api client",
63 classifiers=[
64 'Development Status :: 5 - Production/Stable',
65 'Intended Audience :: Developers',
66 'License :: OSI Approved :: Apache Software License',
67 'Operating System :: POSIX',
68 'Topic :: Internet :: WWW/HTTP',
69 ],
70 package_dir={
71 'oauth2client':'oauth2client/oauth2client',
72 'uritemplate':'oauth2client/uritemplate',
73 },
74)