setup.py 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. """Setup script for oauth2client.
  15. Also installs included versions of third party libraries, if those libraries
  16. are not already installed.
  17. """
  18. from __future__ import print_function
  19. import sys
  20. from setuptools import find_packages
  21. from setuptools import setup
  22. import oauth2client
  23. if sys.version_info < (2, 7):
  24. print('oauth2client requires python2 version >= 2.7.', file=sys.stderr)
  25. sys.exit(1)
  26. if (3, 1) <= sys.version_info < (3, 4):
  27. print('oauth2client requires python3 version >= 3.4.', file=sys.stderr)
  28. sys.exit(1)
  29. install_requires = [
  30. 'httplib2>=0.9.1',
  31. 'pyasn1>=0.1.7',
  32. 'pyasn1-modules>=0.0.5',
  33. 'rsa>=3.1.4',
  34. 'six>=1.6.1',
  35. ]
  36. long_desc = """
  37. oauth2client is a client library for OAuth 2.0.
  38. Note: oauth2client is now deprecated. No more features will be added to the
  39. libraries and the core team is turning down support. We recommend you use
  40. `google-auth <https://google-auth.readthedocs.io>`__ and
  41. `oauthlib <http://oauthlib.readthedocs.io/>`__.
  42. """
  43. version = oauth2client.__version__
  44. setup(
  45. name='oauth2client',
  46. version=version,
  47. description='OAuth 2.0 client library',
  48. long_description=long_desc,
  49. author='Google Inc.',
  50. author_email='jonwayne+oauth2client@google.com',
  51. url='http://github.com/google/oauth2client/',
  52. install_requires=install_requires,
  53. packages=find_packages(exclude=('tests*',)),
  54. license='Apache 2.0',
  55. keywords='google oauth 2.0 http client',
  56. classifiers=[
  57. 'Programming Language :: Python :: 2',
  58. 'Programming Language :: Python :: 2.7',
  59. 'Programming Language :: Python :: 3',
  60. 'Programming Language :: Python :: 3.4',
  61. 'Programming Language :: Python :: 3.5',
  62. 'Development Status :: 7 - Inactive',
  63. 'Intended Audience :: Developers',
  64. 'License :: OSI Approved :: Apache Software License',
  65. 'Operating System :: POSIX',
  66. 'Topic :: Internet :: WWW/HTTP',
  67. ],
  68. )