OLD | NEW |
(Empty) | |
| 1 # 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. |
| 14 |
| 15 """Setup script for oauth2client. |
| 16 |
| 17 Also installs included versions of third party libraries, if those libraries |
| 18 are not already installed. |
| 19 """ |
| 20 from setuptools import setup |
| 21 |
| 22 packages = [ |
| 23 'oauth2client', |
| 24 ] |
| 25 |
| 26 install_requires = [ |
| 27 'httplib2>=0.8', |
| 28 'python-gflags', |
| 29 ] |
| 30 |
| 31 needs_json = True |
| 32 try: |
| 33 import json |
| 34 needs_json = False |
| 35 except ImportError: |
| 36 try: |
| 37 import simplejson |
| 38 needs_json = False |
| 39 except ImportError: |
| 40 needs_json = True |
| 41 |
| 42 if needs_json: |
| 43 install_requires.append('simplejson') |
| 44 |
| 45 long_desc = """The oauth2client is a client library for OAuth 2.0.""" |
| 46 |
| 47 import oauth2client |
| 48 version = oauth2client.__version__ |
| 49 |
| 50 setup(name="oauth2client", |
| 51 version=version, |
| 52 description="OAuth 2.0 client library", |
| 53 long_description=long_desc, |
| 54 author="Joe Gregorio", |
| 55 author_email="jcgregorio@google.com", |
| 56 url="http://code.google.com/p/google-api-python-client/", |
| 57 install_requires=install_requires, |
| 58 packages=packages, |
| 59 license="Apache 2.0", |
| 60 keywords="google oauth 2.0 http client", |
| 61 classifiers=['Development Status :: 4 - Beta', |
| 62 'Intended Audience :: Developers', |
| 63 'License :: OSI Approved :: Apache Software License', |
| 64 'Operating System :: POSIX', |
| 65 'Topic :: Internet :: WWW/HTTP']) |
OLD | NEW |