[Python-modules-commits] [jsonrpclib-pelix] 03/08: add initial Debian packaging

Tristan Seligmann mithrandi at moszumanska.debian.org
Mon Dec 11 13:09:40 UTC 2017


This is an automated email from the git hooks/post-receive script.

mithrandi pushed a commit to branch master
in repository jsonrpclib-pelix.

commit 3535cee36282fc266e71e7b6c0cf0b698055313a
Author: Tristan Seligmann <mithrandi at mithrandi.net>
Date:   Wed Dec 6 21:50:06 2017 +0200

    add initial Debian packaging
---
 debian/.git-dpm                      |   3 +
 debian/changelog                     |   6 ++
 debian/compat                        |   1 +
 debian/control                       | 198 +++++++++++++++++++++++++++++++++++
 debian/copyright                     |  25 +++++
 debian/python3-jsonrpclib-pelix.docs |   1 +
 debian/rules                         |   5 +
 debian/source/options                |   1 +
 debian/watch                         |   4 +
 9 files changed, 244 insertions(+)

diff --git a/debian/.git-dpm b/debian/.git-dpm
index f1e6b93..1615999 100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@ -6,3 +6,6 @@
 jsonrpclib-pelix_0.3.1.orig.tar.gz
 a2b924e23c2a0280783e44938e80b540f34f0bd6
 29997
