--- python-cloudfiles-1.5.1.orig/debian/pycompat +++ python-cloudfiles-1.5.1/debian/pycompat @@ -0,0 +1 @@ +2 --- python-cloudfiles-1.5.1.orig/debian/doc-base +++ python-cloudfiles-1.5.1/debian/doc-base @@ -0,0 +1,15 @@ +Document: python-cloudfiles +Title: Rackspace Cloud Files Python API. +Author: Rackspace +Abstract: Rackspace Cloud Files Python API. + The Rackspace Cloud Files is an affordable, redundant, scalable, and + dynamic storage service offering. The core storage system is designed + to provide a safe, secure, automatically re-sizing and network accessible + way to store data. You can store an unlimited quantity of files and each + one can be as large as 5 gigabytes. Users can store as much as they want + and pay only for storage space they actually use. +Section: Programming/Python + +Format: HTML +Index: /usr/share/doc/python-cloudfiles/html/index.html +Files: /usr/share/doc/python-cloudfiles/html/*.html --- python-cloudfiles-1.5.1.orig/debian/control +++ python-cloudfiles-1.5.1/debian/control @@ -0,0 +1,23 @@ +Source: python-cloudfiles +Section: python +Priority: optional +Maintainer: Soren Hansen +XSBC-Original-Maintainer: Chmouel Boudjnah +Build-Depends: python-all-dev, python-setuptools (>= 0.6a9), debhelper (>= 5.0.38), cdbs (>= 0.4.49), python-support (>= 0.8.1), quilt +Build-Depends-Indep: python-nose +Homepage: http://github.com/rackspace/python-cloudfiles/ +Standards-Version: 3.8.3 + +Package: python-cloudfiles +Architecture: all +Depends: ${python:Depends}, python-pkg-resources, ${misc:Depends} +Description: Rackspace Cloud Files Python API + The Rackspace Cloud Files is an affordable, redundant, scalable, and + dynamic storage service offering. The core storage system is designed + to provide a safe, secure, automatically re-sizing and network accessible + way to store data. You can store an unlimited quantity of files and each + one can be as large as 5 gigabytes. Users can store as much as they want + and pay only for storage space they actually use. + . + This is the official API for the Python language. + --- python-cloudfiles-1.5.1.orig/debian/watch +++ python-cloudfiles-1.5.1/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://githubredir.debian.net/github/rackspace/python-cloudfiles /([\d\.].*).tar.gz --- python-cloudfiles-1.5.1.orig/debian/rules +++ python-cloudfiles-1.5.1/debian/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f + +DEB_PYTHON_SYSTEM=pysupport +DEB_COMPRESS_EXCLUDE= .js .inv + +include /usr/share/cdbs/1/rules/buildcore.mk +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/python-distutils.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk + +binary-post-install/python-cloudfiles:: + mv debian/python-cloudfiles/usr/share/doc/python-cloudfiles/docs \ + debian/python-cloudfiles/usr/share/doc/python-cloudfiles/html + +build/python-cloudfiles:: test-stamp + +test-stamp: + nosetests $(CURDIR)/tests + touch test-stamp + +clean:: + rm -f test-stamp tests/cloudfiles --- python-cloudfiles-1.5.1.orig/debian/changelog +++ python-cloudfiles-1.5.1/debian/changelog @@ -0,0 +1,15 @@ +python-cloudfiles (1.5.1-0ubuntu1) lucid; urgency=low + + * New upstream release. + * Initial upload to Ubuntu. + * Added 0001_json_syntax.patch and + 0002_InvalidObjectName_unit_test.patch to fix up the unit tests. + * Run unit tests at build time. + + -- Soren Hansen Mon, 02 Nov 2009 16:28:31 +0100 + +python-cloudfiles (1.4.0) stable; urgency=low + + * Initial package. + + -- Chmouel Boudjnah Thu, 27 Aug 2009 16:15:22 +0100 --- python-cloudfiles-1.5.1.orig/debian/compat +++ python-cloudfiles-1.5.1/debian/compat @@ -0,0 +1 @@ +5 --- python-cloudfiles-1.5.1.orig/debian/examples +++ python-cloudfiles-1.5.1/debian/examples @@ -0,0 +1 @@ +tests/* --- python-cloudfiles-1.5.1.orig/debian/pyversions +++ python-cloudfiles-1.5.1/debian/pyversions @@ -0,0 +1 @@ +2.3- --- python-cloudfiles-1.5.1.orig/debian/README.source +++ python-cloudfiles-1.5.1/debian/README.source @@ -0,0 +1,4 @@ +This package uses quilt for patch management. + +See /usr/share/doc/quilt/README.source for more info (only available if +you have quilt installed). --- python-cloudfiles-1.5.1.orig/debian/copyright +++ python-cloudfiles-1.5.1/debian/copyright @@ -0,0 +1,33 @@ +This package was debianized by Chmouel Boudjnah + on Thu Aug 27 15:26:44 CDT 2009 + +It was downloaded from git://github.com/rackspace/python-cloudfiles.git + +Copyright: + +Unless otherwise noted, all files are released under the MIT license, +exceptions contain licensing information in them. + + Copyright (C) 2008 Rackspace US, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +Except as contained in this notice, the name of Rackspace US, Inc. shall not +be used in advertising or otherwise to promote the sale, use or other dealings +in this Software without prior written authorization from Rackspace US, Inc. --- python-cloudfiles-1.5.1.orig/debian/docs +++ python-cloudfiles-1.5.1/debian/docs @@ -0,0 +1 @@ +docs/ --- python-cloudfiles-1.5.1.orig/debian/patches/0002_InvalidObjectName_unit_test.patch +++ python-cloudfiles-1.5.1/debian/patches/0002_InvalidObjectName_unit_test.patch @@ -0,0 +1,18 @@ +The other test cases catch this in the decorator. This is caught in the +function body, but since stream() returns a generator, it's not +evaluated until its .next() method is invoked. + +=== modified file 'tests/object_test.py' +Index: b/tests/object_test.py +=================================================================== +--- a/tests/object_test.py 2009-10-20 16:47:14.000000000 +0200 ++++ b/tests/object_test.py 2009-11-02 16:36:10.779219619 +0100 +@@ -123,7 +123,7 @@ + + obj.name = 'a'*(object_name_limit+1) # too-long string + self.assertRaises(InvalidObjectName, obj.read) +- self.assertRaises(InvalidObjectName, obj.stream) ++ self.assertRaises(InvalidObjectName, obj.stream().next) + self.assertRaises(InvalidObjectName, obj.sync_metadata) + self.assertRaises(InvalidObjectName, obj.write, '') + --- python-cloudfiles-1.5.1.orig/debian/patches/0001_json_syntax.patch +++ python-cloudfiles-1.5.1/debian/patches/0001_json_syntax.patch @@ -0,0 +1,80 @@ +JSON syntax forbids trailing commas in lists (unlike Python). + +=== modified file 'tests/fakehttp.py' +Index: b/tests/fakehttp.py +=================================================================== +--- a/tests/fakehttp.py 2009-10-20 16:47:14.000000000 +0200 ++++ b/tests/fakehttp.py 2009-11-02 16:36:10.509198501 +0100 +@@ -83,45 +83,43 @@ + '"hash":"4281c348eaf83e70ddce0e07221c3d28",' + '"bytes":14,' + '"content_type":"application\/octet-stream",' +- '"last_modified":"2007-03-04 20:32:17"},\n') ++ '"last_modified":"2007-03-04 20:32:17"}') + objects.append('{"name":"object2",' + '"hash":"b039efe731ad111bc1b0ef221c3849d0",' + '"bytes":64,' + '"content_type":"application\/octet-stream",' +- '"last_modified":"2007-03-04 20:32:17"},\n') ++ '"last_modified":"2007-03-04 20:32:17"}') + objects.append('{"name":"object3",' + '"hash":"4281c348eaf83e70ddce0e07221c3d28",' + '"bytes":14,' + '"content_type":"application\/octet-stream",' +- '"last_modified":"2007-03-04 20:32:17"},\n') ++ '"last_modified":"2007-03-04 20:32:17"}') + objects.append('{"name":"object4",' + '"hash":"b039efe731ad111bc1b0ef221c3849d0",' + '"bytes":64,' + '"content_type":"application\/octet-stream",' +- '"last_modified":"2007-03-04 20:32:17"},\n') ++ '"last_modified":"2007-03-04 20:32:17"}') + objects.append('{"name":"object5",' + '"hash":"4281c348eaf83e70ddce0e07221c3d28",' + '"bytes":14,' + '"content_type":"application\/octet-stream",' +- '"last_modified":"2007-03-04 20:32:17"},\n') ++ '"last_modified":"2007-03-04 20:32:17"}') + objects.append('{"name":"object6",' + '"hash":"b039efe731ad111bc1b0ef221c3849d0",' + '"bytes":64,' + '"content_type":"application\/octet-stream",' +- '"last_modified":"2007-03-04 20:32:17"},\n') ++ '"last_modified":"2007-03-04 20:32:17"}') + objects.append('{"name":"object7",' + '"hash":"4281c348eaf83e70ddce0e07221c3d28",' + '"bytes":14,' + '"content_type":"application\/octet-stream",' +- '"last_modified":"2007-03-04 20:32:17"},\n') ++ '"last_modified":"2007-03-04 20:32:17"}') + objects.append('{"name":"object8",' + '"hash":"b039efe731ad111bc1b0ef221c3849d0",' + '"bytes":64,' + '"content_type":"application\/octet-stream",' +- '"last_modified":"2007-03-04 20:32:17"},\n') +- objects = objects[left:right] +- objects.insert(0, '[\n') +- objects.append(']\n') ++ '"last_modified":"2007-03-04 20:32:17"}') ++ output = '[\n%s\n]\n' % (',\n'.join(objects[left:right])) + elif args.has_key('format') and args['format'] == 'xml': + objects = [] + objects.append('object1' +@@ -176,14 +174,16 @@ + objects.insert(0, '\n') + objects.insert(1, '\n') ++ output = ''.join(objects) + else: + objects = ['object%s\n' % i for i in range(1,9)] + objects = objects[left:right] ++ output = ''.join(objects) + + # prefix/path don't make much sense given our test data + if args.has_key('prefix') or args.has_key('path'): + pass +- return ''.join(objects) ++ return output + + def render_GET(self, path, args): + # Special path that returns 404 Not Found --- python-cloudfiles-1.5.1.orig/debian/patches/series +++ python-cloudfiles-1.5.1/debian/patches/series @@ -0,0 +1,2 @@ +0001_json_syntax.patch +0002_InvalidObjectName_unit_test.patch