setup.py 2.7 KB

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