debian/0000755000000000000000000000000011626532372007175 5ustar debian/compat0000644000000000000000000000000211533201036010356 0ustar 7 debian/control0000644000000000000000000000347411626446245010613 0ustar Source: sphinx-issuetracker Section: python Priority: optional Maintainer: Debian Python Modules Team Uploaders: Fladischer Michael Build-Depends: debhelper (>= 7.0.50~), python-all (>= 2.6), python-doc, python-mock (>= 0.7.0), python-py, python-setuptools, python-sphinx (>= 1.0.7+dfsg-1~), python-support XS-Python-Version: >= 2.6 Standards-Version: 3.9.2 Homepage: http://packages.python.org/sphinxcontrib-issuetracker Vcs-Svn: svn://svn.debian.org/python-modules/packages/sphinx-issuetracker/trunk/ Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/sphinx-issuetracker/trunk/ Package: python-sphinxcontrib.issuetracker Architecture: all Depends: python-sphinx (>= 1.0.7), ${misc:Depends}, ${python:Depends}, ${sphinxdoc:Depends} Recommends: python-debianbts, python-launchpadlib Replaces: python-sphinx-issuetracker (<< 0.8) Breaks: python-sphinx-issuetracker (<< 0.8) Description: Sphinx integration with different issue trackers This extension for Sphinx 1.0 parses textual issue references like #10, looks up the issue in the configured issue tracker, and includes a link to the issue. . Currently the following issue trackers are supported: * GitHub * BitBucket * Launchpad * Google Code * Debian BTS * JIRA . Furthermore this extension provides a simple API to add other issue trackers. Package: python-sphinx-issuetracker Depends: python-sphinxcontrib.issuetracker, ${misc:Depends} Architecture: all Priority: extra Section: oldlibs Description: Sphinx integration with different issue trackers (transitional package) This is a dummy package to aid switching to python-sphinxcontrib.issuetracker. debian/patches/0000755000000000000000000000000011626532372010624 5ustar debian/patches/do_not_build_license.patch0000644000000000000000000000144111625522626016010 0ustar Description: Remove license.txt from TOC. For Debian the license is shipped in the copyright file. It is not necessary to ship it again as part of the HTML documentation. This patch removes the license file from the TOC. Author: Fladischer Michael Last-Update: 2011-08-25 Forwarded: not-needed --- a/doc/index.rst +++ b/doc/index.rst @@ -7,8 +7,7 @@ A Sphinx_ extension to turn textual issue ids like ``#10`` into real references to these issues in an issue tracker. -The extension is available under the terms of the BSD license, see -:doc:`license` for more information. +The extension is available under the terms of the BSD license. Installation @@ -206,7 +205,6 @@ :hidden: changes.rst - license.rst .. _Sphinx: http://sphinx.pocoo.org/ debian/patches/move_css.patch0000644000000000000000000000165011626512202013453 0ustar Description: Move CSS file out of python path. This patch separates Python code from CSS by moving the issuetracker.css file to an other path: /usr/share/sphinx/contrib/issuetracker/ Author: Fladischer Michael Last-Update: 2011-08-28 Forwarded: not-needed --- a/sphinxcontrib/issuetracker.py +++ b/sphinxcontrib/issuetracker.py @@ -405,9 +405,13 @@ return app.info(bold('Copying issuetracker stylesheet... '), nonl=True) dest = path.join(app.builder.outdir, '_static', 'issuetracker.css') - source = path.join(path.abspath(path.dirname(__file__)), + source = '/usr/share/sphinx/contrib/issuetracker/issuetracker.css' + try: + copyfile(source, dest) + except IOError: + source = path.join(path.abspath(path.dirname(__file__)), 'issuetracker.css') - copyfile(source, dest) + copyfile(source, dest) app.info('done') debian/patches/series0000644000000000000000000000017511626514376012050 0ustar intersphinx_mapping.patch disable_issuetracker.patch handle_missing_packages.patch do_not_build_license.patch move_css.patch debian/patches/intersphinx_mapping.patch0000644000000000000000000000277511625734275015753 0ustar Description: Use local object inventory files for sphinx Use the local object inventory files to prevent sphinx-build from downloading them during build. This patch makes the intersphinx mappings depend on the existence of these files, thus passing Debian Policy 12.3 while still maintaining a level of comfort for the reader of the documentation. Author: Fladischer Michael Forwarded: not-needed Last-Update: 2011-03-03 --- a/doc/conf.py +++ b/doc/conf.py @@ -54,8 +54,21 @@ html_theme = 'default' html_static_path = [] -intersphinx_mapping = {'python': ('http://docs.python.org/', None), - 'sphinx': ('http://sphinx.pocoo.org/', None)} +def check_object_path(key, url, path): + if os.path.isfile(path): + return {key: (url, path)} + return {} + +intersphinx_mapping = {} +intersphinx_mapping.update(check_object_path('python', + 'http://docs.python.org/', + '/usr/share/doc/python' + + '.'.join([str(x) for x in sys.version_info[0:2]]) + + '/html/objects.inv')) +intersphinx_mapping.update(check_object_path('sphinx', + 'http://sphinx.pocoo.org/', + '/usr/share/doc/python-sphinx/html/objects.inv')) + issuetracker = 'bitbucket' issuetracker_project = 'birkenfeld/sphinx-contrib' debian/patches/handle_missing_packages.patch0000644000000000000000000000251711625734275016501 0ustar Description: Handle ImportError more gracefully To assist users who do not install the Recommends, enhance the message for ImportError exceptions related to those packages by giving hints on the package names. Author: Fladischer Michael Last-Update: 2011-08-26 Forwarded: not-needed --- a/sphinxcontrib/issuetracker.py +++ b/sphinxcontrib/issuetracker.py @@ -160,7 +160,10 @@ DEBIAN_URL = 'http://bugs.debian.org/cgi-bin/bugreport.cgi?bug={0}' def lookup_debian_issue(app, tracker_config, issue_id): - import debianbts + try: + import debianbts + except ImportError, e: + raise ImportError("%s (install package python-debianbts)" % e) try: # get the bug bug = debianbts.get_status(issue_id)[0] @@ -180,7 +183,10 @@ def lookup_launchpad_issue(app, tracker_config, issue_id): launchpad = getattr(app.env, 'issuetracker_launchpad', None) if not launchpad: - from launchpadlib.launchpad import Launchpad + try: + from launchpadlib.launchpad import Launchpad + except ImportError, e: + raise ImportError("%s (install package python-launchpadlib)" % e) launchpad = Launchpad.login_anonymously( 'sphinxcontrib.issuetracker', service_root='production') app.env.issuetracker_launchpad = launchpad debian/patches/disable_issuetracker.patch0000644000000000000000000000110011626446245016027 0ustar Description: Disable issue tracker integration during build. Disable the issue tracker integration to allow the package to be built without network access. Author: Fladischer Michael Last-Update: 2011-08-26 Forwarded: not-needed --- a/doc/conf.py +++ b/doc/conf.py @@ -70,8 +70,7 @@ '/usr/share/doc/python-sphinx/html/objects.inv')) -issuetracker = 'bitbucket' -issuetracker_project = 'birkenfeld/sphinx-contrib' +issuetracker = None event_sig_re = re.compile(r'([a-zA-Z-]+)\s*\((.*)\)') debian/copyright0000644000000000000000000000317111625734275011137 0ustar Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?view=markup&pathrev=174 Upstream-Name: sphinxcontrib-issuetracker Upstream-Contact: Sebastian Wiesner Source: http://packages.python.org/sphinxcontrib-issuetracker Files: * Copyright: 2010, Sebastian Wiesner License: BSD Files: debian/* Copyright: 2010, Fladischer Michael 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. . 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/watch0000644000000000000000000000017211533201036010211 0ustar version=3 http://pypi.python.org/packages/source/s/sphinxcontrib-issuetracker/sphinxcontrib-issuetracker-([\d\.]+).tar.gz debian/docs0000644000000000000000000000003011625515116010035 0ustar README doc/.build/html/ debian/python-sphinxcontrib.issuetracker.install0000644000000000000000000000011311626512202017462 0ustar usr/ sphinxcontrib/issuetracker.css usr/share/sphinx/contrib/issuetracker/ debian/changelog0000644000000000000000000000245711626512202011045 0ustar sphinx-issuetracker (0.8-1) unstable; urgency=low * New upstream version. * Upload to unstable. * Change binary package name to python-sphinxcontrib.issuetracker. * Fix object.inv location for python-sphinx. * Recommend python-debianbts as patch has been included upstream. * Move python-launchpadlib to Recommends as it is optional. * Add patch to conditionally add intersphinx mappings, depending on the presence of files. * Add patch to disable issue tracker integration during build to prevent network access. * Add patch to gracefully handle exceptions caused by missing packages. * Bump sphinx dependency to (>= 1.0.7+dfsg-1~) * Bumped Standards-Version to 3.9.2 (no change necessary). * Clean up debian/* using wrap-and-sort. * Use dh_sphinxdoc. * Mention JIRA as supported issue tracker. * Add patch to disable inclusion of license text in sphinx build. * Remove python-lxml from Recommends as it is no longer used. * Use consistent wording of 'issue tracker'. * Build documentation in dh_auto_build. -- Fladischer Michael Sun, 28 Aug 2011 18:20:48 +0200 sphinx-issuetracker (0.5.4-1) experimental; urgency=low * Initial release. (Closes: #603136) -- Fladischer Michael Thu, 11 Nov 2010 10:24:45 +0100 debian/source/0000755000000000000000000000000011626532372010475 5ustar debian/source/format0000644000000000000000000000001411533201036011666 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000137211626532266010262 0ustar #!/usr/bin/make -f %: dh $@ --with=sphinxdoc .PHONY: override_dh_auto_build override_dh_auto_build: dh_auto_build rm -f doc/license.rst PYTHONPATH=.:$$PYTHONPATH sphinx-build -b html -d doc/.build/.doctrees -N doc doc/.build/html .PHONY: override_dh_compress override_dh_compress: dh_compress -X .js -X .html -X objects.inv .PHONY: override_dh_auto_test override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) set -e; \ for python in $(shell pyversions -r); do \ $$python setup.py test ; \ done endif .PHONY: override_dh_auto_install override_dh_auto_install: dh_auto_install rm -f debian/tmp/usr/lib/python*/dist-packages/sphinxcontrib/issuetracker.css .PHONY: override_dh_clean override_dh_clean: rm -rf doc/.build dh_clean debian/python-sphinxcontrib.issuetracker.doc-base0000644000000000000000000000045411626251540017506 0ustar Document: python-sphinxcontrib.issuetracker Title: Python Sphinx Issuetracker Documentation Author: Sebastian Wiesner Section: Programming/Python Format: HTML Index: /usr/share/doc/python-sphinxcontrib.issuetracker/html/index.html Files: /usr/share/doc/python-sphinxcontrib.issuetracker/html/*.html