setup.py 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. full_reqs = base_reqs + aws_reqs + openstack_reqs
  26. # httpretty is required with/for moto 1.0.0 or AWS tests fail
  27. dev_reqs = (['tox>=2.1.1', 'moto<1.0.0', 'sphinx>=1.3.1', 'flake8>=3.3.0',
  28. 'flake8-import-order>=0.12', 'httpretty==0.8.10'] + full_reqs)
  29. setup(name='cloudbridge',
  30. version=version,
  31. description='A simple layer of abstraction over multiple cloud'
  32. 'providers.',
  33. author='Galaxy and GVL Projects',
  34. author_email='help@genome.edu.au',
  35. url='http://cloudbridge.readthedocs.org/',
  36. install_requires=full_reqs,
  37. extras_require={
  38. ':python_version=="2.7"': ['py2-ipaddress'],
  39. ':python_version=="3"': ['py2-ipaddress'],
  40. 'full': full_reqs,
  41. 'dev': dev_reqs
  42. },
  43. packages=find_packages(),
  44. license='MIT',
  45. classifiers=[
  46. 'Development Status :: 4 - Beta',
  47. 'Environment :: Console',
  48. 'Intended Audience :: Developers',
  49. 'Intended Audience :: System Administrators',
  50. 'License :: OSI Approved :: MIT License',
  51. 'Operating System :: OS Independent',
  52. 'Programming Language :: Python',
  53. 'Topic :: Software Development :: Libraries :: Python Modules',
  54. 'Programming Language :: Python :: 2.7',
  55. 'Programming Language :: Python :: 3',
  56. 'Programming Language :: Python :: 3.4',
  57. 'Programming Language :: Python :: 3.5',
  58. 'Programming Language :: Python :: 3.6',
  59. 'Programming Language :: Python :: Implementation :: CPython',
  60. 'Programming Language :: Python :: Implementation :: PyPy'],
  61. test_suite="test"
  62. )