setup.py 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. #!/usr/bin/env python
  2. # Copyright (c) 2006-2010 Mitch Garnaat http://garnaat.org/
  3. # Copyright (c) 2010, Eucalyptus Systems, Inc.
  4. # All rights reserved.
  5. #
  6. # Permission is hereby granted, free of charge, to any person obtaining a
  7. # copy of this software and associated documentation files (the
  8. # "Software"), to deal in the Software without restriction, including
  9. # without limitation the rights to use, copy, modify, merge, publish, dis-
  10. # tribute, sublicense, and/or sell copies of the Software, and to permit
  11. # persons to whom the Software is furnished to do so, subject to the fol-
  12. # lowing conditions:
  13. #
  14. # The above copyright notice and this permission notice shall be included
  15. # in all copies or substantial portions of the Software.
  16. #
  17. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  18. # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
  19. # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
  20. # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  21. # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  22. # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  23. # IN THE SOFTWARE.
  24. from __future__ import print_function
  25. try:
  26. from setuptools import setup
  27. extra = dict(test_suite="tests.test.suite", include_package_data=True)
  28. except ImportError:
  29. from distutils.core import setup
  30. extra = {}
  31. import sys
  32. from boto import __version__
  33. if sys.version_info <= (2, 5):
  34. error = "ERROR: boto requires Python Version 2.6 or above...exiting."
  35. print(error, file=sys.stderr)
  36. sys.exit(1)
  37. def readme():
  38. with open("README.rst") as f:
  39. return f.read()
  40. setup(name = "boto",
  41. version = __version__,
  42. description = "Amazon Web Services Library",
  43. long_description = readme(),
  44. author = "Mitch Garnaat",
  45. author_email = "mitch@garnaat.com",
  46. scripts = ["bin/sdbadmin", "bin/elbadmin", "bin/cfadmin",
  47. "bin/s3put", "bin/fetch_file", "bin/launch_instance",
  48. "bin/list_instances", "bin/taskadmin", "bin/kill_instance",
  49. "bin/bundle_image", "bin/pyami_sendmail", "bin/lss3",
  50. "bin/cq", "bin/route53", "bin/cwutil", "bin/instance_events",
  51. "bin/asadmin", "bin/glacier", "bin/mturk",
  52. "bin/dynamodb_dump", "bin/dynamodb_load"],
  53. url = "https://github.com/boto/boto/",
  54. packages = ["boto", "boto.sqs", "boto.s3", "boto.gs", "boto.file",
  55. "boto.ec2", "boto.ec2.cloudwatch", "boto.ec2.autoscale",
  56. "boto.ec2.elb", "boto.sdb", "boto.cacerts",
  57. "boto.sdb.db", "boto.sdb.db.manager",
  58. "boto.mturk", "boto.pyami",
  59. "boto.pyami.installers", "boto.pyami.installers.ubuntu",
  60. "boto.mashups", "boto.contrib", "boto.manage",
  61. "boto.services", "boto.cloudfront",
  62. "boto.roboto", "boto.rds", "boto.vpc", "boto.fps",
  63. "boto.fps", "boto.emr", "boto.emr", "boto.sns",
  64. "boto.ecs", "boto.iam", "boto.route53", "boto.ses",
  65. "boto.cloudformation", "boto.sts", "boto.dynamodb",
  66. "boto.swf", "boto.mws", "boto.cloudsearch", "boto.glacier",
  67. "boto.beanstalk", "boto.datapipeline", "boto.elasticache",
  68. "boto.elastictranscoder", "boto.opsworks", "boto.redshift",
  69. "boto.dynamodb2", "boto.support", "boto.cloudtrail",
  70. "boto.directconnect", "boto.kinesis", "boto.rds2",
  71. "boto.cloudsearch2", "boto.logs", "boto.vendored",
  72. "boto.route53.domains", "boto.cognito",
  73. "boto.cognito.identity", "boto.cognito.sync",
  74. "boto.cloudsearchdomain", "boto.kms",
  75. "boto.awslambda", "boto.codedeploy", "boto.configservice",
  76. "boto.cloudhsm", "boto.ec2containerservice",
  77. "boto.machinelearning", "boto.vendored.regions"],
  78. package_data = {
  79. "boto.cacerts": ["cacerts.txt"],
  80. "boto": ["endpoints.json"],
  81. },
  82. license = "MIT",
  83. platforms = "Posix; MacOS X; Windows",
  84. classifiers = ["Development Status :: 5 - Production/Stable",
  85. "Intended Audience :: Developers",
  86. "License :: OSI Approved :: MIT License",
  87. "Operating System :: OS Independent",
  88. "Topic :: Internet",
  89. "Programming Language :: Python :: 2",
  90. "Programming Language :: Python :: 2.6",
  91. "Programming Language :: Python :: 2.7",
  92. "Programming Language :: Python :: 3",
  93. "Programming Language :: Python :: 3.3",
  94. "Programming Language :: Python :: 3.4"],
  95. **extra
  96. )