setup.py 2.1 KB

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