setup.py 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. """Library install script for setuptools."""
  2. import ast
  3. import os
  4. import re
  5. from setuptools import find_packages, setup
  6. # Cannot use "from cloudbridge import get_version" because that would try to
  7. # import the six package which may not be installed yet.
  8. reg = re.compile(r'__version__\s*=\s*(.+)')
  9. with open(os.path.join('cloudbridge', '__init__.py')) as f:
  10. for line in f:
  11. m = reg.match(line)
  12. if m:
  13. version = ast.literal_eval(m.group(1))
  14. break
  15. base_reqs = ['bunch>=1.0.1', 'six>=1.10.0', 'retrying>=1.3.3']
  16. openstack_reqs = ['requests<2.13.0',
  17. 'Babel>=2.3.4,<2.4.0',
  18. 'python-novaclient==7.0.0',
  19. 'python-glanceclient>=2.5.0,<=2.6.0',
  20. 'python-cinderclient>=1.9.0,<=2.0.1',
  21. 'python-swiftclient>=3.2.0,<=3.3.0',
  22. 'python-neutronclient>=6.0.0,<=6.1.0',
  23. 'python-keystoneclient>=3.8.0,<=3.10.0']
  24. aws_reqs = ['boto>=2.38.0,<=2.46.1']
  25. gce_reqs = ['google-api-python-client>=1.4.2', "cryptography>=1.4"]
  26. full_reqs = base_reqs + aws_reqs + openstack_reqs + gce_reqs
  27. # httpretty is required with/for moto 1.0.0 or AWS tests fail
  28. dev_reqs = (['tox>=2.1.1', 'moto<1.0.0', 'sphinx>=1.3.1', 'flake8>=3.3.0',
  29. 'flake8-import-order>=0.12', 'httpretty==0.8.10'] + full_reqs)
  30. setup(name='cloudbridge',
  31. version=version,
  32. description='A simple layer of abstraction over multiple cloud'
  33. 'providers.',
  34. author='Galaxy and GVL Projects',
  35. author_email='help@genome.edu.au',
  36. url='http://cloudbridge.readthedocs.org/',
  37. install_requires=full_reqs,
  38. extras_require={
  39. ':python_version=="2.7"': ['py2-ipaddress'],
  40. ':python_version=="3"': ['py2-ipaddress'],
  41. 'full': full_reqs,
  42. 'dev': dev_reqs
  43. },
  44. packages=find_packages(),
  45. license='MIT',
  46. classifiers=[
  47. 'Development Status :: 4 - Beta',
  48. 'Environment :: Console',
  49. 'Intended Audience :: Developers',
  50. 'Intended Audience :: System Administrators',
  51. 'License :: OSI Approved :: MIT License',
  52. 'Operating System :: OS Independent',
  53. 'Programming Language :: Python',
  54. 'Topic :: Software Development :: Libraries :: Python Modules',
  55. 'Programming Language :: Python :: 2.7',
  56. 'Programming Language :: Python :: 3',
  57. 'Programming Language :: Python :: 3.4',
  58. 'Programming Language :: Python :: 3.5',
  59. 'Programming Language :: Python :: 3.6',
  60. 'Programming Language :: Python :: Implementation :: CPython',
  61. 'Programming Language :: Python :: Implementation :: PyPy'],
  62. test_suite="test"
  63. )