[PKG-Openstack-devel] Bug#883717: python-jsonrpclib: Please package python3-jsonrpclib

Tristan Seligmann mithrandi at mithrandi.net
Wed Dec 6 19:06:34 UTC 2017


Source: python-jsonrpclib
Version: 0.1.3-1
Severity: wishlist

electrum has switched to Python 3 as of 3.0, so python3-jsonrpclib will become
a reverse dependency. I've attached a patch to make this build.

As an aside, I see that this package seems to be undermaintained
(Vcs-{Git,Browser} are broken URLs, and there has been no upload since the
initial upload); I would like to volunteer to take over maintenance under
DPMT's umbrella if this would be acceptable.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.13.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_ZA.utf8, LC_CTYPE=en_ZA.utf8 (charmap=UTF-8), LANGUAGE=en_ZA.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- no debconf information
-------------- next part --------------
>From 467016f79243b4d3704fb721a3b8229a687a49a4 Mon Sep 17 00:00:00 2001
From: Tristan Seligmann <mithrandi at mithrandi.net>
Date: Wed, 6 Dec 2017 21:02:34 +0200
Subject: [PATCH] Add Python 3 package

---
 0001-Add-Python-3-package.patch | 64 +++++++++++++++++++++++++++++++++++++++++
 debian/control                  | 26 +++++++++++++++--
 debian/rules                    |  2 +-
 3 files changed, 89 insertions(+), 3 deletions(-)
 create mode 100644 0001-Add-Python-3-package.patch

diff --git a/0001-Add-Python-3-package.patch b/0001-Add-Python-3-package.patch
new file mode 100644
index 0000000..89d6fd7
--- /dev/null
+++ b/0001-Add-Python-3-package.patch
@@ -0,0 +1,64 @@
+From 7b1dd7a19a9f0d4ae2ac3a7e8270ac9b9043b5d6 Mon Sep 17 00:00:00 2001
+From: Tristan Seligmann <mithrandi at mithrandi.net>
+Date: Wed, 6 Dec 2017 21:02:34 +0200
+Subject: [PATCH] Add Python 3 package
+
+---
+ debian/control | 22 ++++++++++++++++++++--
+ debian/rules   |  2 +-
+ 2 files changed, 21 insertions(+), 3 deletions(-)
+
+diff --git a/debian/control b/debian/control
+index 28a50a9..e032d83 100644
+--- a/debian/control
++++ b/debian/control
+@@ -7,7 +7,7 @@ Uploaders: Loic Dachary (OuoU) <loic at debian.org>,
+            Thomas Goirand <zigo at debian.org>,
+            Ghe Rivero <ghe.rivero at stackops.com>,
+            Mehdi Abaakouk <sileht at sileht.net>
+-Build-Depends: debhelper (>= 9), python-setuptools, python-all (>= 2.6.6-3~), openstack-pkg-tools
++Build-Depends: debhelper (>= 9), python-setuptools, python-all (>= 2.6.6-3~), python3-setuptools, python3-all, openstack-pkg-tools
+ Build-Depends-Indep: python-simplejson
+ Standards-Version: 3.9.4
+ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/python-jsonrpclib.git
+@@ -19,7 +19,25 @@ Architecture: all
+ Pre-Depends: dpkg (>= 1.15.6~)
+ Depends: ${python:Depends}, ${misc:Depends}, python-simplejson
+ Recommends: ${python:Recommends}
+-Description: implementation of the JSON-RPC v2.0 specification
++Description: implementation of the JSON-RPC v2.0 specification - Python 2
++ 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.
++
++Package: python3-jsonrpclib
++Architecture: all
++Pre-Depends: dpkg (>= 1.15.6~)
++Depends: ${python3:Depends}, ${misc:Depends}, python3-simplejson
++Recommends: ${python3:Recommends}
++Description: implementation of the JSON-RPC v2.0 specification - Python 3
+  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
+diff --git a/debian/rules b/debian/rules
+index 93e4913..9c0060f 100755
+--- a/debian/rules
++++ b/debian/rules
+@@ -4,5 +4,5 @@ UPSTREAM_GIT = git://github.com/<please-user>/jsonrpclib.git
+ include /usr/share/openstack-pkg-tools/pkgos.make
+ 
+ %:
+-	dh $@  --with python2
++	dh $@  --with python2,python3
+ 
+-- 
+2.15.1
+
diff --git a/debian/control b/debian/control
index 28a50a9..a3f93aa 100644
--- a/debian/control
+++ b/debian/control
@@ -7,7 +7,7 @@ Uploaders: Loic Dachary (OuoU) <loic at debian.org>,
            Thomas Goirand <zigo at debian.org>,
            Ghe Rivero <ghe.rivero at stackops.com>,
            Mehdi Abaakouk <sileht at sileht.net>
-Build-Depends: debhelper (>= 9), python-setuptools, python-all (>= 2.6.6-3~), openstack-pkg-tools
+Build-Depends: debhelper (>= 9), python-setuptools, python-all (>= 2.6.6-3~), python3-setuptools, python3-all, openstack-pkg-tools
 Build-Depends-Indep: python-simplejson
 Standards-Version: 3.9.4
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/python-jsonrpclib.git
@@ -19,7 +19,7 @@ Architecture: all
 Pre-Depends: dpkg (>= 1.15.6~)
 Depends: ${python:Depends}, ${misc:Depends}, python-simplejson
 Recommends: ${python:Recommends}
-Description: implementation of the JSON-RPC v2.0 specification
+Description: implementation of the JSON-RPC v2.0 specification - Python 2
  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
@@ -31,3 +31,25 @@ Description: implementation of the JSON-RPC v2.0 specification
   * Keyword arguments
   * Notifications (both in a batch and 'normal')
   * Class translation using the 'jsonclass' key.
+ .
+ This package contains the Python 2 version of jsonrpclib.
+
+Package: python3-jsonrpclib
+Architecture: all
+Pre-Depends: dpkg (>= 1.15.6~)
+Depends: ${python3:Depends}, ${misc:Depends}, python3-simplejson
+Recommends: ${python3:Recommends}
+Description: implementation of the JSON-RPC v2.0 specification - Python 3
+ 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.
+ .
+ This package contains the Python 3 version of jsonrpclib.
diff --git a/debian/rules b/debian/rules
index 93e4913..9c0060f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,5 +4,5 @@ UPSTREAM_GIT = git://github.com/<please-user>/jsonrpclib.git
 include /usr/share/openstack-pkg-tools/pkgos.make
 
 %:
-	dh $@  --with python2
+	dh $@  --with python2,python3
 
-- 
2.15.1



More information about the Openstack-devel mailing list