setup.py 2.9 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. 'retrying>=1.3.3',
  21. 'oslo.i18n>=3.15.3'
  22. ]
  23. REQS_AWS = ['boto3']
  24. REQS_AZURE = ['msrest>=0.4.7',
  25. 'msrestazure>=0.4.7',
  26. 'azure-common>=1.1.5',
  27. 'azure-mgmt-resource>=1.0.0rc1',
  28. 'azure-mgmt-compute>=1.0.0rc1',
  29. 'azure-mgmt-network>=1.0.0rc1',
  30. 'azure-mgmt-storage>=1.0.0rc1',
  31. 'azure-storage>=0.34.0',
  32. 'pysftp>=0.2.9']
  33. REQS_GCP = ['google-api-python-client', 'oauth2client']
  34. REQS_OPENSTACK = [
  35. 'openstacksdk',
  36. 'python-novaclient>=7.0.0',
  37. 'python-glanceclient>=2.5.0',
  38. 'python-cinderclient>=1.9.0',
  39. 'python-swiftclient>=3.2.0',
  40. 'python-neutronclient>=6.0.0',
  41. 'python-keystoneclient>=3.13.0'
  42. ]
  43. REQS_FULL = REQS_BASE + REQS_AWS + REQS_AZURE + REQS_GCP + REQS_OPENSTACK
  44. # httpretty is required with/for moto 1.0.0 or AWS tests fail
  45. REQS_DEV = ([
  46. 'tox>=2.1.1',
  47. 'nose',
  48. # 'moto>=1.1.11', # until https://github.com/spulec/moto/issues/1396
  49. 'docutils>=0.14',
  50. 'imagesize>=0.7.1',
  51. 'jinja2>=2.9.6',
  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. install_requires=REQS_FULL,
  65. extras_require={
  66. ':python_version=="2.7"': ['py2-ipaddress'],
  67. ':python_version=="3"': ['py2-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. )