+debianTag="debian/%e%v"
+patchedTag="patched/%e%v"
+upstreamTag="upstream/%e%u"
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..a6511d7
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+jsonrpclib-pelix (0.3.1-1) unstable; urgency=low
+
+  * Initial release (closes: #NNNNNN)
+
+ -- Tristan Seligmann <mithrandi at debian.org>  Wed, 06 Dec 2017 19:50:05 +0000
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..33433d2
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,198 @@
+Source: jsonrpclib-pelix
+Section: python
+Priority: optional
+Maintainer: Tristan Seligmann <mithrandi at debian.org>
+Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Build-Depends: debhelper (>= 9), dh-python,
+               python-all,
+               python-setuptools,
+               python3-all,
+               python3-setuptools,
+Standards-Version: 4.0.0
+Homepage: http://github.com/tcalmant/jsonrpclib/
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/jsonrpclib-pelix.git
+Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/jsonrpclib-pelix.git
+
+Package: python-jsonrpclib-pelix
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends},
+Recommends: ${python:Recommends}
+Suggests: ${python:Suggests}
+Description: This project is an implementation of the JSON-RPC v2.0 specification (backwards- - Python 2.X
+ JSONRPClib (patched for Pelix and Python 3)
+ ###########################################
+ .
+  .. image:: https://img.shields.io/pypi/v/jsonrpclib-pelix.svg
+     :target: https://pypi.python.org/pypi/jsonrpclib-pelix/
+     :alt: Latest Version
+ .
+  .. image:: https://img.shields.io/pypi/l/jsonrpclib-pelix.svg
+     :target: https://pypi.python.org/pypi/jsonrpclib-pelix/
+     :alt: License
+ .
+  .. image:: https://travis-ci.org/tcalmant/jsonrpclib.svg?branch=master
+     :target: https://travis-ci.org/tcalmant/jsonrpclib
+     :alt: Travis-CI status
+ .
+  .. image:: https://coveralls.io/repos/tcalmant/jsonrpclib/badge.svg?branch=master
+     :target: https://coveralls.io/r/tcalmant/jsonrpclib?branch=master
+     :alt: Coveralls status
+ .
+ This library is an implementation of the JSON-RPC specification.
+ It supports both the original 1.0 specification, as well as the
+ new (proposed) 2.0 specification, which includes batch submission, keyword
+ arguments, etc.
+ .
+ It is licensed under the Apache License, Version 2.0
+ (http://www.apache.org/licenses/LICENSE-2.0.html).
+ .
+ .
+ About this version
+ ******************
+ .
+ This is a patched version of the original ``jsonrpclib`` project by
+ Josh Marshall, available at https://github.com/joshmarshall/jsonrpclib.
+ .
+ The suffix *-pelix* only indicates that this version works with Pelix Remote
+ Services, but it is **not** a Pelix specific implementation.
+ .
+  * This version adds support for Python 3, staying compatible with Python 2.7.
+  * It is now possible to use the dispatch_method argument while extending
+   the SimpleJSONRPCDispatcher, to use a custom dispatcher.
+   This allows to use this package by Pelix Remote Services.
+  * It can use thread pools to control the number of threads spawned to handle
+   notification requests and clients connections.
+  * The modifications added in other forks of this project have been added:
+ .
+   * From https://github.com/drdaeman/jsonrpclib:
+ .
+     * Improved JSON-RPC 1.0 support
+     * Less strict error response handling
+ .
+   * From https://github.com/tuomassalo/jsonrpclib:
+ .
+     * In case of a non-pre-defined error, raise an AppError and give access to
+       *error.data*
+ .
+   * From https://github.com/dejw/jsonrpclib:
+ .
+     * Custom headers can be sent with request and associated tests
+ .
+  * The support for Unix sockets has been removed, as it is not trivial to convert
+   to Python 3 (and I don't use them)
+  * This version cannot be installed with the original ``jsonrpclib``, as it uses
+   the same package name.
+ .
+ .
+ Summary
+ *******
+ .
+ This library implements the JSON-RPC 2.0 proposed specification in pure Python.
+ It is designed to be as compatible with the syntax of ``xmlrpclib`` as possible
+ (it extends where possible), so that projects using ``xmlrpclib`` could easily
+ be modified to use JSON and experiment with the differences.
+ .
+ It is backwards-compatible with the 1.0 specification, and supports all of the
+ new proposed features of 2.0, including:
+ .
+  * Batch submission (via MultiCall)
+  * Keyword arguments
+  * Notifications (both in a batch and 'normal')
+  * Class translation using the ``__jsonclass__`` key.
+ .
+ I've added a "SimpleJSONRPCServer", which is intended to emulate the
+ "SimpleXMLRPCServer" from the default Python distribution.
+ .
+ .
+
+Package: python3-jsonrpclib-pelix
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends},
+Recommends: ${python3:Recommends}
+Suggests: ${python3:Suggests}
+Description: This project is an implementation of the JSON-RPC v2.0 specification (backwards-
+ JSONRPClib (patched for Pelix and Python 3)
+ ###########################################
+ .
+  .. image:: https://img.shields.io/pypi/v/jsonrpclib-pelix.svg
+     :target: https://pypi.python.org/pypi/jsonrpclib-pelix/
+     :alt: Latest Version
+ .
+  .. image:: https://img.shields.io/pypi/l/jsonrpclib-pelix.svg
+     :target: https://pypi.python.org/pypi/jsonrpclib-pelix/
+     :alt: License
+ .
+  .. image:: https://travis-ci.org/tcalmant/jsonrpclib.svg?branch=master
+     :target: https://travis-ci.org/tcalmant/jsonrpclib
+     :alt: Travis-CI status
+ .
+  .. image:: https://coveralls.io/repos/tcalmant/jsonrpclib/badge.svg?branch=master
+     :target: https://coveralls.io/r/tcalmant/jsonrpclib?branch=master
+     :alt: Coveralls status
+ .
+ This library is an implementation of the JSON-RPC specification.
+ It supports both the original 1.0 specification, as well as the
+ new (proposed) 2.0 specification, which includes batch submission, keyword
+ arguments, etc.
+ .
+ It is licensed under the Apache License, Version 2.0
+ (http://www.apache.org/licenses/LICENSE-2.0.html).
+ .
+ .
+ About this version
+ ******************
+ .
+ This is a patched version of the original ``jsonrpclib`` project by
+ Josh Marshall, available at https://github.com/joshmarshall/jsonrpclib.
+ .
+ The suffix *-pelix* only indicates that this version works with Pelix Remote
+ Services, but it is **not** a Pelix specific implementation.
+ .
+  * This version adds support for Python 3, staying compatible with Python 2.7.
+  * It is now possible to use the dispatch_method argument while extending
+   the SimpleJSONRPCDispatcher, to use a custom dispatcher.
+   This allows to use this package by Pelix Remote Services.
+  * It can use thread pools to control the number of threads spawned to handle
+   notification requests and clients connections.
+  * The modifications added in other forks of this project have been added:
+ .
+   * From https://github.com/drdaeman/jsonrpclib:
+ .
+     * Improved JSON-RPC 1.0 support
+     * Less strict error response handling
+ .
+   * From https://github.com/tuomassalo/jsonrpclib:
+ .
+     * In case of a non-pre-defined error, raise an AppError and give access to
+       *error.data*
+ .
+   * From https://github.com/dejw/jsonrpclib:
+ .
+     * Custom headers can be sent with request and associated tests
+ .
+  * The support for Unix sockets has been removed, as it is not trivial to convert
+   to Python 3 (and I don't use them)
+  * This version cannot be installed with the original ``jsonrpclib``, as it uses
+   the same package name.
+ .
+ .
+ Summary
+ *******
+ .
+ This library implements the JSON-RPC 2.0 proposed specification in pure Python.
+ It is designed to be as compatible with the syntax of ``xmlrpclib`` as possible
+ (it extends where possible), so that projects using ``xmlrpclib`` could easily
+ be modified to use JSON and experiment with the differences.
+ .
+ It is backwards-compatible with the 1.0 specification, and supports all of the
+ new proposed features of 2.0, including:
+ .
+  * Batch submission (via MultiCall)
+  * Keyword arguments
+  * Notifications (both in a batch and 'normal')
+  * Class translation using the ``__jsonclass__`` key.
+ .
+ I've added a "SimpleJSONRPCServer", which is intended to emulate the
+ "SimpleXMLRPCServer" from the default Python distribution.
+ .
+ .
\ No newline at end of file
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..ace2bb8
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,25 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: jsonrpclib-pelix
+Upstream-Contact: Thomas Calmant <thomas.calmant+github at gmail.com>
+Source: http://github.com/tcalmant/jsonrpclib/
+
+Files: *
+Copyright: Thomas Calmant <thomas.calmant+github at gmail.com>
+License: Apache License 2.0
+
+Files: debian/*
+Copyright: 2017 © Tristan Seligmann <mithrandi at debian.org>
+License: Apache License 2.0
+
+License: Apache License 2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+     http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
\ No newline at end of file
diff --git a/debian/python3-jsonrpclib-pelix.docs b/debian/python3-jsonrpclib-pelix.docs
new file mode 100644
index 0000000..a1320b1
--- /dev/null
+++ b/debian/python3-jsonrpclib-pelix.docs
@@ -0,0 +1 @@
+README.rst
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..8c7e3eb
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,5 @@
+#! /usr/bin/make -f
+
+export PYBUILD_NAME=jsonrpclib-pelix
+%:
+	dh $@ --with python2,python3 --buildsystem=pybuild
\ No newline at end of file
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 0000000..d81db3f
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+extend-diff-ignore="^[^/]+.egg-info/"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..719414c
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+# try also https://pypi.debian.net/jsonrpclib-pelix/watch
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+https://pypi.debian.net/jsonrpclib-pelix/jsonrpclib-pelix-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/jsonrpclib-pelix.git



More information about the Python-modules-commits mailing list