setup.py 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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-devtestlabs>=1.0.0',
  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_OPENSTACK = [
  34. 'openstacksdk>=0.12.0',
  35. 'python-novaclient>=7.0.0',
  36. 'python-glanceclient>=2.5.0',
  37. 'python-cinderclient>=1.9.0',
  38. 'python-swiftclient>=3.2.0',
  39. 'python-neutronclient>=6.0.0',
  40. 'python-keystoneclient>=3.13.0'
  41. ]
  42. REQS_FULL = REQS_BASE + REQS_AWS + REQS_AZURE + REQS_OPENSTACK
  43. # httpretty is required with/for moto 1.0.0 or AWS tests fail
  44. REQS_DEV = ([
  45. 'tox>=2.1.1',
  46. 'nose',
  47. 'moto>=1.1.11', # until https://github.com/spulec/moto/issues/1396
  48. 'sphinx>=1.3.1',
  49. 'pydevd',
  50. 'flake8>=3.3.0',
  51. 'flake8-import-order>=0.12'] + REQS_FULL
  52. )
  53. setup(
  54. name='cloudbridge',
  55. version=version,
  56. description='A simple layer of abstraction over multiple cloud providers.',
  57. author='Galaxy and GVL Projects',
  58. author_email='help@genome.edu.au',
  59. url='http://cloudbridge.cloudve.org/',
  60. install_requires=REQS_FULL,
  61. extras_require={
  62. ':python_version<"3.3"': ['ipaddress'],
  63. 'full': REQS_FULL,
  64. 'dev': REQS_DEV
  65. },
  66. packages=find_packages(),
  67. license='MIT',
  68. classifiers=[
  69. 'Development Status :: 4 - Beta',
  70. 'Environment :: Console',
  71. 'Intended Audience :: Developers',
  72. 'Intended Audience :: System Administrators',
  73. 'License :: OSI Approved :: MIT License',
  74. 'Operating System :: OS Independent',
  75. 'Programming Language :: Python',
  76. 'Topic :: Software Development :: Libraries :: Python Modules',
  77. 'Programming Language :: Python :: 2.7',
  78. 'Programming Language :: Python :: 3',
  79. 'Programming Language :: Python :: 3.4',
  80. 'Programming Language :: Python :: 3.5',
  81. 'Programming Language :: Python :: 3.6',
  82. 'Programming Language :: Python :: Implementation :: CPython',
  83. 'Programming Language :: Python :: Implementation :: PyPy'],
  84. test_suite="test"
  85. )