Package: prettytable Version: 0.5-1 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu oneiric ubuntu-patch
*** /tmp/tmpDmOGWT In Ubuntu, the attached patch was applied to achieve the following: * Updates for Ubuntu MIR (LP: #825110). - debian/rules, debian/control: dh_python2 transition. - debian/control: Bumped Standards-Version: 3.9.2, no changes. * Switched to source/format: 3.0 (quilt). * Added python3-prettytable package: - debian/rules, debian/control: dh_python3 enablement, added dependencies to support python3 package. - debian/control: added python3-prettytable package. - debian/rules: build and clean python2.x and python3 packages. - debian/prettytable-example.py: updated to be python3 compatible. Thanks for considering the patch. -- System Information: Debian Release: wheezy/sid APT prefers oneiric-updates APT policy: (500, 'oneiric-updates'), (500, 'oneiric-security'), (500, 'oneiric') Architecture: amd64 (x86_64) Kernel: Linux 2.6.38-10-generic (SMP w/8 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash
=== modified file 'debian/changelog' === modified file 'debian/control' --- debian/control 2009-05-27 09:14:57 +0000 +++ debian/control 2011-08-18 11:55:58 +0000 @@ -3,9 +3,9 @@ Priority: optional Maintainer: Debian Python Modules Team <python-modules-t...@lists.alioth.debian.org> Uploaders: Sandro Tosi <mo...@debian.org> -Build-Depends: debhelper (>= 7), python, python-setuptools -Build-Depends-Indep: python-support (>= 1.0.0) -Standards-Version: 3.8.1 +Build-Depends: debhelper (>= 7.0.50~), python-all (>= 2.6.6-3~), python3-all (>= 3.1.3-3), + python-setuptools, python3-setuptools +Standards-Version: 3.9.2 Homepage: http://code.google.com/p/prettytable/ Vcs-Svn: svn://svn.debian.org/python-modules/packages/prettytable/trunk/ Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/prettytable/trunk/ @@ -20,3 +20,15 @@ psql. PrettyTable allows for selection of which columns are to be printed, independent alignment of columns (left or right justified or centred) and printing of "sub-tables" by specifying a row range. + +Package: python3-prettytable +Architecture: all +Depends: ${python3:Depends}, ${misc:Depends} +Description: Python3 library to represent tabular data in visually appealing ASCII tables + PrettyTable is a simple Python library designed to make it quick and + easy to represent tabular data in visually appealing ASCII tables. It + was inspired by the ASCII tables used in the PostgreSQL shell + psql. PrettyTable allows for selection of which columns are to be + printed, independent alignment of columns (left or right justified or + centred) and printing of "sub-tables" by specifying a row range. + === modified file 'debian/prettytable-example.py' --- debian/prettytable-example.py 2009-05-27 09:14:57 +0000 +++ debian/prettytable-example.py 2011-08-16 12:45:00 +0000 @@ -14,7 +14,7 @@ x.add_row(["Sydney", 2058, 4336374, 1214.8]) x.add_row(["Melbourne", 1566, 3806092, 646.9]) x.add_row(["Perth", 5386, 1554769, 869.4]) - print x + print(x) if __name__ == "__main__": main() === added file 'debian/python3-prettytable.examples' --- debian/python3-prettytable.examples 1970-01-01 00:00:00 +0000 +++ debian/python3-prettytable.examples 2011-08-16 12:17:29 +0000 @@ -0,0 +1 @@ +debian/prettytable-example.py === modified file 'debian/rules' --- debian/rules 2009-05-27 09:14:57 +0000 +++ debian/rules 2011-08-16 12:25:07 +0000 @@ -2,6 +2,30 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 - %: - dh $@ + dh $@ --with python2,python3 + +override_dh_auto_install: + set -e && for pyvers in $(shell pyversions -vr); do \ + python$$pyvers setup.py install --no-compile -O0 --install-layout=deb \ + --root $(CURDIR)/debian/python-prettytable; \ + python$$pyvers $(CURDIR)/prettytable.py; \ + done + 2to3 -w $(CURDIR)/prettytable.py + set -e && for pyvers in $(shell py3versions -sv); do \ + python$$pyvers setup.py install --no-compile -O0 --install-layout=deb \ + --root $(CURDIR)/debian/python3-prettytable; \ + python$$pyvers $(CURDIR)/prettytable.py; \ + done + mv $(CURDIR)/prettytable.py.bak $(CURDIR)/prettytable.py + +override_dh_auto_clean: + set -e && for pyvers in $(shell pyversions -vr); do \ + python$$pyvers setup.py clean -a; \ + done + set -e && for pyvers in $(shell py3versions -sv); do \ + python$$pyvers setup.py clean -a; \ + done + find . -name \*.pyc -exec rm {} \; + dh_clean + === added directory 'debian/source' === added file 'debian/source/format' --- debian/source/format 1970-01-01 00:00:00 +0000 +++ debian/source/format 2011-08-16 12:21:28 +0000 @@ -0,0 +1 @@ +3.0 (quilt)