[Python-modules-commits] r13266 - in packages/python-restkit (17 files)

kitterman at users.alioth.debian.org kitterman at users.alioth.debian.org
Sun Jun 6 05:14:58 UTC 2010


    Date: Sunday, June 6, 2010 @ 05:14:54
  Author: kitterman
Revision: 13266

Clean up after usual fun with svn-inject.

Deleted:
  packages/python-restkit/branches/upstream/
  packages/python-restkit/trunk/LICENSE
  packages/python-restkit/trunk/MANIFEST.in
  packages/python-restkit/trunk/NOTICE
  packages/python-restkit/trunk/PKG-INFO
  packages/python-restkit/trunk/README.rst
  packages/python-restkit/trunk/THANKS
  packages/python-restkit/trunk/TODO.txt
  packages/python-restkit/trunk/bootstrap.py
  packages/python-restkit/trunk/buildout.cfg
  packages/python-restkit/trunk/doc/
  packages/python-restkit/trunk/examples/
  packages/python-restkit/trunk/restkit.egg-info/
  packages/python-restkit/trunk/restkit/
  packages/python-restkit/trunk/setup.cfg
  packages/python-restkit/trunk/setup.py
  packages/python-restkit/trunk/tests/

Deleted: packages/python-restkit/trunk/LICENSE
===================================================================
--- packages/python-restkit/trunk/LICENSE	2010-06-06 05:06:46 UTC (rev 13265)
+++ packages/python-restkit/trunk/LICENSE	2010-06-06 05:14:54 UTC (rev 13266)
@@ -1,22 +0,0 @@
-2008-2010 (c) Benoît Chesneau <benoitc at e-engura.org>
-
-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.
\ No newline at end of file

Deleted: packages/python-restkit/trunk/MANIFEST.in
===================================================================
--- packages/python-restkit/trunk/MANIFEST.in	2010-06-06 05:06:46 UTC (rev 13265)
+++ packages/python-restkit/trunk/MANIFEST.in	2010-06-06 05:14:54 UTC (rev 13266)
@@ -1,12 +0,0 @@
-include NOTICE
-include LICENSE
-include README.rst
-include TODO.txt
-include THANKS
-include distribute_setup.py
-include bootstrap.py
-include buildout.cfg
-recursive-include debian *
-recursive-include examples *
-recursive-include tests *
-recursive-include doc *
\ No newline at end of file

Deleted: packages/python-restkit/trunk/NOTICE
===================================================================
--- packages/python-restkit/trunk/NOTICE	2010-06-06 05:06:46 UTC (rev 13265)
+++ packages/python-restkit/trunk/NOTICE	2010-06-06 05:14:54 UTC (rev 13266)
@@ -1,118 +0,0 @@
-Restkit
--------
-
-2008-2010 (c) Benoît Chesneau <benoitc at e-engura.org>
-
-Restkit is released under the MIT license. See the LICENSE file for the complete license.
-
-oauth2:
-------
-
-oauth2 is under MIT license.
-
-Copyright (c) 2007 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel
-
-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.
-
-sphinx-to-github extension
---------------------------
-
-Under BSD license :
-
-Copyright (c) 2009, Michael Jones
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-	 * Redistributions of source code must retain the above copyright notice,
-	   this list of conditions and the following disclaimer.
-	 * Redistributions in binary form must reproduce the above copyright notice,
-	   this list of conditions and the following disclaimer in the documentation
-	   and/or other materials provided with the distribution.
-	 * The names of its contributors may not be used to endorse or promote
-	   products derived from this software without specific prior written
-	   permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
-ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-
-ghp-import
-----------
-
-Under Tumbolia license
-
-                           Tumbolia Public License
- 
-Copyright 2010, Paul Davis <paul.joseph.davis at gmail.com>
- 
-Copying and distribution of this file, with or without modification, are
-permitted in any medium without royalty provided the copyright notice and this
-notice are preserved.
-
-TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
- 
-  0. opan saurce LOL
-
-
-sitemap_gen
------------
-
-Under BSD License :
-
-Copyright (c) 2004, 2005, Google Inc.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-
-    * Redistributions of source code must retain the above copyright
-      notice, this list of conditions and the following disclaimer.
-
-    * Redistributions in binary form must reproduce the above
-      copyright notice, this list of conditions and the following
-      disclaimer in the documentation and/or other materials provided
-      with the distribution.
-
-    * Neither the name of Google Inc. nor the names of its contributors
-      may be used to endorse or promote products derived from this
-      software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-

