2
0

setup.py 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. ]
  24. REQS_AWS = ['boto3<1.8.0']
  25. # Install azure>=3.0.0 package to find which of the azure libraries listed
  26. # below are compatible with each other. List individual libraries instead
  27. # of using the azure umbrella package to speed up installation.
  28. REQS_AZURE = ['msrest>=0.5.4,<0.6',
  29. 'msrestazure==0.5.0',
  30. 'azure-common==1.1.14',
  31. 'azure-mgmt-devtestlabs==2.2.0',
  32. 'azure-mgmt-resource==2.0.0',
  33. 'azure-mgmt-compute==4.0.1',
  34. 'azure-mgmt-network>=2.0.1,<=2.1',
  35. 'azure-mgmt-storage==2.0.0',
  36. 'azure-storage-blob==1.3.1',
  37. 'azure-cosmosdb-table==1.0.4',
  38. 'pysftp==0.2.9']
  39. REQS_OPENSTACK = [
  40. 'openstacksdk>=0.12.0,<=0.17',
  41. 'python-novaclient>=7.0.0,<=11.0',
  42. 'python-glanceclient>=2.5.0,<=2.12',
  43. 'python-cinderclient>=1.9.0,<=4.0',
  44. 'python-swiftclient>=3.2.0,<=3.6',
  45. 'python-neutronclient>=6.0.0,<=6.9',
  46. 'python-keystoneclient>=3.13.0,<=3.17'
  47. ]
  48. REQS_FULL = REQS_BASE + REQS_AWS + REQS_AZURE + REQS_OPENSTACK
  49. # httpretty is required with/for moto 1.0.0 or AWS tests fail
  50. REQS_DEV = ([
  51. 'tox>=2.1.1',
  52. 'nose',
  53. 'moto>=1.3.2',
  54. 'sphinx>=1.3.1',
  55. 'pydevd',
  56. 'flake8>=3.3.0',
  57. 'flake8-import-order>=0.12'] + REQS_FULL
  58. )
  59. setup(
  60. name='cloudbridge',
  61. version=version,
  62. description='A simple layer of abstraction over multiple cloud providers.',
  63. long_description=__doc__,
  64. author='Galaxy and GVL Projects',
  65. author_email='help@genome.edu.au',
  66. url='http://cloudbridge.cloudve.org/',
  67. setup_requires=['nose>=1.0'],
  68. install_requires=REQS_FULL,
  69. extras_require={
  70. ':python_version<"3.3"': ['ipaddress'],
  71. 'full': REQS_FULL,
  72. 'dev': REQS_DEV
  73. },
  74. packages=find_packages(),
  75. license='MIT',
  76. classifiers=[
  77. 'Development Status :: 4 - Beta',
  78. 'Environment :: Console',
  79. 'Intended Audience :: Developers',
  80. 'Intended Audience :: System Administrators',
  81. 'License :: OSI Approved :: MIT License',
  82. 'Operating System :: OS Independent',
  83. 'Programming Language :: Python',
  84. 'Topic :: Software Development :: Libraries :: Python Modules',
  85. 'Programming Language :: Python :: 2.7',
  86. 'Programming Language :: Python :: 3',
  87. 'Programming Language :: Python :: 3.4',
  88. 'Programming Language :: Python :: 3.5',
  89. 'Programming Language :: Python :: 3.6',
  90. 'Programming Language :: Python :: Implementation :: CPython',
  91. 'Programming Language :: Python :: Implementation :: PyPy'],
  92. test_suite="test"
  93. )