debian/0000755000000000000000000000000011564561671007202 5ustar debian/rules0000755000000000000000000000024311564467070010257 0ustar #!/usr/bin/make -f %: dh $@ --with python2 override_dh_auto_test: set -e; \ for python in $(shell pyversions -r); do \ $$python /usr/bin/nosetests; \ done debian/compat0000644000000000000000000000000211526564354010377 0ustar 7 debian/copyright0000644000000000000000000000257011564467070011137 0ustar Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=174 Upstream-Name: pyth Upstream-Contact: Brendon Hogger Source: http://pypi.python.org/pypi/pyth Files: * Copyright: © 2009 Brendon Hogger License: Expat Files: debian/* Copyright: © 2010-2011 Daniele Tricoli License: Expat License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/clean0000644000000000000000000000002011526564354010176 0ustar pyth.egg-info/* debian/control0000644000000000000000000000214411772142421010573 0ustar Source: pyth Section: python Priority: optional Maintainer: Debian Python Modules Team Uploaders: Daniele Tricoli Build-Depends: debhelper (>= 7.0.50~), poppler-utils, python-all (>=2.6.6-3), python-beautifulsoup, python-docutils, python-nose, python-reportlab, python-setuptools Standards-Version: 3.9.3 Homepage: http://github.com/brendonh/pyth Vcs-Svn: svn://svn.debian.org/python-modules/packages/pyth/trunk/ Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/pyth/trunk/ Package: python-pyth Architecture: all Depends: ${python:Depends}, ${misc:Depends}, python-beautifulsoup, python-docutils, python-reportlab Description: Python text markup and conversion Pyth is a library used to manipulate different formats of marked-up text. . The following list of document formats are currently available: * XHTML (fully supported: read, write) * RTF (fully supported: read, write) * PDF (only output) . It also can generate documents from Python markup a la Nevow's stan and has limited experimental support for LaTeX. debian/watch0000644000000000000000000000013211526564354010226 0ustar version=3 http://pypi.python.org/packages/source/p/pyth/pyth-(.*)\.tar\.gz debian uupdate debian/patches/0000755000000000000000000000000011772142441010620 5ustar debian/patches/series0000644000000000000000000000013411772142421012031 0ustar 01_fix-refactored-PDFWriter-write.patch 02_fix-escaping-html-entities-behavior-change.patch debian/patches/01_fix-refactored-PDFWriter-write.patch0000644000000000000000000000154211772142421017777 0ustar Description: PDFWriter.write was refactored in git rev d87f7877cca5ea90c2d79979521a3db77c47eb30 loosing "method" argument Author: Daniele Tricoli Forwarded: https://github.com/brendonh/pyth/pull/9 Last-Update: 2011-05-17 --- a/tests/test_writepdf.py +++ b/tests/test_writepdf.py @@ -80,13 +80,13 @@ def test_latex(self): doc = PythonReader.read(P[u"the-text"]) - pdf = PDFWriter.write(doc, method='latex').getvalue() + pdf = PDFWriter.write(doc).getvalue() html = self.pdf_to_html(pdf) assert "the-text" in html, html def test_rst(self): doc = PythonReader.read(P[u"the-text"]) - pdf = PDFWriter.write(doc, method='rst').getvalue() + pdf = PDFWriter.write(doc).getvalue() print pdf html = self.pdf_to_html(pdf) assert "the-text" in html, html debian/patches/02_fix-escaping-html-entities-behavior-change.patch0000644000000000000000000000131511772142421022321 0ustar Description: Fixed escaping HTML entities within strings behavior change in python-beautifulsoup 3.2.1. Author: Daniele Tricoli Forwarded: https://github.com/brendonh/pyth/pull/14 Last-Update: 2012-06-25 --- a/pyth/plugins/xhtml/reader.py +++ b/pyth/plugins/xhtml/reader.py @@ -55,7 +55,7 @@ text = unicode(node) lines = [x.strip() for x in text.splitlines()] text = ' '.join(lines) - node.replaceWith(text) + node.replaceWith(BeautifulSoup.BeautifulSoup(text)) soup = BeautifulSoup.BeautifulSoup(unicode(soup)) # replace all
tag by newline character for node in soup.findAll('br'): debian/source/0000755000000000000000000000000011526564354010501 5ustar debian/source/format0000644000000000000000000000001411526564354011707 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000252011772142453011045 0ustar pyth (0.5.6-3) unstable; urgency=low * debian/control - Fixed Vcs-Svn URL - Sorted Build-Depends and Depends - Bumped Standards-Version to 3.9.3 (no changes needed) * debian/patches/01_fix-refactored-PDFWriter-write.patch - Made DEP3 compliant * debian/02_fix-escaping-html-entities-behavior-change.patch - Fixed escaping HTML entities within strings behavior change in python-beautifulsoup 3.2.1. (Closes: #678754) -- Daniele Tricoli Mon, 25 Jun 2012 05:25:43 +0200 pyth (0.5.6-2) unstable; urgency=low * debian/control - Fixed Vcs-Browser URL - Bumped Standards-Version to 3.9.2 (no changes needed) - Added packages needed for unit tests in Build-Depends field - Moved packages listed in Recommends field to Depends field * debian/copyright - Made DEP5 compliant * debian/{control, rules} - Switched to dh_python2 - Run unit tests at build time using python-nose * debian/patches/01_fix-refactored-PDFWriter-write.patch - Fix refactored signature of PDFWriter.write in upstream git revision d87f7877cca5ea90c2d79979521a3db77c47eb30 -- Daniele Tricoli Tue, 17 May 2011 06:20:48 +0200 pyth (0.5.6-1) unstable; urgency=low * Initial release (Closes: #590037) -- Daniele Tricoli Tue, 27 Jul 2010 04:41:14 +0200 debian/docs0000644000000000000000000000000711526564354010051 0ustar README debian/python-pyth.examples0000644000000000000000000000001311526564354013236 0ustar examples/*