Deleted: packages/python-restkit/trunk/PKG-INFO
===================================================================
--- packages/python-restkit/trunk/PKG-INFO	2010-06-06 05:06:46 UTC (rev 13265)
+++ packages/python-restkit/trunk/PKG-INFO	2010-06-06 05:14:54 UTC (rev 13266)
@@ -1,183 +0,0 @@
-Metadata-Version: 1.0
-Name: restkit
-Version: 1.3.0
-Summary: Python REST kit
-Home-page: http://bitbucket.org/benoitc/restkit/
-Author: Benoit Chesneau
-Author-email: benoitc at e-engura.org
-License: BSD
-Description: About
-        -----
-        
-        Restkit is an HTTP resource kit for `Python <http://python.org>`_. It allows you to easily access to HTTP resource and build objects around it. It's the base of `couchdbkit <http://www.couchdbkit.org>`_ a Python `CouchDB <http://couchdb.org>`_ framework. 
-        
-        Restkit is a full HTTP client using pure socket calls and its own HTTP parser. It's not based on httplib or urllib2. 
-        
-        Installation
-        ------------
-        
-        Restkit requires Python 2.x superior to 2.5.
-        
-        Install from sources::
-        
-          $ python setup.py install
-        
-        Or from Pypi::
-        
-          $ easy_install -U restkit
-          
-        Usage
-        =====
-        
-        Perform HTTP call support  with `restkit.request`.
-        ++++++++++++++++++++++++++++++++++++++++++++++++++
-        
-        Usage example, get friendpaste page::
-        
-          from restkit import request
-          resp = request('http://friendpaste.com')
-          print resp.body
-          print resp.status_int_
-            
-            
-        Create a simple Twitter Search resource
-        +++++++++++++++++++++++++++++++++++++++
-        
-        Building a resource object is easy using `restkit.Resource` class. We use `simplejson <http://code.google.com/p/simplejson/>`_ to handle deserialisation of data.
-        
-        Here is the snippet::
-        
-          from restkit import Resource
-        
-          try:
-              import simplejson as json
-          except ImportError:
-              import json # py2.6 only
-            
-          class TwitterSearch(Resource):
-            
-              def __init__(self,  pool_instance=None, **kwargs):
-                  search_url = "http://search.twitter.com"
-                  super(TwitterSearch, self).__init__(search_url, follow_redirect=True, 
-                                                  max_follow_redirect=10,
-                                                  pool_instance=pool_instance,
-                                                  **kwargs)
-        
-              def search(self, query):
-                  return self.get('search.json', q=query)
-                
-              def request(self, *args, **kwargs):
-                  resp = super(TwitterSearch, self).request(*args, **kwargs)
-                  return json.loads(resp.body)
-                
-          if __name__ == "__main__":
-              s = TwitterSearch()
-              print s.search("gunicorn")
-        
-        Reuses connections
-        ------------------
-        
-        Reusing connections is good. Restkit can maintain for you the http connections and reuse them if the server allows it. To do that you can pass to any object a pool instance inheriting reskit.pool.PoolInterface. You can use our threadsafe pool in any application::
-        
-        
-          from restkit import Resource, ConnectionPool
-          
-          pool = ConnectionPool(max_connections=5)
-          res = Resource('http://friendpaste.com', pool_instance=pool)
-          
-        or if you use Eventlet::
-        
-          import eventlet
-          eventlet.monkey_patch(all=False, socket=True, select=True)
-          
-          from restkit import Resource
-          from restkit.ext.eventlet_pool import EventletPool
-          
-          pool = EventletPool(max_connections=5, timeout=300)
-          res = Resource('http://friendpaste.com', pool_instance=pool)
-        
-        
-        Using `eventlet <http://eventlet.net>`_ pool is definitely better since it allows you to define a timeout for connections. When timeout is reached and the connection is still in the pool, it will be closed.
-        
-        Authentication
-        ==============
-        
-        Restkit support for now `basic authentication`_  and `OAuth`_. But any
-        other authentication schema can easily be added using http filters.
-        
-        Basic authentication
-        ++++++++++++++++++++
-        
-        To use `basic authentication` in a `Resource object` you can do::
-        
-          from restkit import Resource, BasicAuth
-         
-          auth = BasicAuth("username", "password")
-          r = Resource("http://friendpaste.com", filters=[auth])
-         
-        Or simply use an authentication url::
-        
-          r = Resource("http://username:password@friendpaste.com")
-          
-        .. _basic authentification: http://www.ietf.org/rfc/rfc2617.txt
-        .. _OAuth: http://oauth.net/
-        
-        OAuth
-        +++++
-        
-        Restkit OAuth is based on `simplegeo python-oauth2 module <http://github.com/simplegeo/python-oauth2>`_ So you don't need other installation to use OAuth (you can also simply use restkit.oauth2 module in your applications).
-          
-        The OAuth filter allow you to associate a consumer per resource (path). Initalize Oauth filter with a tuple or list of tuples::
-              
-                  (path, consumer, token, signaturemethod) 
-                  
-        `token` and `method signature` are optionnals. Consumer should be an instance of `restkit.oauth2.Consumer`, token an  instance of `restkit.oauth2.Token`  signature method an instance of `oauth2.SignatureMethod`  (`restkit.oauth2.Token` is only needed for three-legged requests.
-        
-        With a list of tupple, the filter will try to match the path with the rule. It allows you to maintain different authorization per path. A wildcard at the indicate to the filter to match all path behind.
-        
-        Example the rule `/some/resource/*` will match `/some/resource/other` and `/some/resource/other2`, while the rule `/some/resource` will only match the path `/some/resource`.
-        
-        Simple client example:
-        ~~~~~~~~~~~~~~~~~~~~~~
-        
-        ::
-        
-          from restkit import OAuthfilter, request
-          import restkit.oauth2 as oauth
-        
-          # Create your consumer with the proper key/secret.
-          consumer = oauth.Consumer(key="your-twitter-consumer-key", 
-            secret="your-twitter-consumer-secret")
-        
-          # Request token URL for Twitter.
-          request_token_url = "http://twitter.com/oauth/request_token"
-        
-          # Create our filter.
-          auth = OAuthfilter(('*', consumer))
-        
-          # The request.
-          resp = request(request_token_url, filters=[auth])
-          print resp.body
-          
-        
-        If you want to add OAuth  to your `TwitterSearch` resource::
-        
-          # Create your consumer with the proper key/secret.
-          consumer = oauth.Consumer(key="your-twitter-consumer-key", 
-            secret="your-twitter-consumer-secret")
-            
-          # Create our filter.
-          client = OAuthfilter(('*', consumer))
-            
-          s = TwitterSearch(filters=[client])
-        
-        
-Platform: UNKNOWN
-Classifier: Development Status :: 4 - Beta
-Classifier: Environment :: Web Environment
-Classifier: Intended Audience :: Developers
-Classifier: License :: OSI Approved :: MIT License
-Classifier: Operating System :: OS Independent
-Classifier: Programming Language :: Python
-Classifier: Topic :: Internet :: WWW/HTTP
-Classifier: Topic :: Software Development :: Libraries

Deleted: packages/python-restkit/trunk/README.rst
===================================================================
--- packages/python-restkit/trunk/README.rst	2010-06-06 05:06:46 UTC (rev 13265)
+++ packages/python-restkit/trunk/README.rst	2010-06-06 05:14:54 UTC (rev 13266)
@@ -1,165 +0,0 @@
-About
------
-
-Restkit is an HTTP resource kit for `Python <http://python.org>`_. It allows you to easily access to HTTP resource and build objects around it. It's the base of `couchdbkit <http://www.couchdbkit.org>`_ a Python `CouchDB <http://couchdb.org>`_ framework. 
-
-Restkit is a full HTTP client using pure socket calls and its own HTTP parser. It's not based on httplib or urllib2. 
-
-Installation
-------------
-
-Restkit requires Python 2.x superior to 2.5.
-
-Install from sources::
-
-  $ python setup.py install
-
-Or from Pypi::
-
-  $ easy_install -U restkit
-  
-Usage
-=====
-
-Perform HTTP call support  with `restkit.request`.
-++++++++++++++++++++++++++++++++++++++++++++++++++
-
-Usage example, get friendpaste page::
-
-  from restkit import request
-  resp = request('http://friendpaste.com')
-  print resp.body
-  print resp.status_int_
-    
-    
-Create a simple Twitter Search resource
-+++++++++++++++++++++++++++++++++++++++
-
-Building a resource object is easy using `restkit.Resource` class. We use `simplejson <http://code.google.com/p/simplejson/>`_ to handle deserialisation of data.
-
-Here is the snippet::
-
-  from restkit import Resource
-
-  try:
-      import simplejson as json
-  except ImportError:
-      import json # py2.6 only
-    
-  class TwitterSearch(Resource):
-    
-      def __init__(self,  pool_instance=None, **kwargs):
-          search_url = "http://search.twitter.com"
-          super(TwitterSearch, self).__init__(search_url, follow_redirect=True, 
-                                          max_follow_redirect=10,
-                                          pool_instance=pool_instance,
-                                          **kwargs)
-
-      def search(self, query):
-          return self.get('search.json', q=query)
-        
-      def request(self, *args, **kwargs):
-          resp = super(TwitterSearch, self).request(*args, **kwargs)
-          return json.loads(resp.body)
-        
-  if __name__ == "__main__":
-      s = TwitterSearch()
-      print s.search("gunicorn")
-
-Reuses connections
-------------------
-
-Reusing connections is good. Restkit can maintain for you the http connections and reuse them if the server allows it. To do that you can pass to any object a pool instance inheriting reskit.pool.PoolInterface. You can use our threadsafe pool in any application::
-
-
-  from restkit import Resource, ConnectionPool
-  
-  pool = ConnectionPool(max_connections=5)
-  res = Resource('http://friendpaste.com', pool_instance=pool)
-  
-or if you use Eventlet::
-
-  import eventlet
-  eventlet.monkey_patch(all=False, socket=True, select=True)
-  
-  from restkit import Resource
-  from restkit.ext.eventlet_pool import EventletPool
-  
-  pool = EventletPool(max_connections=5, timeout=300)
-  res = Resource('http://friendpaste.com', pool_instance=pool)
-
-
-Using `eventlet <http://eventlet.net>`_ pool is definitely better since it allows you to define a timeout for connections. When timeout is reached and the connection is still in the pool, it will be closed.
-
-Authentication
-==============
-
-Restkit support for now `basic authentication`_  and `OAuth`_. But any
-other authentication schema can easily be added using http filters.
-
-Basic authentication
-++++++++++++++++++++
-
-To use `basic authentication` in a `Resource object` you can do::
-
-  from restkit import Resource, BasicAuth
- 
-  auth = BasicAuth("username", "password")
-  r = Resource("http://friendpaste.com", filters=[auth])
- 
-Or simply use an authentication url::
-
-  r = Resource("http://username:password@friendpaste.com")
-  
-.. _basic authentification: http://www.ietf.org/rfc/rfc2617.txt
-.. _OAuth: http://oauth.net/
-
-OAuth
-+++++
-
-Restkit OAuth is based on `simplegeo python-oauth2 module <http://github.com/simplegeo/python-oauth2>`_ So you don't need other installation to use OAuth (you can also simply use restkit.oauth2 module in your applications).
-  
-The OAuth filter allow you to associate a consumer per resource (path). Initalize Oauth filter with a tuple or list of tuples::
-      
-          (path, consumer, token, signaturemethod) 
-          
-`token` and `method signature` are optionnals. Consumer should be an instance of `restkit.oauth2.Consumer`, token an  instance of `restkit.oauth2.Token`  signature method an instance of `oauth2.SignatureMethod`  (`restkit.oauth2.Token` is only needed for three-legged requests.
-
-With a list of tupple, the filter will try to match the path with the rule. It allows you to maintain different authorization per path. A wildcard at the indicate to the filter to match all path behind.
-
-Example the rule `/some/resource/*` will match `/some/resource/other` and `/some/resource/other2`, while the rule `/some/resource` will only match the path `/some/resource`.
-
-Simple client example:
-~~~~~~~~~~~~~~~~~~~~~~
-
-::
-
-  from restkit import OAuthfilter, request
-  import restkit.oauth2 as oauth
-
-  # Create your consumer with the proper key/secret.
-  consumer = oauth.Consumer(key="your-twitter-consumer-key", 
-    secret="your-twitter-consumer-secret")
-
-  # Request token URL for Twitter.
-  request_token_url = "http://twitter.com/oauth/request_token"
-
-  # Create our filter.
-  auth = OAuthfilter(('*', consumer))
-
-  # The request.
-  resp = request(request_token_url, filters=[auth])
-  print resp.body
-  
-
-If you want to add OAuth  to your `TwitterSearch` resource::
-
-  # Create your consumer with the proper key/secret.
-  consumer = oauth.Consumer(key="your-twitter-consumer-key", 
-    secret="your-twitter-consumer-secret")
-    
-  # Create our filter.
-  client = OAuthfilter(('*', consumer))
-    
-  s = TwitterSearch(filters=[client])
-

Deleted: packages/python-restkit/trunk/THANKS
===================================================================
--- packages/python-restkit/trunk/THANKS	2010-06-06 05:06:46 UTC (rev 13265)
+++ packages/python-restkit/trunk/THANKS	2010-06-06 05:14:54 UTC (rev 13266)
@@ -1,7 +0,0 @@
-Restkit THANKS
-=====================
-
-A number of people have contributed to Restkit by reporting problems,
-suggesting improvements or submitting changes. Some of these people are:
-
-Gael Pasgrimaud <gael at gawel.org>
\ No newline at end of file

Deleted: packages/python-restkit/trunk/TODO.txt
===================================================================
--- packages/python-restkit/trunk/TODO.txt	2010-06-06 05:06:46 UTC (rev 13265)
+++ packages/python-restkit/trunk/TODO.txt	2010-06-06 05:14:54 UTC (rev 13266)
@@ -1 +0,0 @@
-- Improve Resource mapping

Deleted: packages/python-restkit/trunk/bootstrap.py
===================================================================
--- packages/python-restkit/trunk/bootstrap.py	2010-06-06 05:06:46 UTC (rev 13265)
+++ packages/python-restkit/trunk/bootstrap.py	2010-06-06 05:14:54 UTC (rev 13266)
@@ -1,121 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2006 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""Bootstrap a buildout-based project
-
-Simply run this script in a directory containing a buildout.cfg.
-The script accepts buildout command-line options, so you can
-use the -c option to specify an alternate configuration file.
-
-$Id$
-"""
-
-import os, shutil, sys, tempfile, urllib2
-from optparse import OptionParser
-
-tmpeggs = tempfile.mkdtemp()
-
-is_jython = sys.platform.startswith('java')
-
-# parsing arguments
-parser = OptionParser()
-parser.add_option("-v", "--version", dest="version",
-                          help="use a specific zc.buildout version")
-parser.add_option("-d", "--distribute",
-                   action="store_true", dest="distribute", default=False,
-                   help="Use Distribute rather than Setuptools.")
-
-parser.add_option("-c", None, action="store", dest="config_file",
-                   help=("Specify the path to the buildout configuration "
-                         "file to be used."))
-
-options, args = parser.parse_args()
-
-# if -c was provided, we push it back into args for buildout' main function
-if options.config_file is not None:
-    args += ['-c', options.config_file]
-
-if options.version is not None:
-    VERSION = '==%s' % options.version
-else:
-    VERSION = ''
-
-USE_DISTRIBUTE = options.distribute
-args = args + ['bootstrap']
-
-to_reload = False
-try:
-    import pkg_resources
-    if not hasattr(pkg_resources, '_distribute'):
-        to_reload = True
-        raise ImportError
-except ImportError:
-    ez = {}
-    if USE_DISTRIBUTE:
-        exec urllib2.urlopen('http://python-distribute.org/distribute_setup.py'
-                         ).read() in ez
-        ez['use_setuptools'](to_dir=tmpeggs, download_delay=0, no_fake=True)
-    else:
-        exec urllib2.urlopen('http://peak.telecommunity.com/dist/ez_setup.py'
-                             ).read() in ez
-        ez['use_setuptools'](to_dir=tmpeggs, download_delay=0)
-
-    if to_reload:
-        reload(pkg_resources)
-    else:
-        import pkg_resources
-
-if sys.platform == 'win32':
-    def quote(c):
-        if ' ' in c:
-            return '"%s"' % c # work around spawn lamosity on windows
-        else:
-            return c
-else:
-    def quote (c):
-        return c
-
-cmd = 'from setuptools.command.easy_install import main; main()'
-ws  = pkg_resources.working_set
-
-if USE_DISTRIBUTE:
-    requirement = 'distribute'
-else:
-    requirement = 'setuptools'
-
-if is_jython:
-    import subprocess
-
-    assert subprocess.Popen([sys.executable] + ['-c', quote(cmd), '-mqNxd',
-           quote(tmpeggs), 'zc.buildout' + VERSION],
-           env=dict(os.environ,
-               PYTHONPATH=
-               ws.find(pkg_resources.Requirement.parse(requirement)).location
-               ),
-           ).wait() == 0
-
-else:
-    assert os.spawnle(
-        os.P_WAIT, sys.executable, quote (sys.executable),
-        '-c', quote (cmd), '-mqNxd', quote (tmpeggs), 'zc.buildout' + VERSION,
-        dict(os.environ,
-            PYTHONPATH=
-            ws.find(pkg_resources.Requirement.parse(requirement)).location
-            ),
-        ) == 0
-
-ws.add_entry(tmpeggs)
-ws.require('zc.buildout' + VERSION)
-import zc.buildout.buildout
-zc.buildout.buildout.main(args)
-shutil.rmtree(tmpeggs)

Deleted: packages/python-restkit/trunk/buildout.cfg
===================================================================
--- packages/python-restkit/trunk/buildout.cfg	2010-06-06 05:06:46 UTC (rev 13265)
+++ packages/python-restkit/trunk/buildout.cfg	2010-06-06 05:14:54 UTC (rev 13266)
@@ -1,15 +0,0 @@
-[buildout]
-newest = false
-parts = eggs
-develop = .
-
-[eggs]
-recipe = zc.recipe.egg
-eggs =
-    pastescript
-    ipython
-    restkit
-    webob
-    nose
-    coverage
-

Deleted: packages/python-restkit/trunk/setup.cfg
===================================================================
--- packages/python-restkit/trunk/setup.cfg	2010-06-06 05:06:46 UTC (rev 13265)
+++ packages/python-restkit/trunk/setup.cfg	2010-06-06 05:14:54 UTC (rev 13266)
@@ -1,10 +0,0 @@
-[egg_info]
-tag_build = 
-tag_date = 0
-tag_svn_revision = 0
-
-[nosetests]
-cover-package = restkit
-with-coverage = 1
-exclude = (eventlet,gevent,ipython_shell|eventlet_pool|gevent_pool)
-

Deleted: packages/python-restkit/trunk/setup.py
===================================================================
--- packages/python-restkit/trunk/setup.py	2010-06-06 05:06:46 UTC (rev 13265)
+++ packages/python-restkit/trunk/setup.py	2010-06-06 05:14:54 UTC (rev 13266)
@@ -1,58 +0,0 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -
-#
-# This file is part of restkit released under the MIT license. 
-# See the NOTICE for more information.
-
-import os
-import sys
-
-if not hasattr(sys, 'version_info') or sys.version_info < (2, 5, 0, 'final'):
-    raise SystemExit("Restkit requires Python 2.5 or later.")
-
-from setuptools import setup, find_packages
-
-from restkit import __version__
-
-setup(
-    name = 'restkit',
-    version = __version__,
-    description = 'Python REST kit',
-    long_description = file(
-        os.path.join(
-            os.path.dirname(__file__),
-            'README.rst'
-        )
-    ).read(),
-    author = 'Benoit Chesneau',
-    author_email = 'benoitc at e-engura.org',
-    license = 'BSD',
-    url = 'http://bitbucket.org/benoitc/restkit/',
-    zip_safe = True,
-
-    classifiers = [
-        'Development Status :: 4 - Beta',
-        'Environment :: Web Environment',
-        'Intended Audience :: Developers',
-        'License :: OSI Approved :: MIT License',
-        'Operating System :: OS Independent',
-        'Programming Language :: Python',
-        'Topic :: Internet :: WWW/HTTP',
-        'Topic :: Software Development :: Libraries',
-    ],
-    packages = find_packages(exclude=['tests']),
-    entry_points = {
-        'console_scripts': [
-            'restcli = restkit.console:main',
-        ],
-        'paste.app_factory': [
-            'proxy = restkit.ext.wsgi_proxy:make_proxy',
-            'host_proxy = restkit.ext.wsgi_proxy:make_host_proxy',
-            'couchdb_proxy = restkit.ext.wsgi_proxy:make_couchdb_proxy',
-        ],
-    },
-
-    test_suite = 'nose.collector',
-
-)
-




More information about the Python-modules-commits mailing list