2
0

setup.py 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. """
  2. CloudBridge provides a uniform interface to multiple IaaS cloud providers.
  3. """
  4. import ast
  5. import os
  6. import re
  7. from setuptools import find_packages
  8. from setuptools import setup
  9. # Cannot use "from cloudbridge import get_version" because that would try to
  10. # import the six package which may not be installed yet.
  11. reg = re.compile(r'__version__\s*=\s*(.+)')
  12. with open(os.path.join('cloudbridge', '__init__.py')) as f:
  13. for line in f:
  14. m = reg.match(line)
  15. if m:
  16. version = ast.literal_eval(m.group(1))
  17. break
  18. REQS_BASE = [
  19. 'six>=1.11',
  20. 'tenacity>=4.12.0,<=5.0',
  21. 'cachetools>=2.1.0',
  22. 'deprecated>=1.2.3',
  23. 'pyeventsystem'
  24. ]
  25. REQS_AWS = [
  26. 'boto3>=1.9.86'
  27. ]
  28. # Install azure>=3.0.0 package to find which of the azure libraries listed
  29. # below are compatible with each other. List individual libraries instead
  30. # of using the azure umbrella package to speed up installation.
  31. REQS_AZURE = [
  32. 'msrest>=0.5.4,<0.6',
  33. 'msrestazure==0.5.0',
  34. 'azure-common==1.1.14',
  35. 'azure-mgmt-devtestlabs==2.2.0',
  36. 'azure-mgmt-resource==2.0.0',
  37. 'azure-mgmt-compute==4.0.1',
  38. 'azure-mgmt-network>=2.0.1,<=2.1',
  39. 'azure-mgmt-storage==2.0.0',
  40. 'azure-storage-blob==1.3.1',
  41. 'azure-cosmosdb-table==1.0.4',
  42. 'pysftp==0.2.9'
  43. ]
  44. REQS_GCP = [
  45. 'google-api-python-client',
  46. 'oauth2client'
  47. ]
  48. REQS_OPENSTACK = [
  49. 'openstacksdk>=0.12.0,<=0.17',
  50. 'python-novaclient>=7.0.0,<=11.0',
  51. 'python-glanceclient>=2.5.0,<=2.12',
  52. 'python-cinderclient>=1.9.0,<=4.0',
  53. 'python-swiftclient>=3.2.0,<=3.6',
  54. 'python-neutronclient>=6.0.0,<=6.9',
  55. 'python-keystoneclient>=3.13.0,<=3.17'
  56. ]
  57. REQS_FULL = REQS_BASE + REQS_AWS + REQS_AZURE + REQS_GCP + REQS_OPENSTACK
  58. # httpretty is required with/for moto 1.0.0 or AWS tests fail
  59. REQS_DEV = ([
  60. 'tox>=2.1.1',
  61. 'nose',
  62. 'moto>=1.3.2',
  63. 'sphinx>=1.3.1',
  64. 'pydevd',
  65. 'flake8>=3.3.0',
  66. 'flake8-import-order>=0.12'] + REQS_FULL
  67. )
  68. setup(
  69. name='cloudbridge',
  70. version=version,
  71. description='A simple layer of abstraction over multiple cloud providers.',
  72. long_description=__doc__,
  73. author='Galaxy and GVL Projects',
  74. author_email='help@genome.edu.au',
  75. url='http://cloudbridge.cloudve.org/',
  76. setup_requires=['nose>=1.0'],
  77. install_requires=REQS_FULL,
  78. extras_require={
  79. ':python_version<"3.3"': ['ipaddress'],
  80. 'full': REQS_FULL,
  81. 'dev': REQS_DEV
  82. },
  83. packages=find_packages(),
  84. license='MIT',
  85. classifiers=[
  86. 'Development Status :: 4 - Beta',
  87. 'Environment :: Console',
  88. 'Intended Audience :: Developers',
  89. 'Intended Audience :: System Administrators',
  90. 'License :: OSI Approved :: MIT License',
  91. 'Operating System :: OS Independent',
  92. 'Programming Language :: Python',
  93. 'Topic :: Software Development :: Libraries :: Python Modules',
  94. 'Programming Language :: Python :: 2.7',
  95. 'Programming Language :: Python :: 3',
  96. 'Programming Language :: Python :: 3.4',
  97. 'Programming Language :: Python :: 3.5',
  98. 'Programming Language :: Python :: 3.6',
  99. 'Programming Language :: Python :: Implementation :: CPython'],
  100. test_suite="test"
  101. )