setup.py 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 = ['python-novaclient==7.0.0',
  16. 'python-glanceclient>=2.5.0',
  17. 'python-cinderclient>=1.9.0',
  18. 'python-swiftclient>=3.2.0',
  19. 'python-neutronclient>=6.0.0',
  20. 'python-keystoneclient>=3.8.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', 'flake8>=3.3.0',
  24. 'flake8-import-order>=0.12'] + full_reqs)
  25. setup(name='cloudbridge',
  26. version=version,
  27. description='A simple layer of abstraction over multiple cloud'
  28. 'providers.',
  29. author='Galaxy and GVL Projects',
  30. author_email='help@genome.edu.au',
  31. url='http://cloudbridge.readthedocs.org/',
  32. install_requires=full_reqs,
  33. extras_require={
  34. ':python_version=="2.7"': ['py2-ipaddress'],
  35. ':python_version=="3"': ['py2-ipaddress'],
  36. 'full': full_reqs,
  37. 'dev': dev_reqs
  38. },
  39. packages=find_packages(),
  40. license='MIT',
  41. classifiers=[
  42. 'Development Status :: 4 - Beta',
  43. 'Environment :: Console',
  44. 'Intended Audience :: Developers',
  45. 'Intended Audience :: System Administrators',
  46. 'License :: OSI Approved :: MIT License',
  47. 'Operating System :: OS Independent',
  48. 'Programming Language :: Python',
  49. 'Topic :: Software Development :: Libraries :: Python Modules',
  50. 'Programming Language :: Python :: 2.7',
  51. 'Programming Language :: Python :: 3',
  52. 'Programming Language :: Python :: 3.4',
  53. 'Programming Language :: Python :: 3.5',
  54. 'Programming Language :: Python :: 3.6',
  55. 'Programming Language :: Python :: Implementation :: CPython',
  56. 'Programming Language :: Python :: Implementation :: PyPy'],
  57. test_suite="test"
  58. )