[pywps] 11/16: Add patch to fix sphinx-build failure.

Bas Couwenberg sebastic at debian.org
Mon Aug 22 21:44:55 UTC 2016


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

sebastic pushed a commit to branch experimental
in repository pywps.

commit 81a54adc5e927bd35727eb488a254a8669dc83ba
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Fri Jul 22 18:46:14 2016 +0200

    Add patch to fix sphinx-build failure.
---
 debian/changelog                  |  1 +
 debian/patches/series             |  1 +
 debian/patches/sphinx-build.patch | 28 ++++++++++++++++++++++++++++
 3 files changed, 30 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index d4b4c76..285a332 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,7 @@ pywps (4.0.0~beta1-1) UNRELEASED; urgency=medium
     - Change license to Expat
   * Drop examples, no longer included upstream.
   * Drop CGI package, wps.py removed upstream.
+  * Add patch to fix sphinx-build failure.
 
  -- Bas Couwenberg <sebastic at debian.org>  Fri, 22 Jul 2016 01:11:37 +0200
 
diff --git a/debian/patches/series b/debian/patches/series
index 99c4ae9..9ab6c4a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 offline-tests.patch
+sphinx-build.patch
diff --git a/debian/patches/sphinx-build.patch b/debian/patches/sphinx-build.patch
new file mode 100644
index 0000000..90eced9
--- /dev/null
+++ b/debian/patches/sphinx-build.patch
@@ -0,0 +1,28 @@
+Description: Fix sphinx-build failure.
+ /<buildpath>/docs/api.rst:11: WARNING: autodoc: failed to import class u'Process' from module u'pywps'; the following exception was raised:
+ Traceback (most recent call last):
+   File "/usr/lib/python2.7/dist-packages/sphinx/ext/autodoc.py", line 518, in import_object
+     __import__(self.modname)
+   File "/<buildpath>/pywps/__init__.py", line 33, in <module>
+     from lxml.builder import ElementMaker
+ ImportError: No module named builder
+Author: Bas Couwenberg <sebastic at debian.org>
+
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -67,10 +67,13 @@ class Mock(object):
+         else:
+             return Mock()
+ 
+-MOCK_MODULES = ['lxml', 'lxml.etree', 'lxml.builder']
++MOCK_MODULES = ['lxml', 'lxml.etree', 'lxml.builder',
++                'werkzeug.exceptions']
+ 
+ with open('../requirements.txt') as f:
+-    MOCK_MODULES = f.read().splitlines()
++    MOCK_MODULES.extend(f.read().splitlines())
++
++MOCK_MODULES = list(set(MOCK_MODULES))
+ 
+ for mod_name in MOCK_MODULES:
+     sys.modules[mod_name] = Mock()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/pywps.git



More information about the Pkg-grass-devel mailing list