Commit 97c192e9 authored by Sandro Tosi's avatar Sandro Tosi

tagging version 0.7.2-1

parents d082c588 836f9fe0
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 <morph@debian.org> Sun, 07 Apr 2013 23:23:17 +0200
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 <morph@debian.org> Wed, 06 Jun 2012 19:30:29 +0200
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 <morph@debian.org> 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 <morph@debian.org> Tue, 01 May 2012 15:55:55 +0200
prettytable (0.5-1) unstable; urgency=low
* Initial release (Closes: #530704)
-- Sandro Tosi <morph@debian.org> Wed, 27 May 2009 09:14:57 +0200
Source: prettytable
Section: python
Priority: optional
Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Uploaders: Sandro Tosi <morph@debian.org>
Build-Depends: debhelper (>= 7.0.50~), python-all (>= 2.6.6-3~), python3-all (>= 3.1.3-3), python-setuptools, python3-setuptools, locales
Build-Depends-Indep: python-support (>= 1.0.0)
Standards-Version: 3.9.3
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/
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.
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 <luke@maurits.id.au>
License: BSD
Files: debian/*
Copyright: Copyright (C) 2009-2013 Sandro Tosi <morph@debian.org>
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/prettytable-example.py
#!/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/prettytable-example.py
#!/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
LOCALE_PATH := debian/tmpdir/usr/lib/locale
LOCALE_NAME := en_US
LOCALE_CHARSET := UTF-8
%:
dh $@ --with 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
# Compulsory line, this is a version 3 file
version=3
http://pypi.python.org/packages/source/P/PrettyTable/prettytable-(.*)\.tar\.gz
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment