setup.py 2.6 KB

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