[python-hdf5storage] 01/03: Prevent intersphinx from accessing the internet.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Sun Jul 17 11:25:54 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository python-hdf5storage.
commit f31d9c2ec794bd7ad0e82f24d008da9ea8c2d436
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Sun Jul 17 09:35:12 2016 +0100
Prevent intersphinx from accessing the internet.
Gbp-Dch: Short
Closes: #831538
---
debian/control | 4 +++
...ake-intersphinx-use-local-inventory-files.patch | 41 ++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 46 insertions(+)
diff --git a/debian/control b/debian/control
index d3a20d2..749cdc3 100644
--- a/debian/control
+++ b/debian/control
@@ -7,13 +7,17 @@ Build-Depends: debhelper (>= 9),
dh-python,
python-all,
python-h5py,
+ python-h5py-doc,
python-numpy,
+ python-numpy-doc,
python-numpydoc,
python-nose,
python-setuptools,
python-scipy,
+ python-scipy-doc,
python-sphinx,
python3-all,
+ python3-doc,
python3-h5py,
python3-numpy,
python3-nose,
diff --git a/debian/patches/Make-intersphinx-use-local-inventory-files.patch b/debian/patches/Make-intersphinx-use-local-inventory-files.patch
new file mode 100644
index 0000000..29ab888
--- /dev/null
+++ b/debian/patches/Make-intersphinx-use-local-inventory-files.patch
@@ -0,0 +1,41 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Sun, 17 Jul 2016 09:32:11 +0100
+Subject: Make intersphinx use local inventory files.
+
+---
+ doc/source/conf.py | 22 ++++++++++++++++++----
+ 1 file changed, 18 insertions(+), 4 deletions(-)
+
+diff --git a/doc/source/conf.py b/doc/source/conf.py
+index 8662440..4ef3124 100644
+--- a/doc/source/conf.py
++++ b/doc/source/conf.py
+@@ -257,10 +257,24 @@ texinfo_documents = [
+
+ # Example configuration for intersphinx: refer to the Python standard library.
+
+-intersphinx_mapping = {'python': ('http://docs.python.org/3.3', None),
+- 'numpy': ('http://docs.scipy.org/doc/numpy', None),
+- 'scipy': ('http://docs.scipy.org/doc/scipy/reference', None),
+- 'h5py': ('http://docs.h5py.org/en/latest/', None)}
++intersphinx_mapping = {
++ 'python': (
++ 'http://docs.python.org/3',
++ '/usr/share/doc/python3/html/objects.inv'
++ ),
++ 'numpy': (
++ 'http://docs.scipy.org/doc/numpy',
++ '/usr/share/doc/python-numpy-doc/html/objects.inv'
++ ),
++ 'scipy': (
++ 'http://docs.scipy.org/doc/scipy/reference',
++ '/usr/share/doc/python-scipy-doc/html/objects.inv'
++ ),
++ 'h5py': (
++ 'http://docs.h5py.org/en/latest/',
++ '/usr/share/doc/python-h5py-doc/html/objects.inv'
++ )
++}
+
+ # -- Options for Autosummary ---------------------------------------------------
+
diff --git a/debian/patches/series b/debian/patches/series
index f1b89fa..f95d7ab 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
Use-system-mathjax.patch
Drop-usage-of-pngmath-sphinx-extension.patch
+Make-intersphinx-use-local-inventory-files.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-hdf5storage.git
More information about the debian-science-commits
mailing list