1# Copyright 2014 Google Inc. All rights reserved. 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 17Also installs included versions of third party libraries, if those libraries 18are not already installed. 19""" 20from __future__ import print_function 21 22import sys 23 24from setuptools import find_packages 25from setuptools import setup 26 27import oauth2client 28 29if sys.version_info < (2, 6): 30 print('oauth2client requires python2 version >= 2.6.', file=sys.stderr) 31 sys.exit(1) 32if (3, 1) <= sys.version_info < (3, 3): 33 print('oauth2client requires python3 version >= 3.3.', file=sys.stderr) 34 sys.exit(1) 35 36install_requires = [ 37 'httplib2>=0.9.1', 38 'pyasn1>=0.1.7', 39 'pyasn1-modules>=0.0.5', 40 'rsa>=3.1.4', 41 'six>=1.6.1', 42] 43 44long_desc = """The oauth2client is a client library for OAuth 2.0.""" 45 46version = oauth2client.__version__ 47 48setup( 49 name="oauth2client", 50 version=version, 51 description="OAuth 2.0 client library", 52 long_description=long_desc, 53 author="Google Inc.", 54 url="http://github.com/google/oauth2client/", 55 install_requires=install_requires, 56 packages=find_packages(), 57 license="Apache 2.0", 58 keywords="google oauth 2.0 http client", 59 classifiers=[ 60 'Programming Language :: Python :: 2', 61 'Programming Language :: Python :: 2.6', 62 'Programming Language :: Python :: 2.7', 63 'Programming Language :: Python :: 3', 64 'Programming Language :: Python :: 3.3', 65 'Programming Language :: Python :: 3.4', 66 'Development Status :: 5 - Production/Stable', 67 'Intended Audience :: Developers', 68 'License :: OSI Approved :: Apache Software License', 69 'Operating System :: POSIX', 70 'Topic :: Internet :: WWW/HTTP', 71 ], 72) 73