setup.py 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import ast
  2. import os
  3. import re
  4. from setuptools import setup, find_packages
  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.00', 'six>=1.9.0', 'retrying']
  15. openstack_reqs = ['python-novaclient', 'python-glanceclient',
  16. 'python-cinderclient', 'python-swiftclient',
  17. 'python-neutronclient', 'python-keystoneclient>=2.0.0']
  18. aws_reqs = ['boto']
  19. full_reqs = base_reqs + aws_reqs + openstack_reqs
  20. dev_reqs = ['httpretty==0.8.10', 'tox', 'moto>=0.4.18', 'sphinx'] + full_reqs
  21. setup(name='cloudbridge',
  22. version=version,
  23. description='A simple layer of abstraction over multiple cloud'
  24. 'providers.',
  25. author='Galaxy and GVL Projects',
  26. author_email='help@genome.edu.au',
  27. url='http://cloudbridge.readthedocs.org/',
  28. install_requires=full_reqs,
  29. extras_require={
  30. ':python_version=="2.7"': ['py2-ipaddress'],
  31. ':python_version=="3"': ['py2-ipaddress'],
  32. ':python_version=="3.1"': ['py2-ipaddress'],
  33. ':python_version=="3.2"': ['py2-ipaddress'],
  34. 'full': full_reqs,
  35. 'dev': dev_reqs
  36. },
  37. packages=find_packages(),
  38. license='MIT',
  39. classifiers=[
  40. 'Development Status :: 2 - Pre-Alpha',
  41. 'Environment :: Console',
  42. 'Intended Audience :: Developers',
  43. 'Intended Audience :: System Administrators',
  44. 'License :: OSI Approved :: MIT License',
  45. 'Operating System :: OS Independent',
  46. 'Programming Language :: Python',
  47. 'Topic :: Software Development :: Libraries :: Python Modules',
  48. 'Programming Language :: Python :: 2.7',
  49. 'Programming Language :: Python :: 3',
  50. 'Programming Language :: Python :: 3.0',
  51. 'Programming Language :: Python :: 3.1',
  52. 'Programming Language :: Python :: 3.2',
  53. 'Programming Language :: Python :: 3.3',
  54. 'Programming Language :: Python :: 3.4',
  55. 'Programming Language :: Python :: Implementation :: CPython',
  56. 'Programming Language :: Python :: Implementation :: PyPy'],
  57. test_suite="test"
  58. )