OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright (c) 2006-2010 Mitch Garnaat http://garnaat.org/ | 3 # Copyright (c) 2006-2010 Mitch Garnaat http://garnaat.org/ |
4 # Copyright (c) 2010, Eucalyptus Systems, Inc. | 4 # Copyright (c) 2010, Eucalyptus Systems, Inc. |
5 # All rights reserved. | 5 # All rights reserved. |
6 # | 6 # |
7 # Permission is hereby granted, free of charge, to any person obtaining a | 7 # Permission is hereby granted, free of charge, to any person obtaining a |
8 # copy of this software and associated documentation files (the | 8 # copy of this software and associated documentation files (the |
9 # "Software"), to deal in the Software without restriction, including | 9 # "Software"), to deal in the Software without restriction, including |
10 # without limitation the rights to use, copy, modify, merge, publish, dis- | 10 # without limitation the rights to use, copy, modify, merge, publish, dis- |
11 # tribute, sublicense, and/or sell copies of the Software, and to permit | 11 # tribute, sublicense, and/or sell copies of the Software, and to permit |
12 # persons to whom the Software is furnished to do so, subject to the fol- | 12 # persons to whom the Software is furnished to do so, subject to the fol- |
13 # lowing conditions: | 13 # lowing conditions: |
14 # | 14 # |
15 # The above copyright notice and this permission notice shall be included | 15 # The above copyright notice and this permission notice shall be included |
16 # in all copies or substantial portions of the Software. | 16 # in all copies or substantial portions of the Software. |
17 # | 17 # |
18 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | 18 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
19 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- | 19 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL- |
20 # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT | 20 # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT |
21 # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | 21 # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
22 # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | 22 # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
23 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | 23 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS |
24 # IN THE SOFTWARE. | 24 # IN THE SOFTWARE. |
25 | 25 |
26 try: | 26 try: |
27 from setuptools import setup | 27 from setuptools import setup |
| 28 extra = dict(test_suite="tests.test.suite", include_package_data=True) |
28 except ImportError: | 29 except ImportError: |
29 from distutils.core import setup | 30 from distutils.core import setup |
| 31 extra = {} |
30 | 32 |
31 import sys | 33 import sys |
32 | 34 |
33 from boto import Version | 35 from boto import __version__ |
34 | 36 |
35 install_requires = [] | 37 if sys.version_info <= (2, 4): |
36 maj, min, micro, rel, serial = sys.version_info | 38 error = "ERROR: boto requires Python Version 2.5 or above...exiting." |
37 if (maj, min) == (2, 4): | 39 print >> sys.stderr, error |
38 # boto needs hashlib module which is not in py2.4 | 40 sys.exit(1) |
39 install_requires.append("hashlib") | |
40 | 41 |
41 setup(name = "boto", | 42 setup(name = "boto", |
42 version = Version, | 43 version = __version__, |
43 description = "Amazon Web Services Library", | 44 description = "Amazon Web Services Library", |
44 long_description="Python interface to Amazon's Web Services.", | 45 long_description = "Python interface to Amazon's Web Services.", |
45 author = "Mitch Garnaat", | 46 author = "Mitch Garnaat", |
46 author_email = "mitch@garnaat.com", | 47 author_email = "mitch@garnaat.com", |
47 scripts = ["bin/sdbadmin", "bin/elbadmin", "bin/cfadmin", | 48 scripts = ["bin/sdbadmin", "bin/elbadmin", "bin/cfadmin", |
48 "bin/s3put", "bin/fetch_file", "bin/launch_instance", | 49 "bin/s3put", "bin/fetch_file", "bin/launch_instance", |
49 "bin/list_instances", "bin/taskadmin", "bin/kill_instance", | 50 "bin/list_instances", "bin/taskadmin", "bin/kill_instance", |
50 "bin/bundle_image", "bin/pyami_sendmail", "bin/lss3", | 51 "bin/bundle_image", "bin/pyami_sendmail", "bin/lss3", |
51 "bin/cq", "bin/route53"], | 52 "bin/cq", "bin/route53", "bin/s3multiput", "bin/cwutil"], |
52 install_requires=install_requires, | |
53 url = "http://code.google.com/p/boto/", | 53 url = "http://code.google.com/p/boto/", |
54 packages = [ 'boto', 'boto.sqs', 'boto.s3', 'boto.gs', 'boto.file', | 54 packages = ["boto", "boto.sqs", "boto.s3", "boto.gs", "boto.file", |
55 'boto.ec2', 'boto.ec2.cloudwatch', 'boto.ec2.autoscale', | 55 "boto.ec2", "boto.ec2.cloudwatch", "boto.ec2.autoscale", |
56 'boto.ec2.elb', 'boto.sdb', 'boto.sdb.persist', | 56 "boto.ec2.elb", "boto.sdb", "boto.cacerts", |
57 'boto.sdb.db', 'boto.sdb.db.manager', 'boto.mturk', | 57 "boto.sdb.db", "boto.sdb.db.manager", "boto.mturk", |
58 'boto.pyami', 'boto.mashups', 'boto.contrib', 'boto.manage', | 58 "boto.pyami", "boto.mashups", "boto.contrib", "boto.manage", |
59 'boto.services', 'boto.tests', 'boto.cloudfront', | 59 "boto.services", "boto.cloudfront", "boto.roboto", |
60 'boto.rds', 'boto.vpc', 'boto.fps', 'boto.emr', 'boto.sns', | 60 "boto.rds", "boto.vpc", "boto.fps", "boto.emr", "boto.sns", |
61 'boto.ecs', 'boto.iam', 'boto.route53', 'boto.ses'], | 61 "boto.ecs", "boto.iam", "boto.route53", "boto.ses", |
62 license = 'MIT', | 62 "boto.cloudformation", "boto.sts"], |
63 platforms = 'Posix; MacOS X; Windows', | 63 package_data = {"boto.cacerts": ["cacerts.txt"]}, |
64 classifiers = [ 'Development Status :: 5 - Production/Stable', | 64 license = "MIT", |
65 'Intended Audience :: Developers', | 65 platforms = "Posix; MacOS X; Windows", |
66 'License :: OSI Approved :: MIT License', | 66 classifiers = ["Development Status :: 5 - Production/Stable", |
67 'Operating System :: OS Independent', | 67 "Intended Audience :: Developers", |
68 'Topic :: Internet', | 68 "License :: OSI Approved :: MIT License", |
69 ], | 69 "Operating System :: OS Independent", |
| 70 "Topic :: Internet"], |
| 71 **extra |
70 ) | 72 ) |
OLD | NEW |