setup.py 2.4 KB

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