[Python-modules-commits] [sphinx-issuetracker] 01/01: Add a patch to set refdomain for all refnodes.

Dmitry Shachnev mitya57 at moszumanska.debian.org
Tue Oct 3 16:07:04 UTC 2017


This is an automated email from the git hooks/post-receive script.

mitya57 pushed a commit to branch debian/master
in repository sphinx-issuetracker.

commit e5b2d8f011a9d41ff01cda811dd0f682ddf9b66e
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date:   Tue Oct 3 22:46:58 2017 +0700

    Add a patch to set refdomain for all refnodes.
    
    Closes: #876932.
---
 debian/changelog                   |  6 ++++++
 debian/patches/series              |  1 +
 debian/patches/set_refdomain.patch | 35 +++++++++++++++++++++++++++++++++++
 3 files changed, 42 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 37e02db..261f14a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+sphinx-issuetracker (0.11-2) UNRELEASED; urgency=medium
+
+  * Add a patch to set refdomain for all refnodes (closes: #876932).
+
+ -- Dmitry Shachnev <mitya57 at debian.org>  Tue, 03 Oct 2017 22:46:22 +0700
+
 sphinx-issuetracker (0.11-1) unstable; urgency=low
 
   * Team upload.
diff --git a/debian/patches/series b/debian/patches/series
index bd60d2b..6515b95 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ disable_issuetracker.patch
 handle_missing_packages.patch
 do_not_build_license.patch
 move_css.patch
+set_refdomain.patch
diff --git a/debian/patches/set_refdomain.patch b/debian/patches/set_refdomain.patch
new file mode 100644
index 0000000..de4fb7b
--- /dev/null
+++ b/debian/patches/set_refdomain.patch
@@ -0,0 +1,35 @@
+From: Dmitry Shachnev <mitya57 at debian.org>
+Date: Tue, 3 Oct 2017 22:28:04 +0700
+Subject: Set refdomain for refnodes to fix build with Sphinx 1.6.3
+
+Otherwise the documentation build fails with:
+
+Traceback (most recent call last):
+  [...]
+  File "/usr/lib/python2.7/dist-packages/sphinx/environment/__init__.py", line 730, in read_doc
+    domain.process_doc(self, docname, doctree)
+  File "/usr/lib/python2.7/dist-packages/sphinx/domains/std.py", line 576, in process_doc
+    self.note_citation_refs(env, docname, document)
+  File "/usr/lib/python2.7/dist-packages/sphinx/domains/std.py", line 593, in note_citation_refs
+    if node['refdomain'] == 'std' and node['reftype'] == 'citation':
+  File "/usr/lib/python2.7/dist-packages/docutils/nodes.py", line 567, in __getitem__
+    return self.attributes[key]
+KeyError: 'refdomain'
+
+Forwarded: https://github.com/ignatenkobrain/sphinxcontrib-issuetracker/pull/13
+---
+ sphinxcontrib/issuetracker/__init__.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/sphinxcontrib/issuetracker/__init__.py b/sphinxcontrib/issuetracker/__init__.py
+index 55cceba..80c4e0d 100644
+--- a/sphinxcontrib/issuetracker/__init__.py
++++ b/sphinxcontrib/issuetracker/__init__.py
+@@ -158,6 +158,7 @@ class IssueReferences(Transform):
+                 issue_id = match.group(1)
+                 # turn the issue reference into a reference node
+                 refnode = pending_xref()
++                refnode['refdomain'] = None
+                 refnode['reftarget'] = issue_id
+                 refnode['reftype'] = 'issue'
+                 refnode['trackerconfig'] = tracker_config

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/sphinx-issuetracker.git



More information about the Python-modules-commits mailing list