debian/0000755000000000000000000000000012302376213007165 5ustar debian/copyright0000644000000000000000000000333512242621516011126 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: prettytable Source: http://code.google.com/p/prettytable/ Files: * Copyright: Copyright (c) 2009-2013, Luke Maurits License: BSD Files: debian/* Copyright: Copyright (C) 2009-2013 Sandro Tosi License: BSD License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/changelog0000644000000000000000000000571212302376213011044 0ustar prettytable (0.7.2-2ubuntu2) trusty; urgency=medium * Rebuild to drop files installed into /usr/share/pyshared. -- Matthias Klose Sun, 23 Feb 2014 13:50:03 +0000 prettytable (0.7.2-2ubuntu1) trusty; urgency=low * Merge from Debian unstable. Remaining changes: - Convert to dh_python2: + debian/control: Removed python-support from Build-Depends-Indep. + debian/rules: Added --with python2 to complete transition. -- Logan Rosen Mon, 18 Nov 2013 21:11:55 -0500 prettytable (0.7.2-2) unstable; urgency=low [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. [ Sandro Tosi ] * debian/control - bump Standards-Version to 3.9.4 (no changes needed) -- Sandro Tosi Sun, 29 Sep 2013 15:31:36 +0200 prettytable (0.7.2-1) experimental; urgency=low * New upstream release * debian/copyright - update upstream copyright information - extend packaging copyright years * debian/{control, rules} - install and use UTF-8 charset, needed by test suite -- Sandro Tosi Sun, 07 Apr 2013 23:23:17 +0200 prettytable (0.6.1-1ubuntu1) raring; urgency=low * Merge from Debian unstable. Remaining changes: - Convert to dh_python2: + debian/control: Removed python-support from Build-Depends-Indep. + debian/rules: Added --with python2 to complete transition. -- Logan Rosen Sun, 04 Nov 2012 22:59:44 -0500 prettytable (0.6.1-1) unstable; urgency=low * New upstream release * debian/prettytable-example.py - update for new 0.6 release * Run tests at build-time with "python setup.py test" * debian/rules - install README -- Sandro Tosi Wed, 06 Jun 2012 19:30:29 +0200 prettytable (0.6-1ubuntu1) quantal; urgency=low * Convert to dh_python2: - debian/control: Removed python-support from Build-Depends-Indep. - debian/rules: Added --with python2 to complete transition. -- Dave Walker (Daviey) Sun, 20 May 2012 10:42:04 +0100 prettytable (0.6-1) unstable; urgency=low * New upstream release * debian/rules - remove python3 transformation commands, available upstream now - run tests at build time * debian/copyright - reorganize information * Ship unittest in debian/, no longer available in upstream tarball -- Sandro Tosi Sun, 06 May 2012 11:06:13 +0200 prettytable (0.5-2) unstable; urgency=low * debian/control - bump Standards-Version to 3.9.3 (no changes needed) * Provide python3 package; thanks to James Page for initial patch; Closes: #638303 * debian/source/format - use 3.0 (quilt) source format * debian/copyright - move to DEP5 format - extend packaging copyright years -- Sandro Tosi Tue, 01 May 2012 15:55:55 +0200 prettytable (0.5-1) unstable; urgency=low * Initial release (Closes: #530704) -- Sandro Tosi Wed, 27 May 2009 09:14:57 +0200 debian/prettytable-example.py0000644000000000000000000000140212242621475013532 0ustar #!/usr/bin/python # Example extracted from the source code of prettytable module from prettytable import PrettyTable def main(): x = PrettyTable(["City name", "Area", "Population", "Annual Rainfall"]) x.sortby = "Population" x.reversesort = True x.int_format["Area"] = "04" x.float_format = "6.1" x.align["City name"] = "l" # Left align city names x.add_row(["Adelaide", 1295, 1158259, 600.5]) x.add_row(["Brisbane", 5905, 1857594, 1146.4]) x.add_row(["Darwin", 112, 120900, 1714.7]) x.add_row(["Hobart", 1357, 205556, 619.5]) 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) if __name__ == "__main__": main() debian/examples0000644000000000000000000000003612242621475010733 0ustar debian/prettytable-example.py debian/python3-prettytable.examples0000644000000000000000000000003612242621475014673 0ustar debian/prettytable-example.py debian/compat0000644000000000000000000000000212242621475010371 0ustar 7 debian/control0000644000000000000000000000353012242621516010573 0ustar Source: prettytable Section: python Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Python Modules Team Uploaders: Sandro Tosi Build-Depends: debhelper (>= 7.0.50~), python-all (>= 2.6.6-3~), python3-all (>= 3.1.3-3), python-setuptools, python3-setuptools, locales Standards-Version: 3.9.4 Homepage: http://code.google.com/p/prettytable/ Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/prettytable/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/prettytable/trunk/ Package: python-prettytable Architecture: all Depends: ${python:Depends}, ${misc:Depends} Description: 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. Package: python3-prettytable Architecture: all Depends: ${python3:Depends}, ${misc:Depends} Description: library to represent tabular data in visually appealing ASCII tables (Python3) 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. . This package contains the Python 3 version of prettytable. debian/rules0000755000000000000000000000275712242621516010262 0ustar #!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 PY2VERS := $(shell pyversions -s) PY3VERS := $(shell py3versions -s) # For running tests, we need UTF-8 charset # See #604706 for references about this method LOCALE_PATH := debian/tmpdir/usr/lib/locale LOCALE_NAME := en_US LOCALE_CHARSET := UTF-8 %: dh $@ --with python2,python3 override_dh_auto_install: set -e ; \ for python in $(PY2VERS); do \ $$python setup.py install --no-compile -O0 --install-layout=deb \ --root $(CURDIR)/debian/python-prettytable; \ done set -e ; \ for python in $(PY3VERS); do \ $$python setup.py install --no-compile -O0 --install-layout=deb \ --root $(CURDIR)/debian/python3-prettytable; \ done override_dh_auto_clean: set -e ; \ for python in $(PY2VERS); do \ $$python setup.py clean -a; \ done set -e ; \ for python in $(PY3VERS); do \ $$python setup.py clean -a; \ done find . -name \*.pyc -exec rm {} \; rm -rf $(LOCALE_PATH) dh_clean override_dh_auto_test: ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),) # configure a local charset dir, for testing purposes mkdir -p $(LOCALE_PATH) localedef -i $(LOCALE_NAME) -c -f $(LOCALE_CHARSET) \ -A /usr/share/locale/locale.alias --quiet \ $(LOCALE_PATH)/$(LOCALE_NAME).$(LOCALE_CHARSET) set -e ; \ for python in $(PY2VERS) $(PY3VERS); do \ PYTHONPATH=. LOCPATH=$(LOCALE_PATH) LC_ALL=$(LOCALE_NAME).$(LOCALE_CHARSET) $$python setup.py test ; \ done endif override_dh_installdocs: dh_installdocs -A README debian/source/0000755000000000000000000000000012242621525010467 5ustar debian/source/format0000644000000000000000000000001412242621475011701 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000020612242621475010222 0ustar # Compulsory line, this is a version 3 file version=3 http://pypi.python.org/packages/source/P/PrettyTable/prettytable-(.*)\.tar\.gz