2
0

setup.py 3.2 KB

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