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