setup.py 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. ]
  22. REQS_AWS = ['boto3']
  23. REQS_AZURE = ['msrest>=0.4.7',
  24. 'msrestazure>=0.4.7',
  25. 'azure-common>=1.1.5',
  26. 'azure-mgmt-resource>=1.0.0rc1',
  27. 'azure-mgmt-compute>=1.0.0rc1',
  28. 'azure-mgmt-network>=1.0.0rc1',
  29. 'azure-mgmt-storage>=1.0.0rc1',
  30. 'azure-storage>=0.34.0',
  31. 'pysftp>=0.2.9']
  32. REQS_OPENSTACK = [
  33. 'openstacksdk',
  34. 'python-novaclient>=7.0.0',
  35. 'python-glanceclient>=2.5.0',
  36. 'python-cinderclient>=1.9.0',
  37. 'python-swiftclient>=3.2.0',
  38. 'python-neutronclient>=6.0.0',
  39. 'python-keystoneclient>=3.13.0'
  40. ]
  41. REQS_FULL = REQS_BASE + REQS_AWS + REQS_AZURE + REQS_OPENSTACK
  42. # httpretty is required with/for moto 1.0.0 or AWS tests fail
  43. REQS_DEV = ([
  44. 'tox>=2.1.1',
  45. 'moto>=1.1.11',
  46. 'sphinx>=1.3.1',
  47. 'flake8>=3.3.0',
  48. 'flake8-import-order>=0.12'] + REQS_FULL
  49. )
  50. setup(
  51. name='cloudbridge',
  52. version=version,
  53. description='A simple layer of abstraction over multiple cloud providers.',
  54. author='Galaxy and GVL Projects',
  55. author_email='help@genome.edu.au',
  56. url='http://cloudbridge.readthedocs.org/',
  57. install_requires=REQS_FULL,
  58. extras_require={
  59. ':python_version=="2.7"': ['py2-ipaddress'],
  60. ':python_version=="3"': ['py2-ipaddress'],
  61. 'full': REQS_FULL,
  62. 'dev': REQS_DEV
  63. },
  64. packages=find_packages(),
  65. license='MIT',
  66. classifiers=[
  67. 'Development Status :: 4 - Beta',
  68. 'Environment :: Console',
  69. 'Intended Audience :: Developers',
  70. 'Intended Audience :: System Administrators',
  71. 'License :: OSI Approved :: MIT License',
  72. 'Operating System :: OS Independent',
  73. 'Programming Language :: Python',
  74. 'Topic :: Software Development :: Libraries :: Python Modules',
  75. 'Programming Language :: Python :: 2.7',
  76. 'Programming Language :: Python :: 3',
  77. 'Programming Language :: Python :: 3.4',
  78. 'Programming Language :: Python :: 3.5',
  79. 'Programming Language :: Python :: 3.6',
  80. 'Programming Language :: Python :: Implementation :: CPython',
  81. 'Programming Language :: Python :: Implementation :: PyPy'],
  82. test_suite="test"
  83. )