debian/0000755000000000000000000000000011754633140007172 5ustar debian/changelog0000644000000000000000000000646311754633043011057 0ustar python-html2text (3.200.3-2) unstable; urgency=low * Add missing Depends on python{3,}-pkg-resources (Closes: #672901). Thanks Jakub Wilk. * Bumped Standards-Version to 3.9.3, no changes needed. * Bumped machine readable copyright file to format 1.0. -- Stefano Rivera Tue, 15 May 2012 22:07:47 -0700 python-html2text (3.200.3-1) unstable; urgency=low * New upstream release. * Include README -- Stefano Rivera Sat, 07 Jan 2012 20:04:08 +0200 python-html2text (3.200.2-1) unstable; urgency=low * New upstream release. - Re-adds unescape(). (Closes: #654680) * Bump debian/copyright years. -- Stefano Rivera Fri, 06 Jan 2012 15:25:50 +0200 python-html2text (3.200.1-1) unstable; urgency=low * New upstream release. - Upstream version numbers are no longer decimal, no need to mangle them. - Take advantage of upstream's entry-point binaries. - Update manpage for new options. * debian/rules: set -x for setup.py loops. * Move html2markdown to oldlibs/extra. -- Stefano Rivera Wed, 04 Jan 2012 15:32:49 +0200 python-html2text (3.1.0.1-1) unstable; urgency=low * New upstream release. * Revert to pypi watch file, the missing upload was a mistake. -- Stefano Rivera Sat, 12 Nov 2011 22:27:14 +0200 python-html2text (3.0.2-1) unstable; urgency=low * New upstream release. - Drop all patches, accepted upstream. * Move html2markdown back to Section web. * Bump Standards-Version to 3.9.2, no changes needed. * Drop Breaks: ${python:Breaks}, no longer used by dh_python2. * Point watch file at github (upstream didn't upload this release to the cheeseshop). * Bump copyright years. -- Stefano Rivera Sun, 17 Apr 2011 21:37:45 +0200 python-html2text (3.0.1-2) unstable; urgency=low * Install html2markdown symlink, replacing the html2markdown package. (Closes: #614886) - Conflicts html2markdown << 3.0.1-2. - Add html2markdown transitional package. - Add html2markdown.1 manpage. - Manage html2markdown and html2markdown.1 via alternatives, allowing both Python 2 and 3 packages to provide this command. * optparse.patch: Use optparse for parsing arguments, which also provides help. * utf-output.patch: Encode output in UTF-8. * Recommend python-feedparser in Python 2 package (not available in Python 3 yet). -- Stefano Rivera Sun, 27 Feb 2011 13:56:45 +0200 python-html2text (3.0.1-1) unstable; urgency=low * New upstream release. - Adds Python 3 support. + BD on python3-all >= 3.1.2-12. + New binary package, python3-html2text. - Reliably provides tarballs via pypi. + Update watch file. + Drop get-orig-source. * Switch to dh_python2. - Use X-Python-Version. + BD on python-all >= 2.6.5-13. + Explicitly state supported versions (>= 2.3). - Use Breaks: ${python:Breaks}. * Update my e-mail address. * Update copyright format. * Bump Standards-Version to 3.9.1, no changes needed. -- Stefano Rivera Sun, 20 Feb 2011 18:26:07 +0200 python-html2text (2.3.7-1) unstable; urgency=low * Initial release (Closes: #567552) -- Stefano Rivera Fri, 29 Jan 2010 20:18:23 +0200 debian/python-html2text.prerm0000644000000000000000000000046311532160662013514 0ustar #!/bin/sh set -e case "$1" in remove|deconfigure) update-alternatives --remove html2markdown /usr/bin/html2markdown.py2 ;; upgrade|failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 # vi: set et: debian/python3-html2text.postinst0000644000000000000000000000113511532160662014332 0ustar #!/bin/sh set -e case "$1" in configure) update-alternatives --install /usr/bin/html2markdown html2markdown \ /usr/bin/html2markdown.py3 10 \ --slave /usr/share/man/man1/html2markdown.1.gz \ html2markdown.1.gz \ /usr/share/man/man1/html2markdown.py3.1.gz ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 # vi: set et: debian/rules0000755000000000000000000000233111701052405010240 0ustar #!/usr/bin/make -f PYVERS := $(shell pyversions -r) PY3VERS := $(shell py3versions -r) %: dh $@ --with python2,python3 override_dh_auto_build: set -e -x; \ for py in $(PYVERS) $(PY3VERS); do \ $$py setup.py build; \ done override_dh_auto_install: set -e -x; \ for py in $(PYVERS); do \ $$py setup.py install --skip-build --root debian/python-html2text \ --install-layout deb; \ done; \ cd debian/python-html2text/usr/bin; \ mv html2text html2markdown.py2; \ sed -i '1s,#!.*python.*,#!/usr/bin/python,' html2markdown.py2 set -e -x; \ for py in $(PY3VERS); do \ $$py setup.py install --skip-build --root debian/python3-html2text \ --install-layout deb; \ done; \ cd debian/python3-html2text/usr/bin; \ mv html2text html2markdown.py3; \ sed -i '1s,#!.*python.*,#!/usr/bin/python3,' html2markdown.py3 override_dh_installman: cp debian/html2markdown.1 debian/html2markdown.py2.1 dh_installman -p python-html2text debian/html2markdown.py2.1 cp debian/html2markdown.1 debian/html2markdown.py3.1 dh_installman -p python3-html2text debian/html2markdown.py3.1 override_dh_auto_clean: rm -rf build *.egg-info rm -f debian/html2markdown.py2.1 debian/html2markdown.py3.1 debian/python-html2text.docs0000644000000000000000000000001211702104445013301 0ustar README.md debian/python3-html2text.docs0000644000000000000000000000001211702104445013364 0ustar README.md debian/python-html2text.postinst0000644000000000000000000000113511532160662014247 0ustar #!/bin/sh set -e case "$1" in configure) update-alternatives --install /usr/bin/html2markdown html2markdown \ /usr/bin/html2markdown.py2 20 \ --slave /usr/share/man/man1/html2markdown.1.gz \ html2markdown.1.gz \ /usr/share/man/man1/html2markdown.py2.1.gz ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 # vi: set et: debian/watch0000644000000000000000000000012511701052405010210 0ustar version=3 http://pypi.python.org/packages/source/h/html2text/html2text-(.*)\.tar.gz debian/html2markdown.10000644000000000000000000000335411701052405012041 0ustar .TH HTML2MARKDOWN "1" "January 2012" "html2markdown 3.200.1" "User Commands" .SH NAME html2markdown \- converts a page of HTML into markdown. .SH SYNOPSIS .B html2markdown [options...] [(\fIfilename\fR|\fIurl\fR) [\fIencoding\fR]] .SH DESCRIPTION \fBhtml2markdown\fR downloads the specified HTML page, and converts it to text marked up with markdown. The source HTML page may be a local file or remote URL. If not specified, it will be read from standard input. The output is printed to standard output. .P If an \fIencoding\fR is specified, it will override any encoding information provided by the HTTP Server. When not specified, \fBpython-feedparser\fR (if available) will be used to determine the source encoding. If not available, or when reading local files, the encoding is assumed to be UTF-8. .SH OPTIONS .TP .B \-\-ignore\-emphasis Don't include any formatting for emphasis. .TP .B \-\-ignore\-links Don't include any formatting for links. .TP .B \-\-ignore\-images Don't include any formatting for images. .TP .BR \-g ", " \-\-google\-doc Convert an html-exported Google Document. .TP .BR \-d ", " \-\-dash\-unordered\-list Use a dash rather than a star for unordered list items. .TP \fB\-b\fR \fIBODY_WIDTH\fR, \fB\-\-body\-width\fR=\fIBODY_WIDTH\fR Number of characters per output line, \fB0\fR for no wrap. .TP \fB\-i\fR \fILIST_INDENT\fR, \fB\-\-google\-list\-indent\fR=\fILIST_INDENT\fR Number of pixels Google indents nested lists. .TP .BR \-s ", " \-\-hide\-strikethrough Hide strike-through text. Only relevant when \fB-g\fR is specified as well. .TP .B \-\-version Show program's version number and exit. .TP .BR \-h ", " \-\-help Show a help message and exit. .SH AUTHOR This manpage was written for Debian, by Stefano Rivera . debian/compat0000644000000000000000000000000211330621025010355 0ustar 7 debian/source/0000755000000000000000000000000011754633110010467 5ustar debian/source/format0000644000000000000000000000001411330621025011665 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000221711754632420011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: html2text Upstream-Contact: Aaron Swartz Source: http://www.aaronsw.com/2002/html2text/ Files: * Copyright: 2004-2012, Aaron Swartz License: GPL-3 html2text is available under the GNU GPL 3.0. . On Debian systems, the complete text of the GNU General Public License version 3 can be found in the /usr/share/common-licenses/GPL-3 file. Files: debian/* Copyright: 2010-2012, Stefano Rivera License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . On Debian systems, the complete text of the GNU General Public License version 2 can be found in the /usr/share/common-licenses/GPL-2 file. debian/control0000644000000000000000000000400411754632606010601 0ustar Source: python-html2text Section: python Priority: optional Maintainer: Debian Python Modules Team Uploaders: Stefano Rivera Build-Depends: debhelper (>= 7.0.50~), python-all (>= 2.6.5-13~), python-setuptools, python3-all (>= 3.1.2-12~), python3-setuptools Standards-Version: 3.9.3 Homepage: http://www.aaronsw.com/2002/html2text/ Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-html2text/trunk/ Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-html2text/trunk/ X-Python-Version: >= 2.3 X-Python3-Version: >= 3.0 Package: python-html2text Architecture: all Depends: ${misc:Depends}, ${python:Depends}, python-pkg-resources Recommends: python-feedparser Conflicts: html2markdown (<< 3.0.1-2) Description: Python module for converting HTML to Markdown text html2text is a Python module that converts a page of HTML into clean, easy-to-read plain ASCII text. Better yet, that ASCII also happens to be valid Markdown (a text-to-HTML format). . This package contains the Python 2 version of the library, and a script, html2markdown. Package: python3-html2text Architecture: all Depends: ${misc:Depends}, ${python3:Depends}, python3-pkg-resources Conflicts: html2markdown (<< 3.0.1-2) Description: Python module for converting HTML to Markdown text (Python3 version) html2text is a Python module that converts a page of HTML into clean, easy-to-read plain ASCII text. Better yet, that ASCII also happens to be valid Markdown (a text-to-HTML format). . This package contains the Python 3 version of the library, and a script, html2markdown. Package: html2markdown Section: oldlibs Priority: extra Architecture: all Depends: python-html2text (= ${source:Version}) | python3-html2text (= ${source:Version}), ${misc:Depends} Description: Dummy upgrade package for merge of html2markdown into python-html2text This is a transitional package and can safely be removed; see the python-html2text and python3-html2text packages instead. debian/python3-html2text.prerm0000644000000000000000000000046311532160662013577 0ustar #!/bin/sh set -e case "$1" in remove|deconfigure) update-alternatives --remove html2markdown /usr/bin/html2markdown.py3 ;; upgrade|failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 # vi: set et: