Merge lp:~timkuhlman/python-jujuclient/python-jujuclient-packaging-python3 into lp:~tvansteenburgh/python-jujuclient/python-jujuclient-packaging

Proposed by Tim Kuhlman
Status: Merged
Merged at revision: 38
Proposed branch: lp:~timkuhlman/python-jujuclient/python-jujuclient-packaging-python3
Merge into: lp:~tvansteenburgh/python-jujuclient/python-jujuclient-packaging
Diff against target: 37 lines (+11/-2)
2 files modified
debian/control (+9/-1)
debian/rules (+2/-1)
To merge this branch: bzr merge lp:~timkuhlman/python-jujuclient/python-jujuclient-packaging-python3
Reviewer Review Type Date Requested Status
David Britton (community) Approve
Tim Van Steenburgh Pending
Review via email: mp+306943@code.launchpad.net

Description of the change

Build a deb for Python 3 as well as one for Python 2.

Trusty does not have python3-websocket package available. It is however able to use the one from xenial as it is low on dependencies. I expect though that the trusty build will fail.

To post a comment you must log in.
Revision history for this message
David Britton (dpb) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2014-09-04 17:26:39 +0000
3+++ debian/control 2016-09-27 20:22:55 +0000
4@@ -2,7 +2,7 @@
5 Section: python
6 Priority: optional
7 Maintainer: Andreas Hasenack <andreas@canonical.com>
8-Build-Depends: debhelper (>= 8.0.0), python-all (>= 2.6.6-3~), python-setuptools
9+Build-Depends: debhelper (>= 8.0.0), python-all (>= 2.6.6-3~), python-setuptools, python3-all, python3-websocket
10 Standards-Version: 3.9.4
11 Homepage: https://launchpad.net/python-jujuclient
12
13@@ -12,3 +12,11 @@
14 Provides: ${python:Provides}
15 Description: Python API client for juju-core
16 A simple synchronous python client for the juju-core websocket api.
17+
18+Package: python3-jujuclient
19+Architecture: all
20+Depends: ${misc:Depends}, ${python3:Depends}
21+Description: Python API client for Juju (Python 3)
22+ A simple synchronous python client for the Juju websocket API.
23+ .
24+ This package installs the library for Python 3.
25
26=== modified file 'debian/rules'
27--- debian/rules 2015-02-25 21:39:08 +0000
28+++ debian/rules 2016-09-27 20:22:55 +0000
29@@ -8,6 +8,7 @@
30
31 # Uncomment this to turn on verbose mode.
32 #export DH_VERBOSE=1
33+export PYBUILD_NAME=jujuclient
34
35 %:
36- dh $@ --with python2 --buildsystem=python_distutils
37+ dh $@ --with python2,python3 --buildsystem=pybuild

Subscribers

People subscribed via source and target branches