setup.py 2.4 KB

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