Oops. Actually correct patch attached this time.
>From e08d824f98d32e13c8252eae05afa96356c1d995 Mon Sep 17 00:00:00 2001
From: Tristan Seligmann <mithra...@mithrandi.net>
Date: Wed, 6 Dec 2017 21:02:34 +0200
Subject: [PATCH] Add Python 3 package

---
 debian/control | 26 ++++++++++++++++++++++++--
 debian/rules   |  4 +++-
 2 files changed, 27 insertions(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index 28a50a9..f3f8693 100644
--- a/debian/control
+++ b/debian/control
@@ -7,7 +7,7 @@ Uploaders: Loic Dachary (OuoU) <l...@debian.org>,
            Thomas Goirand <z...@debian.org>,
            Ghe Rivero <ghe.riv...@stackops.com>,
            Mehdi Abaakouk <sil...@sileht.net>
-Build-Depends: debhelper (>= 9), python-setuptools, python-all (>= 2.6.6-3~), openstack-pkg-tools
+Build-Depends: debhelper (>= 9), dh-python, 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..5ca5e3e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,5 +4,7 @@ UPSTREAM_GIT = git://github.com/<please-user>/jsonrpclib.git
 include /usr/share/openstack-pkg-tools/pkgos.make
 
 %:
-	dh $@  --with python2
+	dh $@  --with python2,python3
 
+override_dh_auto_install:
+	pkgos-dh_auto_install
-- 
2.15.1

Reply via email to