setup.py 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. # Copyright 2014 Google Inc.
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. """Setup installation module for gcs-oauth2-boto-plugin."""
  17. from setuptools import find_packages
  18. from setuptools import setup
  19. long_desc = """
  20. gcs-oauth2-boto-plugin is a Python application whose purpose is to behave as an
  21. auth plugin for the boto auth plugin framework for use with OAuth 2.0
  22. credentials for the Google Cloud Platform. This plugin is compatible with both
  23. user accounts and service accounts, and its functionality is essentially a
  24. wrapper around oauth2client with the addition of automatically caching tokens
  25. for the machine in a thread- and process-safe fashion.
  26. """
  27. requires = [
  28. 'boto>=2.29.1',
  29. 'google-reauth>=0.1.0',
  30. 'httplib2>=0.8',
  31. 'oauth2client>=2.2.0',
  32. 'pyOpenSSL>=0.13',
  33. # Not using 1.02 because of:
  34. # https://code.google.com/p/socksipy-branch/issues/detail?id=3
  35. 'SocksiPy-branch==1.01',
  36. 'retry_decorator>=1.0.0',
  37. 'six>=1.12.0'
  38. ]
  39. extras_require = {
  40. 'dev': [
  41. 'freezegun',
  42. 'mock',
  43. ],
  44. }
  45. setup(
  46. name='gcs-oauth2-boto-plugin',
  47. version='2.5',
  48. url='https://developers.google.com/storage/docs/gspythonlibrary',
  49. download_url=('https://github.com/GoogleCloudPlatform'
  50. '/gcs-oauth2-boto-plugin'),
  51. license='Apache 2.0',
  52. author='Google Inc.',
  53. author_email='gs-team@google.com',
  54. description=('Auth plugin allowing use the use of OAuth 2.0 credentials '
  55. 'for Google Cloud Storage in the Boto library.'),
  56. long_description=long_desc,
  57. zip_safe=True,
  58. platforms='any',
  59. packages=find_packages(exclude=['third_party']),
  60. include_package_data=True,
  61. install_requires=requires,
  62. extras_require=extras_require,
  63. tests_require=extras_require['dev'],
  64. test_suite='gcs_oauth2_boto_plugin.test_oauth2_client',
  65. classifiers=[
  66. 'Development Status :: 7 - Inactive',
  67. 'Intended Audience :: Developers',
  68. 'License :: OSI Approved :: Apache Software License',
  69. 'Programming Language :: Python :: 2',
  70. 'Programming Language :: Python :: 2.7',
  71. 'Programming Language :: Python :: 3',
  72. 'Programming Language :: Python :: 3.4',
  73. 'Programming Language :: Python :: 3.5',
  74. 'Programming Language :: Python :: 3.6',
  75. 'Programming Language :: Python :: 3.7',
  76. 'Topic :: Internet :: WWW/HTTP',
  77. 'Topic :: Software Development :: Libraries :: Python Modules',
  78. ],
  79. )