Commit f61733a8 authored by Sandro Tosi's avatar Sandro Tosi

Imported Debian patch 0.5-2

parents 9be70f92 49ea912e
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)
......
......@@ -3,9 +3,9 @@ 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), python, python-setuptools
Build-Depends: debhelper (>= 7.0.50~), python-all (>= 2.6.6-3~), python3-all (>= 3.1.3-3), python-setuptools, python3-setuptools
Build-Depends-Indep: python-support (>= 1.0.0)
Standards-Version: 3.8.1
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/
......@@ -20,3 +20,16 @@ Description: library to represent tabular data in visually appealing ASCII table
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.
This package was debianized by Sandro Tosi <morph@debian.org> on
Wed, 27 May 2009 08:06:55 +0200.
It was downloaded from http://code.google.com/p/prettytable/
Upstream Author:
Luke Maurits <luke@maurits.id.au>
Copyright:
Copyright (c) 2009, Luke Maurits <luke@maurits.id.au>
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, Luke Maurits <luke@maurits.id.au>
License:
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.
The Debian packaging is:
Copyright (C) 2009 Sandro Tosi <morph@debian.org>
and is licensed under the same terms as upstream code
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.
Files: debian/*
Copyright: Copyright (C) 2009-2012 Sandro Tosi <morph@debian.org>
License: same terms as upstream code
......@@ -14,7 +14,7 @@ def main():
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()
......
debian/prettytable-example.py
......@@ -2,6 +2,39 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
PY2VERS := $(shell pyversions -s)
PY3VERS := $(shell py3versions -s)
%:
dh $@
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
# convert to Python 3
2to3 -w $(CURDIR)/prettytable.py
set -e ; \
for python in $(PY3VERS); do \
$$python setup.py install --no-compile -O0 --install-layout=deb \
--root $(CURDIR)/debian/python3-prettytable; \
done
# restore pristine copy after 2to3 run
mv $(CURDIR)/prettytable.py.bak $(CURDIR)/prettytable.py
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 {} \;
dh_clean
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