setup.py 3.4 KB

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