2
0

setup.py 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 = ['python-novaclient==7.0.0',
  17. 'python-glanceclient>=2.5.0,<=2.6.0',
  18. 'python-cinderclient>=1.9.0,<=2.0.1',
  19. 'python-swiftclient>=3.2.0,<=3.3.0',
  20. 'python-neutronclient>=6.0.0,<=6.1.0',
  21. 'python-keystoneclient>=3.8.0,<=3.10.0']
  22. aws_reqs = ['boto>=2.38.0,<=2.46.1']
  23. full_reqs = base_reqs + aws_reqs + openstack_reqs
  24. # httpretty is required with/for moto 1.0.0 or AWS tests fail
  25. dev_reqs = (['tox>=2.1.1', 'moto<1.0.0', 'sphinx>=1.3.1', 'flake8>=3.3.0',
  26. 'flake8-import-order>=0.12', 'httpretty==0.8.10'] + 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. )