setup.py 2.5 KB

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