Merge lp:~james-page/ubuntu/oneiric/prettytable/bug-825110 into lp:ubuntu/oneiric/prettytable

Proposed by James Page
Status: Merged
Merged at revision: 3
Proposed branch: lp:~james-page/ubuntu/oneiric/prettytable/bug-825110
Merge into: lp:ubuntu/oneiric/prettytable
Diff against target: 122 lines (+61/-7)
6 files modified
debian/changelog (+15/-0)
debian/control (+17/-4)
debian/prettytable-example.py (+1/-1)
debian/python3-prettytable.examples (+1/-0)
debian/rules (+26/-2)
debian/source/format (+1/-0)
To merge this branch: bzr merge lp:~james-page/ubuntu/oneiric/prettytable/bug-825110
Reviewer Review Type Date Requested Status
Dave Walker (community) Approve
Review via email: mp+71676@code.launchpad.net

Description of the change

Updates to support MIR.
Added python3-prettytable package.

To post a comment you must log in.
Revision history for this message
Dave Walker (davewalker) wrote :

Great stuff, as ever.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2009-05-27 09:14:57 +0000
3+++ debian/changelog 2011-08-16 12:48:17 +0000
4@@ -1,3 +1,18 @@
5+prettytable (0.5-1ubuntu1) oneiric; urgency=low
6+
7+ * Updates for Ubuntu MIR (LP: #825110).
8+ - debian/rules, debian/control: dh_python2 transition.
9+ - debian/control: Bumped Standards-Version: 3.9.2, no changes.
10+ * Switched to source/format: 3.0 (quilt).
11+ * Added python3-prettytable package:
12+ - debian/rules, debian/control: dh_python3 enablement, added
13+ dependencies to support python3 package.
14+ - debian/control: added python3-prettytable package.
15+ - debian/rules: build and clean python2.x and python3 packages.
16+ - debian/prettytable-example.py: updated to be python3 compatible.
17+
18+ -- James Page <james.page@ubuntu.com> Tue, 16 Aug 2011 13:46:00 +0100
19+
20 prettytable (0.5-1) unstable; urgency=low
21
22 * Initial release (Closes: #530704)
23
24=== modified file 'debian/control'
25--- debian/control 2009-05-27 09:14:57 +0000
26+++ debian/control 2011-08-16 12:48:17 +0000
27@@ -1,11 +1,12 @@
28 Source: prettytable
29 Section: python
30 Priority: optional
31-Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
32+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
33+XSBC-Original-Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
34 Uploaders: Sandro Tosi <morph@debian.org>
35-Build-Depends: debhelper (>= 7), python, python-setuptools
36-Build-Depends-Indep: python-support (>= 1.0.0)
37-Standards-Version: 3.8.1
38+Build-Depends: debhelper (>= 7.0.50~), python-all (>= 2.6.6-3~), python3-all (>= 3.1.3-3),
39+ python-setuptools, python3-setuptools
40+Standards-Version: 3.9.2
41 Homepage: http://code.google.com/p/prettytable/
42 Vcs-Svn: svn://svn.debian.org/python-modules/packages/prettytable/trunk/
43 Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/prettytable/trunk/
44@@ -20,3 +21,15 @@
45 psql. PrettyTable allows for selection of which columns are to be
46 printed, independent alignment of columns (left or right justified or
47 centred) and printing of "sub-tables" by specifying a row range.
48+
49+Package: python3-prettytable
50+Architecture: all
51+Depends: ${python3:Depends}, ${misc:Depends}
52+Description: Python3 library to represent tabular data in visually appealing ASCII tables
53+ PrettyTable is a simple Python library designed to make it quick and
54+ easy to represent tabular data in visually appealing ASCII tables. It
55+ was inspired by the ASCII tables used in the PostgreSQL shell
56+ psql. PrettyTable allows for selection of which columns are to be
57+ printed, independent alignment of columns (left or right justified or
58+ centred) and printing of "sub-tables" by specifying a row range.
59+
60
61=== modified file 'debian/prettytable-example.py'
62--- debian/prettytable-example.py 2009-05-27 09:14:57 +0000
63+++ debian/prettytable-example.py 2011-08-16 12:48:17 +0000
64@@ -14,7 +14,7 @@
65 x.add_row(["Sydney", 2058, 4336374, 1214.8])
66 x.add_row(["Melbourne", 1566, 3806092, 646.9])
67 x.add_row(["Perth", 5386, 1554769, 869.4])
68- print x
69+ print(x)
70
71 if __name__ == "__main__":
72 main()
73
74=== added file 'debian/python3-prettytable.examples'
75--- debian/python3-prettytable.examples 1970-01-01 00:00:00 +0000
76+++ debian/python3-prettytable.examples 2011-08-16 12:48:17 +0000
77@@ -0,0 +1,1 @@
78+debian/prettytable-example.py
79
80=== modified file 'debian/rules'
81--- debian/rules 2009-05-27 09:14:57 +0000
82+++ debian/rules 2011-08-16 12:48:17 +0000
83@@ -2,6 +2,30 @@
84 # Uncomment this to turn on verbose mode.
85 #export DH_VERBOSE=1
86
87-
88 %:
89- dh $@
90+ dh $@ --with python2,python3
91+
92+override_dh_auto_install:
93+ set -e && for pyvers in $(shell pyversions -vr); do \
94+ python$$pyvers setup.py install --no-compile -O0 --install-layout=deb \
95+ --root $(CURDIR)/debian/python-prettytable; \
96+ python$$pyvers $(CURDIR)/prettytable.py; \
97+ done
98+ 2to3 -w $(CURDIR)/prettytable.py
99+ set -e && for pyvers in $(shell py3versions -sv); do \
100+ python$$pyvers setup.py install --no-compile -O0 --install-layout=deb \
101+ --root $(CURDIR)/debian/python3-prettytable; \
102+ python$$pyvers $(CURDIR)/prettytable.py; \
103+ done
104+ mv $(CURDIR)/prettytable.py.bak $(CURDIR)/prettytable.py
105+
106+override_dh_auto_clean:
107+ set -e && for pyvers in $(shell pyversions -vr); do \
108+ python$$pyvers setup.py clean -a; \
109+ done
110+ set -e && for pyvers in $(shell py3versions -sv); do \
111+ python$$pyvers setup.py clean -a; \
112+ done
113+ find . -name \*.pyc -exec rm {} \;
114+ dh_clean
115+
116
117=== added directory 'debian/source'
118=== added file 'debian/source/format'
119--- debian/source/format 1970-01-01 00:00:00 +0000
120+++ debian/source/format 2011-08-16 12:48:17 +0000
121@@ -0,0 +1,1 @@
122+3.0 (quilt)

Subscribers

People subscribed via source and target branches

to all changes: