Commit eff67d59 authored by Andreas Tille's avatar Andreas Tille
Browse files

Version 0.1.4 should work with sphinx 1.7

parent b999174f
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
sphinxcontrib-autoprogram (0.1.4-1) UNRELEASED; urgency=medium

  * New upstream version
    Closes: #895849
  * cme fix dpkg-control
  * debhelper 11
  * d/watch: Use https://pypi.debian.net
  * add upstream patch fo work with Sphinx 1.7
    Closes: #895849
  * Standards-Version: 4.1.4
  * Point Vcs fields to salsa.debian.org
  * Testsuite: autopkgtest-pkg-python

 -- Andreas Tille <tille@debian.org>  Mon, 26 Mar 2018 19:06:47 +0200
 -- Andreas Tille <tille@debian.org>  Tue, 17 Apr 2018 11:06:56 +0200

sphinxcontrib-autoprogram (0.1.2-2) UNRELEASED; urgency=medium

debian/patches/series

deleted100644 → 0
+0 −1
Original line number Diff line number Diff line
sphinx_1.7.patch

debian/patches/sphinx_1.7.patch

deleted100644 → 0
+0 −27
Original line number Diff line number Diff line
From: Zach Riggle <zachriggle@users.noreply.github.com>
Date: Tue, 20 Feb 2018 12:41:42 -0600
Subject: [PATCH] Make autoprogram work with Sphinx 1.7
Bug-Debian: https://bugs.debian.org/895849
Origin: https://github.com/sphinx-contrib/autoprogram/pull/2/commits/9b807e77a52fa242e14844fc4accf883a67cef9e

`sphinx.util.compat` was removed from Sphinx 1.7
---
 sphinxcontrib/autoprogram.py | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

--- a/sphinxcontrib/autoprogram.py
+++ b/sphinxcontrib/autoprogram.py
@@ -25,6 +25,13 @@ from six.moves import builtins, reduce
 from sphinx.domains import std
 from sphinx.util.nodes import nested_parse_with_titles
 
+try:
+    # sphinx.util.compat.Directive class is now deprecated.
+    # Please use instead docutils.parsers.rst.Directive
+    from sphinx.util.compat import Directive
+except ImportError:
+    from docutils.parsers.rst import Directive
+
 __all__ = ('AutoprogramDirective',
            'AutoprogramDirectiveTestCase', 'ScannerTestCase',
            'import_object', 'scan_programs', 'setup', 'suite')