2
0

setup.py 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. 'six>=1.11',
  19. 'tenacity>=6.0',
  20. 'deprecation>=2.0.7',
  21. 'pyeventsystem<2'
  22. ]
  23. REQS_AWS = [
  24. 'boto3>=1.9.86,<2.0.0'
  25. ]
  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 = [
  30. 'msrestazure<1.0.0',
  31. 'azure-identity<2.0.0',
  32. 'azure-common<2.0.0',
  33. 'azure-mgmt-devtestlabs<10.0.0',
  34. 'azure-mgmt-resource<22.0.0',
  35. 'azure-mgmt-compute<28.0.0',
  36. 'azure-mgmt-network<22.0.0',
  37. 'azure-mgmt-storage<21.0.0',
  38. 'azure-storage-blob<13.0.0',
  39. 'azure-cosmosdb-table<2.0.0',
  40. 'pysftp<1.0.0'
  41. ]
  42. REQS_GCP = [
  43. 'google-api-python-client>=2.0,<3.0.0'
  44. ]
  45. REQS_OPENSTACK = [
  46. 'openstacksdk>=0.12.0,<1.0.0',
  47. 'python-novaclient>=7.0.0,<19.0',
  48. 'python-swiftclient>=3.2.0,<5.0',
  49. 'python-neutronclient>=6.0.0,<8.0',
  50. 'python-keystoneclient>=3.13.0,<5.0'
  51. ]
  52. REQS_FULL = REQS_AWS + REQS_GCP + REQS_OPENSTACK + REQS_AZURE
  53. # httpretty is required with/for moto 1.0.0 or AWS tests fail
  54. REQS_DEV = ([
  55. 'tox>=2.1.1',
  56. 'nose',
  57. 'moto>=1.3.2',
  58. 'sphinx>=1.3.1',
  59. 'pydevd',
  60. 'flake8>=3.3.0',
  61. 'flake8-import-order>=0.12'] + REQS_FULL
  62. )
  63. setup(
  64. name='cloudbridge',
  65. version=version,
  66. description='A simple layer of abstraction over multiple cloud providers.',
  67. long_description=__doc__,
  68. author='Galaxy and GVL Projects',
  69. author_email='help@genome.edu.au',
  70. url='http://cloudbridge.cloudve.org/',
  71. setup_requires=['nose>=1.0'],
  72. install_requires=REQS_BASE,
  73. extras_require={
  74. ':python_version<"3.3"': ['ipaddress'],
  75. 'azure': REQS_AZURE,
  76. 'gcp': REQS_GCP,
  77. 'aws': REQS_AWS,
  78. 'openstack': REQS_OPENSTACK,
  79. 'full': REQS_FULL,
  80. 'dev': REQS_DEV
  81. },
  82. packages=find_packages(),
  83. license='MIT',
  84. classifiers=[
  85. 'Development Status :: 5 - Production/Stable',
  86. 'Environment :: Console',
  87. 'Intended Audience :: Developers',
  88. 'Intended Audience :: System Administrators',
  89. 'License :: OSI Approved :: MIT License',
  90. 'Operating System :: OS Independent',
  91. 'Programming Language :: Python',
  92. 'Topic :: Software Development :: Libraries :: Python Modules',
  93. 'Programming Language :: Python :: 2.7',
  94. 'Programming Language :: Python :: 3',
  95. 'Programming Language :: Python :: 3.4',
  96. 'Programming Language :: Python :: 3.5',
  97. 'Programming Language :: Python :: 3.6',
  98. 'Programming Language :: Python :: Implementation :: CPython'],
  99. test_suite="tests"
  100. )