[Reproducible-commits] [epydoc] 02/03: Imported Debian patch 3.0.1+dfsg-7
Reiner Herrmann
reiner at reiner-h.de
Thu Jul 2 18:56:46 UTC 2015
This is an automated email from the git hooks/post-receive script.
deki-guest pushed a commit to branch pu/reproducible_builds
in repository epydoc.
commit 379ac7f4cd942c00b316176d2c93264c4a416e75
Author: Kenneth J. Pronovici <pronovic at debian.org>
Date: Sun May 10 16:57:28 2015 +0000
Imported Debian patch 3.0.1+dfsg-7
---
debian/README.Debian | 50 ++++
debian/changelog | 449 +++++++++++++++++++++++++++++
debian/compat | 1 +
debian/control | 46 +++
debian/copyright | 47 +++
debian/epydoc-doc.doc-base | 10 +
debian/epydoc-doc.docs | 2 +
debian/patches/build-time.patch | 100 +++++++
debian/patches/handle-docutils-0.6.patch | 47 +++
debian/patches/lintian.patch | 20 ++
debian/patches/manpages.patch | 214 ++++++++++++++
debian/patches/mention-debian.patch | 12 +
debian/patches/python26-tokenizer.patch | 65 +++++
debian/patches/remove-shebang.patch | 10 +
debian/patches/series | 9 +
debian/patches/special-latex-entries.patch | 21 ++
debian/patches/string-exceptions.patch | 18 ++
debian/python-epydoc.dirs | 2 +
debian/python-epydoc.docs | 1 +
debian/python-epydoc.install | 3 +
debian/python-epydoc.manpages | 2 +
debian/python-epydoc.preinst | 14 +
debian/rules | 17 ++
debian/source/format | 1 +
debian/watch | 4 +
25 files changed, 1165 insertions(+)
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..914d867
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,50 @@
+OPTIONAL PACKAGES
+
+The epydoc command requires the texlive-latex-extra package to use the --dvi
+and --ps options, and also requires the gs-common package to use the --pdf
+option. The epydocgui command requires the python-tk package. All of these
+optional packages are Recommended in the package dependencies.
+
+The other recommended packages are listed because without them, the install
+process doesn't proceed cleanly -- extra old tetex packages get pulled in and I
+get a mixed system with both tetex and texlive dependencies.
+
+The texlive-latex-extra package is huge, and I wish I could Recommend the
+texlive-latex-base package instead. However, the LaTeX that Epydoc generates
+includes \usepackage directives for packages such as 'multirow', which are
+available only in texlive-latex-extra and *not* texlive-latex-base.
+
+
+OBSOLETE PACKAGES
+
+As of version 2.0-2, all scripts, manpages and Python modules are part of the
+python-epydoc package only. The python2.1-epydoc, python2.2-epydoc and
+python2.3-eypdoc binary packages (which are no longer even built) can be
+removed from your system at any time. They existed only to allow for a smooth
+upgrade from earlier packages prior to version 2.0-2.
+
+
+IMPORTING EPYDOC MODULES
+
+The epydoc Python package is installed as a public package by the
+dh_python2 infrastructure. This means that you can import epydoc
+modules directly from any "current" version of Python (whatever Debian policy
+defines as current, which as of this writing is Python 2.6 and Python 2.7).
+
+
+$PYTHONVER NO LONGER SUPPORTED
+
+Older versions of this Debian package (prior to 2.1-11, when the conversion
+to python-support happened) allowed usage of $PYTHONVER on the command-line to
+specify which version of Python the epydoc code should be executed with.
+Unfortunately, under the new Debian python policy, there is no good way to
+accomplish this any more -- not that the previous way I handled it was all that
+pretty, either.
+
+If you want to run epydoc from the command-line with some version of Python
+other than the default one (/usr/bin/python), then just copy the
+/usr/bin/epydoc script and edit it to your liking. You'll probably just invoke
+the script with a different interpreter. Note: this has to be an interpreter
+supported by the Python infrastructure -- it can't be some arbitrary
+interpreter on your system.
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..c7d03c1
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,449 @@
+epydoc (3.0.1+dfsg-7) unstable; urgency=medium
+
+ * Update Recommends and Suggests for both python-epydoc and epydoc-doc.
+ - epydoc-doc: Recommend the chromium browser rather than iceweasel, since
+ that is the browser I test with day-to-day.
+ - python-epydoc: move ghostscript and texlive dependencies to Suggests to
+ reduce the minimum install size for typical users (texlive is huge).
+ * Update the Description for python-epydoc.
+ - Update the description to indicate that suggested dependencies must be
+ installed to generate documentation in DVI, PostScript, or PDF format
+ using the LaTeX formatter.
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Sun, 10 May 2015 16:57:28 +0000
+
+epydoc (3.0.1+dfsg-6) unstable; urgency=medium
+
+ * Bump standards version to 3.9.6.1 (no packaging changes).
+ * Update debian/copyright to list 2015 as the copyright date on my changes.
+ * Add dh-python to Build-Depends, to silence build-time warning.
+ * Add patches/build-time.patch (closes: #783326).
+ - This is a request from the Reproducible Builds project
+ - The new patch adds a new --no-include-build-time command-line option
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Tue, 28 Apr 2015 13:18:13 +0000
+
+epydoc (3.0.1+dfsg-5) unstable; urgency=medium
+
+ * Fix Lintian bug in debian/copyright: empty-short-license-in-dep5-copyright.
+ * Bump standards version to 3.9.6.0 (no packaging changes).
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Fri, 03 Oct 2014 19:52:32 +0000
+
+epydoc (3.0.1+dfsg-4) unstable; urgency=low
+
+ * Bump standards version to 3.9.5.0 (no packaging changes).
+ * Fix Lintian warning privacy-breach-logo for doc/index.html.
+ - Add new patch patches/lintian.patch
+ - Remove <IMG src="http://sourceforge.net/sflogo.php?group_id=32455&type=1">
+ - Replace with simple text "SourceForge", with no privacy implications
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Sun, 23 Feb 2014 09:39:10 -0600
+
+epydoc (3.0.1+dfsg-3) unstable; urgency=low
+
+ * Convert debian/rules to debhelper7, overriding just a few standard targets.
+ * Update debian/README.debian to use dh_python2 rather than python-support.
+ * Modify debian/python-epydoc.dirs to properly use usr/share/pyshared.
+ * Update debian/copyright to list 2013 as the copyright date on my changes.
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Wed, 24 Apr 2013 16:35:13 +0000
+
+epydoc (3.0.1+dfsg-2) unstable; urgency=low
+
+ * Bump standards version to 3.9.4.0; no packaging changes.
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Mon, 31 Dec 2012 18:41:53 +0000
+
+epydoc (3.0.1+dfsg-1) unstable; urgency=low
+
+ * Package a new DFSG-free upstream tarball (closes: #692733).
+ - The new tarball removes non-free doc/pycon-epydoc.html
+ - Remove debian/patches/remove-cc-by-nc-sa.patch; no longer needed
+ - Add opts=dversionmangle in debian/watch per Lintian recommendation
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Sat, 10 Nov 2012 16:04:44 +0000
+
+epydoc (3.0.1-13) unstable; urgency=low
+
+ * Update copyright date for Debian package files in debian/copyright.
+ * Remove non-free doc/pycon-epydoc.html from the package (closes: #692733).
+ - Remove reference to doc/pycon-epydoc.html from debian/copyright
+ - Add new patch debian/patches/remove-cc-by-nc-sa.patch
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Thu, 08 Nov 2012 09:35:39 -0600
+
+epydoc (3.0.1-12) unstable; urgency=low
+
+ * Update to machine-readable debian/copyright file format, version 1.0.
+ * Bump standards version to 3.9.3.0; no packaging changes.
+ * Move to debhelper (>= 9) and debian/compat=9, which is the new standard.
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Mon, 12 Mar 2012 12:06:08 -0500
+
+epydoc (3.0.1-11) unstable; urgency=low
+
+ * Stop depending on transitional gs-common package (closes: #649697).
+ - Replace Recommends: gs-common with Recommends: ghostscript
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Wed, 23 Nov 2011 10:21:01 -0600
+
+epydoc (3.0.1-10) unstable; urgency=low
+
+ * Bump standards version to 3.9.2.0; no packaging changes.
+ * Fix Lintian warning: debian-rules-missing-recommended-target
+ - Restructure build, build-arch, build-indep targets in debian/rules
+ * Transition to dh_python2, since python-support is deprecated for Wheezy.
+ - Replace Build-Depends: python-support with python-all in debian/control
+ - Replace debian/pyversion with X-Python-Version: >= 2.1 in debian/control
+ - Replace call to 'dh_pysupport -d' with 'dh_python2' in debian/rules
+ - Replace python-support with pyshared in debian/cedar-backup2.install
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Fri, 05 Aug 2011 14:41:41 -0500
+
+epydoc (3.0.1-9) unstable; urgency=low
+
+ * Bump standards version to 3.9.1.0 (no packaging changes).
+ * Do a better job of handling special latex entries (closes: #614570).
+ - Apply debian/patches/special-latex-entries.patch
+ - Patch provided by Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Wed, 02 Mar 2011 16:41:50 +0000
+
+epydoc (3.0.1-8) unstable; urgency=low
+
+ * Revise manpages.patch based on better understanding of GROFF hyphens.
+ * Apply python26-tokenizer.patch to fix Epydoc tokenizer (closes: #590112).
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Sun, 25 Jul 2010 16:04:00 +0000
+
+epydoc (3.0.1-7) unstable; urgency=low
+
+ * Tweak manpage syntax based on advice from Lintian (manpages.patch).
+ * Remove version numbers in Conflicts: to quiet Lintian.
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Sun, 11 Jul 2010 01:54:23 +0000
+
+epydoc (3.0.1-6) unstable; urgency=low
+
+ * Tweak short description to better match official recommendations.
+ * Bump standards version to 3.9.0.0.
+ * Add Homepage: tag in debian/control.
+ * Convert debian/copyright to new DEP-5 machine-readable format.
+ * Convert to source format "3.0 (quilt)"
+ - Add new file debian/source/format
+ - Add new patch debian/patches/mention-debian.patch
+ - Add new patch debian/patches/remove-shebang.patch
+ - Add new patch debian/patches/handle-docutils-0.6.patch
+ - Add new patch debian/patches/string-exceptions.patch
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Mon, 28 Jun 2010 13:27:23 -0500
+
+epydoc (3.0.1-5) unstable; urgency=low
+
+ * Replace deprecated string exception in apidoc.py (closes: #585290).
+ * Bump standards version to 3.8.4 (no packaging changes).
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Sat, 12 Jun 2010 13:17:07 -0500
+
+epydoc (3.0.1-4) unstable; urgency=low
+
+ * Bump standards version to 3.8.3 (no packaging changes).
+ * Add ${misc:Depends} for all binary packages, per lintian recommendation.
+ * Apply patch to fix problems with docutils 0.6 (closes: #561793).
+ - Thanks to Thomas Hille for research and the initial patch.
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Thu, 31 Dec 2009 02:56:36 +0000
+
+epydoc (3.0.1-3) unstable; urgency=low
+
+ * Bump standards version to 3.8.1 (no packaging changes).
+ * Bump debhelper compatibility to 7, per linitian recommendation.
+ * Declare a dependency on debhelper (>= 7.0.1) to match compatibility.
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Sun, 29 Mar 2009 18:10:30 -0500
+
+epydoc (3.0.1-2) unstable; urgency=low
+
+ * Add Suggests: python-profiler to support call graphs (closes: #506756)
+ * List explicit copyright statement in debian/copyright, to quiet lintian.
+ * Move user manual to Programming section in doc-base configuration.
+ * Bump standards version to 3.8.0 (no packaging changes).
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Mon, 8 Dec 2008 18:56:47 -0600
+
+epydoc (3.0.1-1) unstable; urgency=low
+
+ * New upstream release.
+ * Removed #! from top of epydoc/gui.py
+ * Got rid of version mangling in debian/watch.
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Sun, 3 Feb 2008 13:22:12 -0600
+
+epydoc (3.0~beta1-5) unstable; urgency=low
+
+ * Recommend python-docutils, for reStructuredText markup (closes: #449525).
+ * Use qa.debian.org redirector in debian/watch, so SourceForge URL works.
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Sun, 18 Nov 2007 18:11:59 -0600
+
+epydoc (3.0~beta1-4) unstable; urgency=low
+
+ * Apply a better fix for #441368 (provided by upstream).
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Sun, 30 Sep 2007 14:01:07 -0500
+
+epydoc (3.0~beta1-3) unstable; urgency=low
+
+ * Remove debian/watch file, which doesn't work any more (thanks, Sourceforge).
+ * Apply selected changes from upstream's Subversion repository:
+ - Fixes for identifiers containing dashes, svn rev 1606 (closes: #433424)
+ - Fixes for indexed terms, svn rev 1603 (closes: #441368)
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Sun, 30 Sep 2007 10:23:46 -0500
+
+epydoc (3.0~beta1-2) unstable; urgency=low
+
+ * Put back several single-character command-line options (closes: #433804).
+ - Patch cli.py to support the -u and -c options (match the manpage)
+ - Patch cli.py, doc/epydoc-man.html and man/epydoc.1 to support the -n option
+ - Submitted patches to upstream in SF bug #1760001
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Tue, 24 Jul 2007 20:07:18 -0500
+
+epydoc (3.0~beta1-1) unstable; urgency=low
+
+ * Package 3.0 beta 1 release (closes: #425193).
+ - Change README.TXT to README.txt in debian/*.docs
+ - Skip installing apirst2html.py until I understand its purpose better
+ - Remove dh_links call in debian/rules, since it's not really needed
+ - Change debian/control to add Recommends: graphviz (needed for --graph)
+ - Thanks to Cameron Dale for initial package upgrade patch
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Mon, 9 Jul 2007 21:00:30 -0500
+
+epydoc (2.1-13) unstable; urgency=low
+
+ * Completely rework previous fix for bug #425077 based on further testing.
+ - texlive-latex-base is not enough; add texlive-latex-extra,
+ texlive-latex-recommended and texlive-fonts-recommended so
+ everything works and the package gets installed cleanly
+ - Patch latex.py to use fancyhdr, since fancyheadings isn't in texlive
+ - Update README.Debian to reflect changes in recommended dependencies.
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Sun, 3 Jun 2007 18:20:26 -0500
+
+epydoc (2.1-12) unstable; urgency=low
+
+ * Bring Recommends dependencies up to date with lenny (closes: #425077).
+ - Recommend texlive-latex-base rather than obsolete tetex-extra
+ - Recommend gs-common rather than gs-esp | gs, since this is where ps2pdf lives
+ - Recommend iceweasel | www-browser rather than mozilla | www-browser
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Sun, 3 Jun 2007 14:02:45 -0500
+
+epydoc (2.1-11) unstable; urgency=low
+
+ * Bumped Standards-Version to 3.7.2.
+ - Provide empty binary-arch target in debian/rules to quiet lintian
+ * Update to latest Python policy using python-support method.
+ - Change debian/control to use Build-Depends instead of Build-Depends-Indep
+ - Change debian/control to use Depends: ${python:Depends}
+ - Change debian/control to use Recommends: python-tk, not pythonX.Y-tk
+ - Change debian/rules to build using /usr/bin/python, not /usr/bin/python2.4
+ - Change debian/rules to invoke dh_pysupport -d (for ${python:Depends})
+ - Change debian/rules to stop installing obsolete wrapper scripts
+ - Change debian/rules to use --install-purelib/--install-scripts, not --prefix
+ - Change debian/python-epydoc.dirs to reference usr/share/python-support
+ - Change debian/python-epydoc.install to match new build locations
+ - Change debian/python-epydoc.preinst to remove old package's pyo and pyc files
+ - Remove debian/epydoc.wrapper and debian/epydocgui.wrapper
+ - Remove debian/python-epydoc.postinst and debian/python-epydoc.prerm
+ - Added new debian/pyversions file for use by python-support
+ * Remove support for $PYTHONVER in the epydoc and epydocgui command-line scripts.
+ - This cannot really be done well with the new policy and infrastructure
+ - Removed CHOICE OF PYTHON VERSION section from man/epydoc*.1
+ - Reworked debian/README.Debian to discuss this loss of functionality
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Mon, 24 Jul 2006 01:11:44 +0000
+
+epydoc (2.1-10) unstable; urgency=low
+
+ * Remove obsolete debian/python2.[123]-epydoc files (leftovers).
+ * Change debian/rules to remove obsolete python2.[123] references.
+ * Remove references to python2.1 and python2.2 and make python2.4 the default
+ - Update documentation in debian/README.Debian
+ - Change Depends and Build-Depends-Indep to use python2.4
+ - Update package descriptions to remove obsolete information
+ - Change debian/python-epydoc.install to reference python2.4
+ - Change python search order in debian/python-epydoc.postinst
+ - Change debian/rules to use python2.4 to build the package
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Sat, 15 Apr 2006 10:50:13 -0500
+
+epydoc (2.1-9) unstable; urgency=low
+
+ * Remove pythonX.Y-epydoc packages now that sarge has released.
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Fri, 10 Jun 2005 13:10:04 -0500
+
+epydoc (2.1-8) unstable; urgency=low
+
+ * Support Python 2.4 in wrappers and postinst.
+ * Rework postinst so that it works for people who have Python set up to
+ use alternatives. I now have to invoke compileall.compile_dir() rather
+ than compileally.py because I can't be sure of the location of
+ compileall.py. Fix is based on pychecker bug #300922.
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Wed, 23 Mar 2005 17:04:44 -0600
+
+epydoc (2.1-7) unstable; urgency=low
+
+ * Fix broken escape of @ decorator in docstring codeblocks (closes: #293571).
+ - Problem is that colorizer.py _COMMENT pattern catches @ and splits it.
+ - Simplistic fix is to change pattern from '(#.*?$)' to '([^&]#.*?$)'.
+ - I've written upstream several times, but have not heard back.
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Sat, 12 Mar 2005 13:45:00 -0600
+
+epydoc (2.1-6) unstable; urgency=low
+
+ * Rework python-epydoc postinst so that it works even for people who don't
+ have the default python package installed. The fix is to look for python,
+ python2.3, python2.2 and python2.1 (in that order), and use the first one
+ found to compile the modules (closes: #291292).
+ * Update README.Debian to match new behavior in postinst.
+ * Added notes in executable wrappers to document new behavior in postinst.
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Wed, 19 Jan 2005 16:47:04 -0600
+
+epydoc (2.1-5) unstable; urgency=low
+
+ * Recommend 'gs-esp | gs' rather than just 'gs' (closes: #275654).
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Thu, 14 Oct 2004 19:50:08 -0500
+
+epydoc (2.1-4) unstable; urgency=low
+
+ * Fix latex output when using --separate-class option (closes: #250775).
+ - Fix is based on patch from Paul van Tilburg
+ - I applied patch from upstream based on Paul's patch
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Mon, 24 May 2004 18:34:30 -0500
+
+epydoc (2.1-3) unstable; urgency=low
+
+ * Updated debian/watch to fix Sourceforge download URL away from mirror.
+ * Now Recommend mozilla | www-browser for epydoc-doc to shut Lintian up.
+ * Now Recommend tetex-extra and gs for python-epydoc so --ps, --pdf and --dvi work.
+ * Updated debian/README.Debian to clarify optional packages.
+ * Fixed broken error message in epydoc/cli.py, when handling invalid switch.
+ * Fixed generated latex to work with Debian tetex packages (closes: #250256).
+ - Change epydoc/latex.py to use \usepackage[headings]{fullpage}
+ - This is a Debian-specific change after discussion with upstream
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Sat, 22 May 2004 12:51:34 -0500
+
+epydoc (2.1-2) unstable; urgency=low
+
+ * Fix TypeError ("Cannot create UID...") bug in uid.py (closes: #242832).
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Sun, 11 Apr 2004 23:20:00 -0500
+
+epydoc (2.1-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Sun, 21 Mar 2004 12:16:01 -0600
+
+epydoc (2.0-3) unstable; urgency=low
+
+ * Changed section from doc to python for all but epydoc-doc.
+ * Fixed broken dependencies (closes: #238798).
+ - Dependencies forced install of python2.1 or 2.2 even if 2.3 was available
+ - Change Depends to python2.3 | python2.2-xmlbase | python2.1-xmlbase
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Fri, 19 Mar 2004 22:14:34 -0600
+
+epydoc (2.0-2) unstable; urgency=low
+
+ * Complete reworking of package now that I've taken it over.
+ - Added README.Debian to document some packaging details
+ - Entire package is now debhelper-ized (compat level 4)
+ - Python modules are now installed in site-python
+ - All scripts, Python modules, etc. are now in python-epyoc only
+ - Old pythonX.Y-epydoc packages are obsolete but remain for easy upgrade
+ - Section has been changed from 'extra' to 'optional' to match overrides
+ - Documentation from -doc package is now available via dhelp, doc-central, etc.
+ - Removed epydocX.Y scripts in favor of scripts that work for all python versions
+ - Added Debian-specific sections to manpages, to document new script behavior
+ - Tweaked epydoc/cli.py to give correct Debian script name in -h output
+ - Tweaked epydoc/cli.py usage to remove reference to nonexistent manpage
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Mon, 15 Mar 2004 21:04:16 -0600
+
+epydoc (2.0-1) unstable; urgency=low
+
+ * Hijacking this package (inactive and unresponsive maintainer).
+ See: http://lists.debian.org/debian-devel/2004/debian-devel-200402/msg02048.html
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Sun, 29 Feb 2004 15:46:49 -0600
+
+epydoc (2.0-0.2) unstable; urgency=low
+
+ * NMU (inactive maintainer).
+ * Fix Python dependency for python-epydoc package (closes: #216568).
+ - Now depend on python (>= 2.3), python (<< 2.4).
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Sun, 19 Oct 2003 13:07:28 -0500
+
+epydoc (2.0-0.1) unstable; urgency=low
+
+ * NMU under "excessively liberal NMU policy" through 14 Sep 2003.
+ * Upgraded to upstream 2.0 release.
+ - Epydoc GUI now works (closes: #171471)
+ - Epydoc can now handle keyword arguments (closes: #171722)
+ - Epydoc now properly documents static class methods (closes: #204390)
+ * Made package descriptions more verbose (closes: #210087).
+ * Now installable in sid (closes: #178782).
+ - Removed dependency on python2.3-xmlbase.
+ * Default package is now python2.3-epydoc.
+ - python-epydoc now depends on python2.3-epydoc (>= 2.0-0.1)
+ - All defaults (manpages, binaries) are for 2.3 rather than 2.2
+ - Manpages required 2.3 version to replace/conflict with old 2.2 version
+ * Fixed typo in change entry for 1.1-2 (showed #16827 rather than #168271).
+ * Removed (s) from debian/copyright to quiet lintian.
+ * Added debian/watch file.
+ * Tweaked debian rules file as little as possible.
+ - Hardcode list of scripts, so build under CVS works
+ - Make sure to compress Debian changelog in all packages
+ - Changed code to make soft links for Python 2.3 rather than 2.2
+ - Needed to install epydoc/markup and epydoc/test as well
+
+ -- Kenneth J. Pronovici <pronovic at debian.org> Thu, 11 Sep 2003 14:41:18 -0500
+
+epydoc (1.1-2) unstable; urgency=low
+
+ * Adding Recommends: tkinter (Closes: #171460)
+ * Adding Suggests: epydoc-doc (Closes: #168271)
+
+ -- Moshe Zadka <moshez at debian.org> Mon, 2 Dec 2002 18:06:31 +0000
+
+epydoc (1.1-1) unstable; urgency=low
+
+ * New upstream version
+ * Uploading to Debian
+
+ -- Moshe Zadka <moshez at debian.org> Sat, 2 Nov 2002 08:15:03 +0000
+
+epydoc (1.0-1) unstable; urgency=low
+
+ * New upstream version.
+
+ -- Moshe Zadka <moshez at debian.org> Fri, 27 Sep 2002 04:48:29 +0000
+
+epydoc (0.2-1) unstable; urgency=low
+
+ * First release
+
+ -- Moshe Zadka <moshez at debian.org> Mon, 9 Sep 2002 01:53:01 +0000
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..db7e41e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,46 @@
+Source: epydoc
+Section: python
+Priority: optional
+Maintainer: Kenneth J. Pronovici <pronovic at debian.org>
+Homepage: http://epydoc.sourceforge.net/
+Build-Depends: debhelper (>= 9), python-all (>= 2.6.6-3~), dh-python
+Standards-Version: 3.9.6.1
+X-Python-Version: >= 2.1
+
+Package: python-epydoc
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}
+Recommends: python-tk, python-docutils, graphviz
+Suggests: epydoc-doc, python-profiler, ghostscript, texlive-latex-base, texlive-latex-extra, texlive-latex-recommended, texlive-fonts-recommended
+Conflicts: python2.3-epydoc, python2.2-epydoc, python2.1-epydoc
+Replaces: python2.3-epydoc (<< 2.0-2), python2.2-epydoc (<< 2.0-2), python2.1-epydoc (<< 2.0-2)
+Description: tool for documenting Python modules
+ Epydoc is a tool for generating API documentation for Python modules based on
+ their docstrings. A lightweight markup language called epytext can be used to
+ format docstrings and to add information about specific fields, such as
+ parameters and instance variables. Epydoc also understands docstrings written
+ in ReStructuredText, Javadoc, and plaintext.
+ .
+ This package contains the epydoc and epydocgui commands, their manpages, and
+ their associated Python modules.
+ .
+ Epydoc supports two output formatters: HTML and LaTeX. You must install the
+ suggested dependencies in order to generate documentation in DVI, PostScript,
+ or PDF format using the LaTeX formatter.
+
+Package: epydoc-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}
+Recommends: chromium | www-browser
+Description: tool for documenting Python modules (documentation)
+ Epydoc is a tool for generating API documentation for Python modules based on
+ their docstrings. A lightweight markup language called epytext can be used to
+ format docstrings and to add information about specific fields, such as
+ parameters and instance variables. Epydoc also understands docstrings written
+ in ReStructuredText, Javadoc, and plaintext.
+ .
+ This package contains the API reference and usage information for Epydoc, all
+ available through the Debian documentation system (dhelp, dwww, doc-central,
+ etc.) in the Devel section.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..bbcbfbe
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,47 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: epydoc
+Upstream-Contact: Edward Loper <edloper at gradient.cis.upenn.edu>
+Source: http://epydoc.sourceforge.net/
+
+Files: *
+Copyright: 2002, 2005 Edward Loper
+License: Expat
+
+Files: epydoc/docwriter/xlink.py scripts/apirst2html.py
+Copyright: 2007 Daniele Varrazzo
+License: Expat
+
+Files: doc/custom.css doc/docutils.css
+Copyright: Public Domain
+License: public-domain
+ This stylesheet has been placed in the public domain.
+
+Files: debian/*
+Copyright: 2002 Moshe Zadka <moshez at debian.org>
+ 2003-2015 Kenneth J. Pronovici <pronovic at debian.org>
+License: public-domain
+ Copying and distribution of these files, with or without modification, is
+ permitted in any medium without royalty provided the copyright notice and
+ this notice are preserved.
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and any 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.
+
diff --git a/debian/epydoc-doc.doc-base b/debian/epydoc-doc.doc-base
new file mode 100644
index 0000000..6fe0c54
--- /dev/null
+++ b/debian/epydoc-doc.doc-base
@@ -0,0 +1,10 @@
+Document: epydoc
+Title: Epydoc User's Manual
+Author: Edward Loper
+Abstract: Epydoc User's Manual
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/epydoc-doc/doc/index.html
+Files: /usr/share/doc/epydoc-doc/doc/*
+
diff --git a/debian/epydoc-doc.docs b/debian/epydoc-doc.docs
new file mode 100644
index 0000000..cd62481
--- /dev/null
+++ b/debian/epydoc-doc.docs
@@ -0,0 +1,2 @@
+README.txt
+doc
diff --git a/debian/patches/build-time.patch b/debian/patches/build-time.patch
new file mode 100644
index 0000000..0f1bf44
--- /dev/null
+++ b/debian/patches/build-time.patch
@@ -0,0 +1,100 @@
+Description: Add --no-include-build-time option to allow reproducible builds.
+Author: Jelmer Vernooij <jelmer at debian.org>, Kenneth J. Pronovici <pronovic at debian.org>
+Bug: https://sourceforge.net/p/epydoc/bugs/367/
+Bug-Debian: https://bugs.debian.org/783326
+Forwarded: https://sourceforge.net/p/epydoc/bugs/367/
+Last-Update: 2015-04-25
+
+Index: epydoc-3.0.1+dfsg/epydoc/cli.py
+===================================================================
+--- epydoc-3.0.1+dfsg.orig/epydoc/cli.py
++++ epydoc-3.0.1+dfsg/epydoc/cli.py
+@@ -137,7 +137,7 @@ OPTION_DEFAULTS = dict(
+ include_source_code=True, pstat_files=[], simple_term=False, fail_on=None,
+ exclude=[], exclude_parse=[], exclude_introspect=[],
+ external_api=[], external_api_file=[], external_api_root=[],
+- redundant_details=False, src_code_tab_width=8)
++ redundant_details=False, src_code_tab_width=8, include_build_time=True)
+
+ def parse_arguments():
+ # Construct the option parser.
+@@ -286,6 +286,10 @@ def parse_arguments():
+ action='store_true', dest='include_log',
+ help=("Include a page with the process log (epydoc-log.html)"))
+
++ generation_group.add_option('--no-include-build-time',
++ action='store_false', dest='include_build_time',
++ help=("Do not print the build time in the page footer, useful for reproducible builds."))
++
+ generation_group.add_option(
+ '--redundant-details',
+ action='store_true', dest='redundant_details',
+@@ -558,6 +562,8 @@ def parse_configfiles(configfiles, optio
+ options.include_source_code = _str_to_bool(val, optname)
+ elif optname in ('include-log', 'include_log'):
+ options.include_log = _str_to_bool(val, optname)
++ elif optname in ('include-build-time', 'include_build_time'):
++ options.include_build_time = _str_to_bool(val, optname)
+ elif optname in ('redundant-details', 'redundant_details'):
+ options.redundant_details = _str_to_bool(val, optname)
+
+Index: epydoc-3.0.1+dfsg/epydoc/docwriter/html.py
+===================================================================
+--- epydoc-3.0.1+dfsg.orig/epydoc/docwriter/html.py
++++ epydoc-3.0.1+dfsg/epydoc/docwriter/html.py
+@@ -291,6 +291,9 @@ class HTMLWriter:
+ @type include_log: C{boolean}
+ @keyword include_log: If true, the the footer will include an
+ href to the page 'epydoc-log.html'.
++ @type include_build_time: C{boolean}
++ @keyword include_build_time: If true, the the footer will
++ include the build time.
+ @type src_code_tab_width: C{int}
+ @keyword src_code_tab_width: Number of spaces to replace each tab
+ with in source code listings.
+@@ -358,6 +361,9 @@ class HTMLWriter:
+ self._include_log = kwargs.get('include_log', False)
+ """Are we generating an HTML log page?"""
+
++ self._include_build_time = kwargs.get('include_build_time', True)
++ """Are we including a build time?"""
++
+ self._src_code_tab_width = kwargs.get('src_code_tab_width', 8)
+ """Number of spaces to replace each tab with in source code
+ listings."""
+@@ -1770,10 +1776,14 @@ class HTMLWriter:
+ <tr>
+ <td align="left" class="footer">
+ >>> if self._include_log:
+- <a href="epydoc-log.html">Generated by Epydoc
+- $epydoc.__version__$ on $time.asctime()$</a>
+- >>> else:
+- Generated by Epydoc $epydoc.__version__$ on $time.asctime()$
++ <a href="epydoc-log.html">
++ >>> #endif
++ Generated by Epydoc $epydoc.__version__$
++ >>> if self._include_build_time:
++ on $time.asctime()$
++ >>> #endif
++ >>> if self._include_log:
++ </a>
+ >>> #endif
+ </td>
+ <td align="right" class="footer">
+Index: epydoc-3.0.1+dfsg/man/epydoc.1
+===================================================================
+--- epydoc-3.0.1+dfsg.orig/man/epydoc.1
++++ epydoc-3.0.1+dfsg/man/epydoc.1
+@@ -226,6 +226,12 @@ Generate an HTML page
+ .B epydoc\-log.html
+ containing all error and warning messages that are generated by
+ epydoc, and include it in the generated output.
++.TP
++.B \-\-no\-include\-build\-time
++Do not print the build time in the page footer. This is useful if
++you are trying to generate reproducible builds, where each build
++against a given version of a source tree produces exactly the
++same artifacts.
+ .RE
+ .PP
+ .\"--------------------------------------------------
diff --git a/debian/patches/handle-docutils-0.6.patch b/debian/patches/handle-docutils-0.6.patch
new file mode 100644
index 0000000..53f941c
--- /dev/null
+++ b/debian/patches/handle-docutils-0.6.patch
@@ -0,0 +1,47 @@
+# Description: Handle problems encountered with docutils 0.6.
+# The problem here is that the child.data element does not always exist any
+# more. Apparently, the child element is sometimes a string instead. So, we
+# work around it by only executing the code in question if child.data can be
+# referenced. Thanks to Thomas Hille for research and the initial patch.
+# Bug-Debian: http://bugs.debian.org/561793
+# Author: Kenneth J. Pronovici <pronovic at debian.org>
+--- a/epydoc/markup/restructuredtext.py
++++ b/epydoc/markup/restructuredtext.py
+@@ -304,13 +304,14 @@ class _SummaryExtractor(NodeVisitor):
+ # Extract the first sentence.
+ for child in node:
+ if isinstance(child, docutils.nodes.Text):
+- m = self._SUMMARY_RE.match(child.data)
+- if m:
+- summary_pieces.append(docutils.nodes.Text(m.group(1)))
+- other = child.data[m.end():]
+- if other and not other.isspace():
+- self.other_docs = True
+- break
++ if hasattr(child, 'data'):
++ m = self._SUMMARY_RE.match(child.data)
++ if m:
++ summary_pieces.append(docutils.nodes.Text(m.group(1)))
++ other = child.data[m.end():]
++ if other and not other.isspace():
++ self.other_docs = True
++ break
+ summary_pieces.append(child)
+
+ summary_doc = self.document.copy() # shallow copy
+@@ -489,10 +490,11 @@ class _SplitFieldsTranslator(NodeVisitor
+ if (len(fbody[0]) > 0 and
+ isinstance(fbody[0][0], docutils.nodes.Text)):
+ child = fbody[0][0]
+- if child.data[:1] in ':-':
+- child.data = child.data[1:].lstrip()
+- elif child.data[:2] in (' -', ' :'):
+- child.data = child.data[2:].lstrip()
++ if hasattr(child, 'data'):
++ if child.data[:1] in ':-':
++ child.data = child.data[1:].lstrip()
++ elif child.data[:2] in (' -', ' :'):
++ child.data = child.data[2:].lstrip()
+
+ # Wrap the field body, and add a new field
+ self._add_field(tagname, arg, fbody)
diff --git a/debian/patches/lintian.patch b/debian/patches/lintian.patch
new file mode 100644
index 0000000..bb7eabd
--- /dev/null
+++ b/debian/patches/lintian.patch
@@ -0,0 +1,20 @@
+# Description: Remove SourceForge logo and replace with "SourceForge".
+# This fixes Lintian warning "privacy-breach-logo". The IMG URL is considerd
+# a privacy breach by Debian because it associates a user's browser info with
+# use of the package.
+# Author: Kenneth J. Pronovici <pronovic at debian.org>
+--- a/doc/index.html
++++ b/doc/index.html
+@@ -170,10 +170,8 @@
+ Epytext</a></td></a>
+ <td align="center" width="20%" class="nav">
+
+- <A href="http://sourceforge.net/projects/epydoc">
+- <IMG src="http://sourceforge.net/sflogo.php?group_id=32455&type=1"
+- width="88" height="26" border="0" alt="SourceForge"
+- align="top"/></A></td>
++ <A href="http://sourceforge.net/projects/epydoc">SourceForge</A>
++ </td>
+ </tr>
+ </table>
+
diff --git a/debian/patches/manpages.patch b/debian/patches/manpages.patch
new file mode 100644
index 0000000..7455969
--- /dev/null
+++ b/debian/patches/manpages.patch
@@ -0,0 +1,214 @@
+# Description: Make minor tweaks to manpage syntax.
+# Author: Kenneth J. Pronovici <pronovic at debian.org>
+# Forwarded: https://sourceforge.net/tracker/?func=detail&aid=3027938&group_id=32455&atid=405620
+--- a/man/epydoc.1
++++ b/man/epydoc.1
+@@ -83,7 +83,7 @@
+ Directory names specify packages, and are expanded to include
+ all sub-modules and sub-packages. If you wish to exclude
+ certain sub-modules or sub-packages, use the
+-.B --exclude
++.B \-\-exclude
+ option (described below).
+ .\" --config
+ .TP
+@@ -164,7 +164,7 @@
+ because importing it would cause undesired side-effects.
+ .\" --introspect-only
+ .TP
+-.BI "\-\-introspect-only"
++.BI "\-\-introspect\-only"
+ Gather all information about the documented objects by introspection;
+ in particular, do
+ .I not
+@@ -176,12 +176,12 @@
+ expression pattern.
+ .\" --exclude-introspect=PATTERN
+ .TP
+-.BI "\-\-exclude-introspect " PATTERN
++.BI "\-\-exclude\-introspect " PATTERN
+ Do not use introspection to gather information about any object whose
+ name matches the given regular expression.
+ .\" --exclude-parse=PATTERN
+ .TP
+-.BI "\-\-exclude-parse " PATTERN
++.BI "\-\-exclude\-parse " PATTERN
+ Do not use Python source code parsing to gather information about any
+ object whose name matches the given regular expression.
+ .\" --inheritance
+@@ -277,12 +277,12 @@
+ .BI "\-\-help\-file " file
+ An alternate help file.
+ .B file
+-should contain the body of an HTML file -- navigation bars will be
++should contain the body of an HTML file \-\- navigation bars will be
+ added to it.
+ .\" --show-frames, --no-frames
+ .TP
+ .B \-\-show\-frames, \-\-no\-frames
+-These options control whether HMTL output will include a frames-base
++These options control whether HMTL output will include a frames-based
+ table of contents page. By default, the frames-based table of
+ contents is included.
+ .\" --separate-classes
+@@ -319,16 +319,16 @@
+ executable.
+ .\"--graph-font
+ .TP
+-.BI "--graph-font " font
++.BI "\-\-graph\-font " font
+ The name of the font used to generate Graphviz graphs. (e.g.,
+ helvetica or times).
+ .\"--graph-font-size
+ .TP
+-.BI "--graph-font-size " size
++.BI "\-\-graph\-font\-size " size
+ The size of the font used to generate Graphviz graphs, in points.
+ .\"--pstat
+ .TP
+-.BI "--pstat " file
++.BI "\-\-pstat " file
+ A pstat output file, to be used in generating call graphs.
+ .RE
+ .PP
+@@ -394,10 +394,10 @@
+ .IR module .
+ This page includes links back to the API documentation pages.
+ .TP
+-.B module-tree.html
++.B module\-tree.html
+ The module hierarchy.
+ .TP
+-.B class-tree.html
++.B class\-tree.html
+ The class hierarchy. This page is only generated if at least one
+ class is documented.
+ .PP
+@@ -405,19 +405,19 @@
+ .B INDICES
+ .RS 4
+ .TP
+-.B identifier-index.html
++.B identifier\-index.html
+ An index of all documented identifiers. If the identifier index
+ contains more than 3,000 entries, then it will be split into separate
+ pages for each letter, named
+-.BR identifier-index-a.html ,
+-.BR identifier-index-b.html ", etc."
++.BR identifier\-index\-a.html ,
++.BR identifier\-index\-b.html ", etc."
+ .TP
+-.B term-index.html
++.B term\-index.html
+ An index of all explicitly marked definitional terms. This page is
+ only generated if at least one definition term is marked in a
+ formatted docstring.
+ .TP
+-.B bug-index.html
++.B bug\-index.html
+ An index of all explicitly marked
+ .B @bug
+ fields. This page is only
+@@ -425,7 +425,7 @@
+ .B @bug
+ field is listed in a formatted docstring.
+ .TP
+-.B todo-index.html
++.B todo\-index.html
+ An index of all explicitly marked
+ .B @todo
+ fields. This page is only
+@@ -433,7 +433,7 @@
+ .B @todo
+ field is listed in a formatted docstring.
+ .TP
+-.B changed-index.html
++.B changed\-index.html
+ An index of all explicitly marked
+ .B @changed
+ fields. This page is only
+@@ -441,7 +441,7 @@
+ .B @changed
+ field is listed in a formatted docstring.
+ .TP
+-.B deprecated-index.html
++.B deprecated\-index.html
+ An index of all explicitly marked
+ .B @deprecated
+ fields. This page is only
+@@ -449,7 +449,7 @@
+ .B @deprecated
+ field is listed in a formatted docstring.
+ .TP
+-.B since-index.html
++.B since\-index.html
+ An index of all explicitly marked
+ .B @since
+ fields. This page is only
+@@ -509,7 +509,7 @@
+ loading the page
+ .B <redirect.html#epydoc.apidoc.DottedName>
+ will automatically redirect the browser to
+-.BR <epydoc.apidoc-module.html#DottedName> .
++.BR <epydoc.apidoc\-module.html#DottedName> .
+ .TP
+ .B epydoc.css
+ The CSS stylesheet used to display all HTML pages.
+@@ -556,14 +556,14 @@
+ .B \-\-pdf
+ option.
+ .TP
+-.IB module -module.tex
++.IB module \-module.tex
+ The API documentation for a module.
+ .I module
+ is the complete dotted name of the module, such as
+ .B sys or
+ .BR epydoc.epytext .
+ .TP
+-.IB class -class.tex
++.IB class \-class.tex
+ The API documentation for a class, exception, or type.
+ .I class
+ is the complete dotted name of the class, such as
+@@ -651,7 +651,7 @@
+ .B Wrong underline character for heading.
+ The underline character used for this section heading does not
+ indicate an appopriate section level. The "=" character should be
+-used to underline sections; "-" for subsections; and "~" for
++used to underline sections; "\-" for subsections; and "~" for
+ subsubsections.
+ .TP
+ .B Possible mal-formatted field item.
+--- a/man/epydocgui.1
++++ b/man/epydocgui.1
+@@ -77,7 +77,7 @@
+ .B index.html
+ will redirect the user to the project's top page.
+ .TP
+-.BI m- module .html
++.BI m\-module.html
+ The API documentation for a module.
+ .I module
+ is the complete dotted name of the module, such as
+@@ -85,9 +85,9 @@
+ or
+ .BR epydoc.epytext .
+ .TP
+-.BI c- class .html
++.BI c\-class.html
+ The API documentation for a class, exception, or type.
+-.I class
++.I "c"
+ is the complete dotted name of the class, such as
+ .B epydoc.epytext.Token
+ or
+@@ -269,7 +269,7 @@
+ .B Wrong underline character for heading.
+ The underline character used for this section heading does not
+ indicate an appopriate section level. The "=" character should be
+-used to underline sections; "-" for subsections; and "~" for
++used to underline sections; "\-" for subsections; and "~" for
+ subsubsections.
+ .RE
+ .PP
diff --git a/debian/patches/mention-debian.patch b/debian/patches/mention-debian.patch
new file mode 100644
index 0000000..e511b58
--- /dev/null
+++ b/debian/patches/mention-debian.patch
@@ -0,0 +1,12 @@
+# Description: Mention Debian contributions in the manpage.
+# Author: Kenneth J. Pronovici <pronovic at debian.org>
+--- a/man/epydocgui.1
++++ b/man/epydocgui.1
+@@ -406,6 +406,7 @@
+ .SH AUTHOR
+ Epydoc was written by Edward Loper. This man page was originally
+ written by Moshe Zadka, and is currently maintained by Edward Loper.
++Debian-specific modifications were made by Kenneth J. Pronovici.
+ .\" ================== BUGS ====================
+ .SH BUGS
+ Report bugs to <edloper at gradient.cis.upenn.edu>.
diff --git a/debian/patches/python26-tokenizer.patch b/debian/patches/python26-tokenizer.patch
new file mode 100644
index 0000000..c4956ad
--- /dev/null
+++ b/debian/patches/python26-tokenizer.patch
@@ -0,0 +1,65 @@
+# Description: Fix the tokenizer so comment docstrings work with Python 2.6.
+# Bug: https://sourceforge.net/tracker/index.php?func=detail&aid=2585292&group_id=32455&atid=405618
+# Bug-Debian: http://bugs.debian.org/590112
+# Origin: https://sourceforge.net/tracker/?func=detail&aid=2872545&group_id=32455&atid=405620
+# Author: Andre Malo (ndparker)
+# Reviewed-by: Kenneth J. Pronovici <pronovic at debian.org>
+--- a/epydoc/docparser.py
++++ b/epydoc/docparser.py
+@@ -72,6 +72,26 @@
+ from epydoc.compat import *
+
+ ######################################################################
++## Tokenizer change in 2.6
++######################################################################
++
++def comment_includes_nl():
++ """ Determine whether comments are parsed as one or two tokens... """
++ readline = iter(u'\n#\n\n'.splitlines(True)).next
++ tokens = [
++ token.tok_name[tup[0]] for tup in tokenize.generate_tokens(readline)
++ ]
++ if tokens == ['NL', 'COMMENT', 'NL', 'ENDMARKER']:
++ return True
++ elif tokens == ['NL', 'COMMENT', 'NL', 'NL', 'ENDMARKER']:
++ return False
++ raise AssertionError(
++ "Tokenizer returns unexexpected tokens: %r" % tokens
++ )
++
++comment_includes_nl = comment_includes_nl()
++
++######################################################################
+ ## Doc Parser
+ ######################################################################
+
+@@ -520,6 +540,10 @@
+ # inside that block, not outside it.
+ start_group = None
+
++ # If the comment tokens do not include the NL, every comment token
++ # sets this to True in order to swallow the next NL token unprocessed.
++ comment_nl_waiting = False
++
+ # Check if the source file declares an encoding.
+ encoding = get_module_encoding(module_doc.filename)
+
+@@ -570,7 +594,9 @@
+ # then discard them: blank lines are not allowed between a
+ # comment block and the thing it describes.
+ elif toktype == tokenize.NL:
+- if comments and not line_toks:
++ if comment_nl_waiting:
++ comment_nl_waiting = False
++ elif comments and not line_toks:
+ log.warning('Ignoring docstring comment block followed by '
+ 'a blank line in %r on line %r' %
+ (module_doc.filename, srow-1))
+@@ -578,6 +604,7 @@
+
+ # Comment token: add to comments if appropriate.
+ elif toktype == tokenize.COMMENT:
++ comment_nl_waiting = not comment_includes_nl
+ if toktext.startswith(COMMENT_DOCSTRING_MARKER):
+ comment_line = toktext[len(COMMENT_DOCSTRING_MARKER):].rstrip()
+ if comment_line.startswith(" "):
diff --git a/debian/patches/remove-shebang.patch b/debian/patches/remove-shebang.patch
new file mode 100644
index 0000000..82299d8
--- /dev/null
+++ b/debian/patches/remove-shebang.patch
@@ -0,0 +1,10 @@
+# Description: Remove shebang (#!) from .py files to comply with policy.
+# Author: Kenneth J. Pronovici <pronovic at debian.org>
+--- a/epydoc/gui.py
++++ b/epydoc/gui.py
+@@ -1,5 +1,3 @@
+-#!/usr/bin/env python
+-#
+ # objdoc: epydoc command-line interface
+ # Edward Loper
+ #
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..569c18b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,9 @@
+manpages.patch
+mention-debian.patch
+remove-shebang.patch
+string-exceptions.patch
+handle-docutils-0.6.patch
+python26-tokenizer.patch
+special-latex-entries.patch
+lintian.patch
+build-time.patch
diff --git a/debian/patches/special-latex-entries.patch b/debian/patches/special-latex-entries.patch
new file mode 100644
index 0000000..e1347d3
--- /dev/null
+++ b/debian/patches/special-latex-entries.patch
@@ -0,0 +1,21 @@
+# Description: Do a better job of handling latex special entities.
+# Mike's original problem was handling special << >> quote characters, i.e.
+# from a French keyboard. He solved this problem by adding the fontenc
+# package. In testing, I found that this change caused a HUGE slowdown for
+# PostScript and PDF output, i.e. on the order of several minutes for dvips
+# to render the result. After digging around on Google, I added the lmodern
+# package and that seems to have solved the problems I observed.
+# Bug-Debian: http://bugs.debian.org/614570
+# Author: Kenneth J. Pronovici <pronovic at debian.org>
+# Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
+--- a/epydoc/docwriter/latex.py
++++ b/epydoc/docwriter/latex.py
+@@ -29,6 +29,8 @@
+ "\\documentclass{article}",
+ "\\usepackage{alltt, parskip, fancyhdr, boxedminipage}",
+ "\\usepackage{makeidx, multirow, longtable, tocbibind, amssymb}",
++ "\\usepackage[T1]{fontenc}",
++ "\\usepackage{lmodern}",
+ "\\usepackage{fullpage}",
+ "\\usepackage[usenames]{color}",
+ # Fix the heading position -- without this, the headings generated
diff --git a/debian/patches/string-exceptions.patch b/debian/patches/string-exceptions.patch
new file mode 100644
index 0000000..eca9793
--- /dev/null
+++ b/debian/patches/string-exceptions.patch
@@ -0,0 +1,18 @@
+# Description: Get rid of string exceptions.
+# One of the changes brought by Python 2.6 is the removal of string
+# exceptions. A mass bug filing identified Epydoc as having potential
+# problems. I later spot-checked all of the exceptions in the code, and I
+# believe this is the only one that we have to worry about.
+# Bug-Debian: http://bugs.debian.org/585290
+# Author: Kenneth J. Pronovici <pronovic at debian.org>
+--- a/epydoc/apidoc.py
++++ b/epydoc/apidoc.py
+@@ -1352,7 +1352,7 @@ class ClassDoc(NamespaceDoc):
+ nothead=[s for s in nonemptyseqs if cand in s[1:]]
+ if nothead: cand=None #reject candidate
+ else: break
+- if not cand: raise "Inconsistent hierarchy"
++ if not cand: raise TypeError("Inconsistent hierarchy")
+ res.append(cand)
+ for seq in nonemptyseqs: # remove cand
+ if seq[0] == cand: del seq[0]
diff --git a/debian/python-epydoc.dirs b/debian/python-epydoc.dirs
new file mode 100644
index 0000000..8d581de
--- /dev/null
+++ b/debian/python-epydoc.dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/share/pyshared
diff --git a/debian/python-epydoc.docs b/debian/python-epydoc.docs
new file mode 100644
index 0000000..71dfd5b
--- /dev/null
+++ b/debian/python-epydoc.docs
@@ -0,0 +1 @@
+README.txt
diff --git a/debian/python-epydoc.install b/debian/python-epydoc.install
new file mode 100644
index 0000000..1b437f3
--- /dev/null
+++ b/debian/python-epydoc.install
@@ -0,0 +1,3 @@
+lib/epydoc/* usr/share/pyshared
+bin/epydoc usr/bin
+bin/epydocgui usr/bin
diff --git a/debian/python-epydoc.manpages b/debian/python-epydoc.manpages
new file mode 100644
index 0000000..790a1c5
--- /dev/null
+++ b/debian/python-epydoc.manpages
@@ -0,0 +1,2 @@
+man/epydoc.1
+man/epydocgui.1
diff --git a/debian/python-epydoc.preinst b/debian/python-epydoc.preinst
new file mode 100644
index 0000000..1529d73
--- /dev/null
+++ b/debian/python-epydoc.preinst
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+set -e
+
+# Remove old files left behind by previous versions of package
+rm -f /usr/lib/site-python/epydoc/*.pyc
+rm -f /usr/lib/site-python/epydoc/markup/*.pyc
+rm -f /usr/lib/site-python/epydoc/test/*.pyc
+rm -f /usr/lib/site-python/epydoc/*.pyo
+rm -f /usr/lib/site-python/epydoc/markup/*.pyo
+rm -f /usr/lib/site-python/epydoc/test/*.pyo
+
+#DEBHELPER#
+
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..bc6970a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+
+# Set to enable verbose output from debhelper
+#export DH_VERBOSE=1
+
+%:
+ dh $@ --with python2 --buildsystem=python_distutils
+
+override_dh_install:
+ dh_install -Xapirst2html.py --fail-missing
+
+override_dh_compress:
+ dh_compress -X.py
+
+override_dh_auto_install:
+ dh_auto_install -- --install-purelib lib/epydoc --install-scripts bin
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..b1e780f
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+# This watch file uses the qa.debian.org redirector so that SourceForge URLs work
+version=3
+opts=dversionmangle=s/\+dfsg// \
+http://sf.net/epydoc/epydoc-(.*)\.tar\.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/epydoc.git
More information about the Reproducible-commits
mailing list