Upgrade to 1.2a

f38
Robert Scheck 17 years ago
parent b2428a26ac
commit 255911817f

@ -1 +1 @@
boto-1.0a.tar.gz boto-1.2a.tar.gz

@ -1,29 +0,0 @@
Patch by Robert Scheck <robert@fedoraproject.org> which makes boto >= 0.9b working
by using the older Python 2.3, that doesn't support the non-decorator syntax, which
is used at @staticmethod.
--- boto-0.9b/boto/mturk/connection.py 2007-06-04 23:19:27.000000000 +0200
+++ boto-0.9b/boto/mturk/connection.py.python23 2007-08-30 12:53:24.000000000 +0200
@@ -171,7 +171,6 @@
else:
raise EC2ResponseError(response.status, response.reason, body)
- @staticmethod
def get_keywords_as_string(keywords):
"""
Returns a comma+space-separated string of keywords from either a list or a string
@@ -185,8 +184,8 @@
else:
raise TypeError("keywords argument must be a string or a list of strings; got a %s" % type(keywords))
return final_keywords
+ get_keywords_as_string = staticmethod(get_keywords_as_string)
- @staticmethod
def get_price_as_price(reward):
"""
Returns a Price data structure from either a float or a Price
@@ -196,3 +195,4 @@
else:
final_price = Price(reward)
return final_price
+ get_price_as_price = staticmethod(get_price_as_price)

@ -0,0 +1,131 @@
Patch by Robert Scheck <robert@fedoraproject.org> which makes boto >= 1.2a working by
using the older Python 2.3, that doesn't support the non-decorator syntax, which is used
at @staticmethod, @classmethod and @assert_case_insensitive.
--- boto-1.2a/boto/s3/connection.py 2008-04-15 02:24:29.000000000 +0200
+++ boto-1.2a/boto/s3/connection.py.python23 2008-05-07 23:22:05.000000000 +0200
@@ -62,14 +62,14 @@
return '/%s' % urllib.quote_plus(key)
class SubdomainCallingFormat(_CallingFormat):
- @assert_case_insensitive
def get_bucket_server(self, server, bucket):
return '%s.%s' % (bucket, server)
+ get_bucket_server = assert_case_insensitive(get_bucket_server)
class VHostCallingFormat(_CallingFormat):
- @assert_case_insensitive
def get_bucket_server(self, server, bucket):
return bucket
+ get_bucket_server = assert_case_insensitive(get_bucket_server)
class OrdinaryCallingFormat(_CallingFormat):
def get_bucket_server(self, server, bucket):
--- boto-1.2a/boto/mashups/server.py 2008-04-10 18:35:30.000000000 +0200
+++ boto-1.2a/boto/mashups/server.py.python23 2008-05-07 23:12:13.000000000 +0200
@@ -58,7 +58,6 @@
ec2 = boto.connect_ec2()
- @classmethod
def Inventory(cls):
"""
Returns a list of Server instances, one for each Server object
@@ -69,8 +68,8 @@
for server in rs:
l.append(server)
return l
+ Inventory = classmethod(Inventory)
- @classmethod
def Register(cls, name, instance_id, description=''):
s = cls()
s.name = name
@@ -78,6 +77,7 @@
s.description = description
s.save()
return s
+ Register = classmethod(Register)
def __init__(self, id=None):
SDBObject.__init__(self, id)
--- boto-1.2a/boto/sdb/persist/object.py 2008-03-22 16:54:36.000000000 +0100
+++ boto-1.2a/boto/sdb/persist/object.py.python23 2008-05-07 23:14:59.000000000 +0200
@@ -44,13 +44,12 @@
class SDBObject(object):
__metaclass__ = SDBBase
- @classmethod
def get_lineage(cls):
l = [c.__name__ for c in cls.mro()]
l.reverse()
return '.'.join(l)
+ get_lineage = classmethod(get_lineage)
- @classmethod
def get(cls, id=None, **params):
domain = get_domain()
if domain and id:
@@ -70,8 +69,8 @@
except StopIteration:
return obj
raise SDBPersistanceError('Query matched more than 1 item')
+ get = classmethod(get)
- @classmethod
def find(cls, **params):
keys = params.keys()
if len(keys) > 4:
@@ -97,8 +96,8 @@
else:
rs = []
return object_lister(None, rs)
+ find = classmethod(find)
- @classmethod
def list(cls, max_items=None):
domain = get_domain()
if domain:
@@ -106,8 +105,8 @@
else:
rs = []
return object_lister(cls, rs)
+ list = classmethod(list)
- @classmethod
def find_properties(cls):
properties = []
while cls:
@@ -119,6 +118,7 @@
else:
cls = None
return properties
+ find_properties = classmethod(find_properties)
def __init__(self, id=None):
self.id = id
--- boto-1.2a/boto/mturk/connection.py 2008-04-10 18:35:32.000000000 +0200
+++ boto-1.2a/boto/mturk/connection.py.python23 2008-05-07 23:06:59.000000000 +0200
@@ -170,7 +170,6 @@
else:
raise EC2ResponseError(response.status, response.reason, body)
- @staticmethod
def get_keywords_as_string(keywords):
"""
Returns a comma+space-separated string of keywords from either a list or a string
@@ -184,8 +183,8 @@
else:
raise TypeError("keywords argument must be a string or a list of strings; got a %s" % type(keywords))
return final_keywords
+ get_keywords_as_string = staticmethod(get_keywords_as_string)
- @staticmethod
def get_price_as_price(reward):
"""
Returns a Price data structure from either a float or a Price
@@ -195,3 +194,4 @@
else:
final_price = Price(reward)
return final_price
+ get_price_as_price = staticmethod(get_price_as_price)

@ -3,13 +3,13 @@
Summary: A simple lightweight interface to Amazon Web Services Summary: A simple lightweight interface to Amazon Web Services
Name: python-boto Name: python-boto
Version: 1.0a Version: 1.2a
Release: 1%{?dist} Release: 1%{?dist}
License: MIT License: MIT
Group: Development/Languages Group: Development/Languages
URL: http://code.google.com/p/%{pkgname}/ URL: http://code.google.com/p/%{pkgname}/
Source: http://boto.googlecode.com/files/%{pkgname}-%{version}.tar.gz Source: http://boto.googlecode.com/files/%{pkgname}-%{version}.tar.gz
Patch: python-boto-0.9b-python23.patch Patch: python-boto-1.2a-python23.patch
BuildRequires: python-devel >= 2.3 BuildRequires: python-devel >= 2.3
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -44,6 +44,9 @@ rm -rf $RPM_BUILD_ROOT
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog
* Wed May 07 2008 Robert Scheck <robert@fedoraproject.org> 1.2a-1
- Upgrade to 1.2a
* Sat Feb 09 2008 Robert Scheck <robert@fedoraproject.org> 1.0a-1 * Sat Feb 09 2008 Robert Scheck <robert@fedoraproject.org> 1.0a-1
- Upgrade to 1.0a - Upgrade to 1.0a

@ -1 +1 @@
3c783c9b8d020d874994c710f1babf27 boto-1.0a.tar.gz e4329f02ad17837b6e4b1269e1ae63e3 boto-1.2a.tar.gz

Loading…
Cancel
Save