setup.py 3.0 KB

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