setup.py 2.2 KB

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