[Python-modules-commits] r15307 - in packages/python-jsonrpc2/trunk (13 files)
takaki at users.alioth.debian.org
takaki at users.alioth.debian.org
Thu Jan 13 00:54:12 UTC 2011
Date: Thursday, January 13, 2011 @ 00:54:07
Author: takaki
Revision: 15307
[svn-inject] Applying Debian modifications (0.2.3-1) to trunk
Added:
packages/python-jsonrpc2/trunk/debian/
packages/python-jsonrpc2/trunk/debian/changelog
packages/python-jsonrpc2/trunk/debian/compat
packages/python-jsonrpc2/trunk/debian/control
packages/python-jsonrpc2/trunk/debian/copyright
packages/python-jsonrpc2/trunk/debian/docs
packages/python-jsonrpc2/trunk/debian/patches/
packages/python-jsonrpc2/trunk/debian/patches/debian-changes-0.2.3-1
packages/python-jsonrpc2/trunk/debian/patches/series
packages/python-jsonrpc2/trunk/debian/rules
packages/python-jsonrpc2/trunk/debian/source/
packages/python-jsonrpc2/trunk/debian/source/format
packages/python-jsonrpc2/trunk/debian/watch
Property changes on: packages/python-jsonrpc2/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
+ 1
Added: packages/python-jsonrpc2/trunk/debian/changelog
===================================================================
--- packages/python-jsonrpc2/trunk/debian/changelog (rev 0)
+++ packages/python-jsonrpc2/trunk/debian/changelog 2011-01-13 00:54:07 UTC (rev 15307)
@@ -0,0 +1,5 @@
+python-jsonrpc2 (0.2.3-1) unstable; urgency=low
+
+ * Initial release (Closes: #603531)
+
+ -- TANIGUCHI Takaki <takaki at debian.org> Sun, 14 Nov 2010 17:39:36 +0900
Added: packages/python-jsonrpc2/trunk/debian/compat
===================================================================
--- packages/python-jsonrpc2/trunk/debian/compat (rev 0)
+++ packages/python-jsonrpc2/trunk/debian/compat 2011-01-13 00:54:07 UTC (rev 15307)
@@ -0,0 +1 @@
+7
Added: packages/python-jsonrpc2/trunk/debian/control
===================================================================
--- packages/python-jsonrpc2/trunk/debian/control (rev 0)
+++ packages/python-jsonrpc2/trunk/debian/control 2011-01-13 00:54:07 UTC (rev 15307)
@@ -0,0 +1,16 @@
+Source: python-jsonrpc2
+Section: python
+Priority: extra
+Maintainer: TANIGUCHI Takaki <takaki at debian.org>
+Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Build-Depends: debhelper (>= 7.0.50~), python-support, python-setuptools
+Standards-Version: 3.9.1
+Homepage: http://pypi.python.org/pypi/jsonrpc2
+
+Package: python-jsonrpc2
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}
+Provides: ${python:Provides}
+Description: Python WSGI Framework for JSON RPC 2.0
+ jsonrpc2 is WSGI Framework for JSON RPC 2.0. JSON RPC 2.0 Spec can be seen
+ on http://groups.google.com/group/json-rpc/web/json-rpc-2-0 .
Added: packages/python-jsonrpc2/trunk/debian/copyright
===================================================================
--- packages/python-jsonrpc2/trunk/debian/copyright (rev 0)
+++ packages/python-jsonrpc2/trunk/debian/copyright 2011-01-13 00:54:07 UTC (rev 15307)
@@ -0,0 +1,43 @@
+This work was packaged for Debian by:
+
+ TANIGUCHI Takaki <takaki at debian.org> on Sun, 14 Nov 2010 17:39:36 +0900
+
+It was downloaded from:
+
+ http://pypi.python.org/pypi/jsonrpc2/
+
+Upstream Author(s):
+
+ Atsushi Odagiri <aodagx at gmail com>
+
+Copyright:
+
+ Copyright (c) 2010 Atsushi Odagiri
+
+License:
+
+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.
+
+The Debian packaging is:
+
+ Copyright (C) 2010 TANIGUCHI Takaki <takaki at debian.org>
+
+and is licensed under the GPL version 3,
+see "/usr/share/common-licenses/GPL-3".
+
Added: packages/python-jsonrpc2/trunk/debian/docs
===================================================================
--- packages/python-jsonrpc2/trunk/debian/docs (rev 0)
+++ packages/python-jsonrpc2/trunk/debian/docs 2011-01-13 00:54:07 UTC (rev 15307)
@@ -0,0 +1,2 @@
+README.txt
+rpc_example.txt
Added: packages/python-jsonrpc2/trunk/debian/patches/debian-changes-0.2.3-1
===================================================================
--- packages/python-jsonrpc2/trunk/debian/patches/debian-changes-0.2.3-1 (rev 0)
+++ packages/python-jsonrpc2/trunk/debian/patches/debian-changes-0.2.3-1 2011-01-13 00:54:07 UTC (rev 15307)
@@ -0,0 +1,267 @@
+Description: Upstream changes introduced in version 0.2.3-1
+ This patch has been created by dpkg-source during the package build.
+ Here's the last changelog entry, hopefully it gives details on why
+ those changes were made:
+ .
+ python-jsonrpc2 (0.2.3-1) unstable; urgency=low
+ .
+ * Initial release (Closes: #603531)
+ .
+ The person named in the Author field signed this changelog entry.
+Author: TANIGUCHI Takaki <takaki at debian.org>
+Bug-Debian: http://bugs.debian.org/603531
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: http://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: <YYYY-MM-DD>
+
+--- python-jsonrpc2-0.2.3.orig/src/jsonrpc2.egg-info/PKG-INFO
++++ python-jsonrpc2-0.2.3/src/jsonrpc2.egg-info/PKG-INFO
+@@ -14,41 +14,41 @@ Description: jsonrpc2 is WSGI Framework
+
+ ::
+
+- >>> import simplejson as json
+- >>> from jsonrpc2 import JsonRpcApplication
++ >>> import simplejson as json
++ >>> from jsonrpc2 import JsonRpcApplication
+
+ sample procedure::
+
+- >>> def greeting(name="world"):
+- ... return "Hello, %s!" % name
++ >>> def greeting(name="world"):
++ ... return "Hello, %s!" % name
+
+ create rpc application::
+
+- >>> app = JsonRpcApplication(rpcs=dict(greeting=greeting))
++ >>> app = JsonRpcApplication(rpcs=dict(greeting=greeting))
+
+ set up for test::
+
+- >>> from webtest import TestApp
+- >>> testapp = TestApp(app)
++ >>> from webtest import TestApp
++ >>> testapp = TestApp(app)
+
+ call procedure::
+
+- >>> call_values = {'jsonrpc':'2.0', 'method':'greeting', 'id':'greeting'}
+- >>> res = testapp.post('/', params=json.dumps(call_values), content_type="application/json")
++ >>> call_values = {'jsonrpc':'2.0', 'method':'greeting', 'id':'greeting'}
++ >>> res = testapp.post('/', params=json.dumps(call_values), content_type="application/json")
+
+ got results::
+
+- >>> res.json
+- {'jsonrpc': '2.0', 'id': 'greeting', 'result': 'Hello, world!'}
++ >>> res.json
++ {'jsonrpc': '2.0', 'id': 'greeting', 'result': 'Hello, world!'}
+
+
+ lazy loading::
+
+- >>> app.rpc.methods['sample.add'] = 'tests.sample:add'
+- >>> call_values = {'jsonrpc':'2.0', 'method':'sample.add', 'id':'sample.add', 'params':[1, 2]}
+- >>> res = testapp.post('/', params=json.dumps(call_values), content_type="application/json")
+- >>> res.json
+- {'jsonrpc': '2.0', 'id': 'sample.add', 'result': 3}
++ >>> app.rpc.methods['sample.add'] = 'tests.sample:add'
++ >>> call_values = {'jsonrpc':'2.0', 'method':'sample.add', 'id':'sample.add', 'params':[1, 2]}
++ >>> res = testapp.post('/', params=json.dumps(call_values), content_type="application/json")
++ >>> res.json
++ {'jsonrpc': '2.0', 'id': 'sample.add', 'result': 3}
+
+
+ JSON-RPC2 Example
+@@ -56,108 +56,108 @@ Description: jsonrpc2 is WSGI Framework
+
+ use raw rpc processor::
+
+- >>> from jsonrpc2 import JsonRpc
+- >>> rpc = JsonRpc()
++ >>> from jsonrpc2 import JsonRpc
++ >>> rpc = JsonRpc()
+
+ sample procedures::
+
+- >>> def subtract(minuend, subtrahend):
+- ... return minuend - subtrahend
+- >>> def update(*args):
+- ... pass
+- >>> def foobar():
+- ... pass
++ >>> def subtract(minuend, subtrahend):
++ ... return minuend - subtrahend
++ >>> def update(*args):
++ ... pass
++ >>> def foobar():
++ ... pass
+
+ register procedures with dict interface::
+
+- >>> rpc['subtract'] = subtract
+- >>> rpc['update'] = update
+- >>> rpc['foobar'] = foobar
++ >>> rpc['subtract'] = subtract
++ >>> rpc['update'] = update
++ >>> rpc['foobar'] = foobar
+
+ Procedure Call with positional parameters::
+
+- >>> rpc({"jsonrpc": "2.0", "method": "subtract", "params": [42, 23], "id": 1})
+- {'jsonrpc': '2.0', 'id': 1, 'result': 19}
++ >>> rpc({"jsonrpc": "2.0", "method": "subtract", "params": [42, 23], "id": 1})
++ {'jsonrpc': '2.0', 'id': 1, 'result': 19}
+
+- >>> rpc({"jsonrpc": "2.0", "method": "subtract", "params": [23, 42], "id": 2})
+- {'jsonrpc': '2.0', 'id': 2, 'result': -19}
++ >>> rpc({"jsonrpc": "2.0", "method": "subtract", "params": [23, 42], "id": 2})
++ {'jsonrpc': '2.0', 'id': 2, 'result': -19}
+
+ Procedure Call with named parameters::
+
+- >>> rpc({"jsonrpc": "2.0", "method": "subtract", "params": {"subtrahend": 23, "minuend": 42}, "id": 3})
+- {'jsonrpc': '2.0', 'id': 3, 'result': 19}
++ >>> rpc({"jsonrpc": "2.0", "method": "subtract", "params": {"subtrahend": 23, "minuend": 42}, "id": 3})
++ {'jsonrpc': '2.0', 'id': 3, 'result': 19}
+
+- >>> rpc({"jsonrpc": "2.0", "method": "subtract", "params": {"minuend": 42, "subtrahend": 23}, "id": 4})
+- {'jsonrpc': '2.0', 'id': 4, 'result': 19}
++ >>> rpc({"jsonrpc": "2.0", "method": "subtract", "params": {"minuend": 42, "subtrahend": 23}, "id": 4})
++ {'jsonrpc': '2.0', 'id': 4, 'result': 19}
+
+ Notification::
+
+- >>> rpc({"jsonrpc": "2.0", "method": "update", "params": [1,2,3,4,5]})
+- >>> rpc({"jsonrpc": "2.0", "method": "foobar"})
++ >>> rpc({"jsonrpc": "2.0", "method": "update", "params": [1,2,3,4,5]})
++ >>> rpc({"jsonrpc": "2.0", "method": "foobar"})
+
+ Procedure Call of non-existent procedure::
+- >>> del rpc['foobar']
+- >>> rpc({"jsonrpc": "2.0", "method": "foobar", "id": "1"})
+- {'jsonrpc': '2.0', 'id': '1', 'error': {'message': 'Method Not Found', 'code': -32601}}
++ >>> del rpc['foobar']
++ >>> rpc({"jsonrpc": "2.0", "method": "foobar", "id": "1"})
++ {'jsonrpc': '2.0', 'id': '1', 'error': {'message': 'Method Not Found', 'code': -32601}}
+
+ Procedure Call with invalid JSON-RPC::
+
+- >>> rpc([1,2,3])
+- {'jsonrpc': '2.0', 'id': None, 'error': {'message': 'Invalid Request', 'code': -32600}}
++ >>> rpc([1,2,3])
++ {'jsonrpc': '2.0', 'id': None, 'error': {'message': 'Invalid Request', 'code': -32600}}
+
+- >>> rpc({"jsonrpc": "2.0", "method": 1, "params": "bar"})
+- {'jsonrpc': '2.0', 'id': None, 'error': {'message': 'Invalid Request', 'code': -32600}}
++ >>> rpc({"jsonrpc": "2.0", "method": 1, "params": "bar"})
++ {'jsonrpc': '2.0', 'id': None, 'error': {'message': 'Invalid Request', 'code': -32600}}
+
+
+ Batched Call::
+
+- >>> rpc['sum'] = lambda *args: reduce(lambda a, b: a + b, args)
+- >>> def get_data():
+- ... return ["hello", 5]
+- >>> rpc['get_data'] = get_data
+- >>> result = rpc ([ {"jsonrpc": "2.0", "method": "sum", "params": [1,2,4], "id": "1"},
+- ... {"jsonrpc": "2.0", "method": "notify_hello", "params": [7]},
+- ... {"jsonrpc": "2.0", "method": "subtract", "params": [42,23], "id": "2"},
+- ... {"foo": "boo"},
+- ... {"jsonrpc": "2.0", "method": "foo.get", "params": {"name": "myself"}, "id": "5"},
+- ... {"jsonrpc": "2.0", "method": "get_data", "id": "9"} ])
+- >>> from pprint import pprint
+- >>> pprint(result)
+- [{'id': '1', 'jsonrpc': '2.0', 'result': 7},
+- {'error': {'code': -32601, 'message': 'Method Not Found'},
+- 'id': None,
+- 'jsonrpc': '2.0'},
+- {'id': '2', 'jsonrpc': '2.0', 'result': 19},
+- {'error': {'code': -32600, 'message': 'Invalid Request'},
+- 'id': None,
+- 'jsonrpc': '2.0'},
+- {'error': {'code': -32601, 'message': 'Method Not Found'},
+- 'id': '5',
+- 'jsonrpc': '2.0'},
+- {'id': '9', 'jsonrpc': '2.0', 'result': ['hello', 5]}]
++ >>> rpc['sum'] = lambda *args: reduce(lambda a, b: a + b, args)
++ >>> def get_data():
++ ... return ["hello", 5]
++ >>> rpc['get_data'] = get_data
++ >>> result = rpc ([ {"jsonrpc": "2.0", "method": "sum", "params": [1,2,4], "id": "1"},
++ ... {"jsonrpc": "2.0", "method": "notify_hello", "params": [7]},
++ ... {"jsonrpc": "2.0", "method": "subtract", "params": [42,23], "id": "2"},
++ ... {"foo": "boo"},
++ ... {"jsonrpc": "2.0", "method": "foo.get", "params": {"name": "myself"}, "id": "5"},
++ ... {"jsonrpc": "2.0", "method": "get_data", "id": "9"} ])
++ >>> from pprint import pprint
++ >>> pprint(result)
++ [{'id': '1', 'jsonrpc': '2.0', 'result': 7},
++ {'error': {'code': -32601, 'message': 'Method Not Found'},
++ 'id': None,
++ 'jsonrpc': '2.0'},
++ {'id': '2', 'jsonrpc': '2.0', 'result': 19},
++ {'error': {'code': -32600, 'message': 'Invalid Request'},
++ 'id': None,
++ 'jsonrpc': '2.0'},
++ {'error': {'code': -32601, 'message': 'Method Not Found'},
++ 'id': '5',
++ 'jsonrpc': '2.0'},
++ {'id': '9', 'jsonrpc': '2.0', 'result': ['hello', 5]}]
+
+
+
+- 0.2
+- -----------------------------------------------
+-
+- - remove dependency to WebOb
+- - split procedure call class from web application class
+-
+- 0.2.1
+- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+-
+- - lazy loading from method name.
+-
+- 0.2.2
+- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+-
+- - add dict interface.
+-
+- 0.2.3
+- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+-
+- - fix: read body with CONTENT_LENGTH.
++ 0.2
++ -----------------------------------------------
++
++ - remove dependency to WebOb
++ - split procedure call class from web application class
++
++ 0.2.1
++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
++
++ - lazy loading from method name.
++
++ 0.2.2
++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
++
++ - add dict interface.
++
++ 0.2.3
++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
++
++ - fix: read body with CONTENT_LENGTH.
+
+ Keywords: wsgi request web http json rpc
+ Platform: UNKNOWN
Added: packages/python-jsonrpc2/trunk/debian/patches/series
===================================================================
--- packages/python-jsonrpc2/trunk/debian/patches/series (rev 0)
+++ packages/python-jsonrpc2/trunk/debian/patches/series 2011-01-13 00:54:07 UTC (rev 15307)
@@ -0,0 +1 @@
+debian-changes-0.2.3-1
Added: packages/python-jsonrpc2/trunk/debian/rules
===================================================================
--- packages/python-jsonrpc2/trunk/debian/rules (rev 0)
+++ packages/python-jsonrpc2/trunk/debian/rules 2011-01-13 00:54:07 UTC (rev 15307)
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+ dh $@
Property changes on: packages/python-jsonrpc2/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
+ *
Added: packages/python-jsonrpc2/trunk/debian/source/format
===================================================================
--- packages/python-jsonrpc2/trunk/debian/source/format (rev 0)
+++ packages/python-jsonrpc2/trunk/debian/source/format 2011-01-13 00:54:07 UTC (rev 15307)
@@ -0,0 +1 @@
+3.0 (quilt)
Added: packages/python-jsonrpc2/trunk/debian/watch
===================================================================
--- packages/python-jsonrpc2/trunk/debian/watch (rev 0)
+++ packages/python-jsonrpc2/trunk/debian/watch 2011-01-13 00:54:07 UTC (rev 15307)
@@ -0,0 +1,2 @@
+version=3
+http://pypi.python.org/packages/source/j/jsonrpc2/jsonrpc2-(.*).tar.gz
More information about the Python-modules-commits
mailing list