setup.py 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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 = ['boto3>=1.9.86']
  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. 'sphinx>=1.3.1',
  57. 'pydevd',
  58. 'flake8>=3.3.0',
  59. 'flake8-import-order>=0.12'] + REQS_FULL
  60. )
  61. setup(
  62. name='cloudbridge',
  63. version=version,
  64. description='A simple layer of abstraction over multiple cloud providers.',
  65. long_description=__doc__,
  66. author='Galaxy and GVL Projects',
  67. author_email='help@genome.edu.au',
  68. url='http://cloudbridge.cloudve.org/',
  69. setup_requires=['nose>=1.0'],
  70. install_requires=REQS_FULL,
  71. extras_require={
  72. ':python_version<"3.3"': ['ipaddress'],
  73. 'full': REQS_FULL,
  74. 'dev': REQS_DEV
  75. },
  76. packages=find_packages(),
  77. license='MIT',
  78. classifiers=[
  79. 'Development Status :: 4 - Beta',
  80. 'Environment :: Console',
  81. 'Intended Audience :: Developers',
  82. 'Intended Audience :: System Administrators',
  83. 'License :: OSI Approved :: MIT License',
  84. 'Operating System :: OS Independent',
  85. 'Programming Language :: Python',
  86. 'Topic :: Software Development :: Libraries :: Python Modules',
  87. 'Programming Language :: Python :: 2.7',
  88. 'Programming Language :: Python :: 3',
  89. 'Programming Language :: Python :: 3.4',
  90. 'Programming Language :: Python :: 3.5',
  91. 'Programming Language :: Python :: 3.6',
  92. 'Programming Language :: Python :: Implementation :: CPython'],
  93. test_suite="test",
  94. dependency_links=[
  95. "git+git://github.com/CloudVE/pyeventsystem.git#egg=pyeventsystem"
  96. ]
  97. )