[python-xarray] 09/12: Use the packaged documentation

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sat Apr 15 20:52:04 UTC 2017


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

ghisvail-guest pushed a commit to branch master
in repository python-xarray.

commit e779008d1ae36edab4564575eeb1050ac1802312
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Sat Apr 15 15:35:18 2017 +0100

    Use the packaged documentation
    
    - Add numpy-doc, pandas-doc, python3-doc to the list of b-deps
    - Patch the intersphinx configuration to use the packaged docs (new
      patch Use-packaged-docs.patch)
    
    Gbp-Dch: full
---
 debian/control                         |  3 +++
 debian/patches/Use-packaged-docs.patch | 33 +++++++++++++++++++++++++++++++++
 debian/patches/series                  |  1 +
 3 files changed, 37 insertions(+)

diff --git a/debian/control b/debian/control
index 5d5cc32..a4f938b 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,10 @@ Priority: optional
 Build-Depends: debhelper (>= 10),
                dh-python,
                dpkg-dev (>= 1.17.14),
+               python-numpy-doc <!nodoc>,
+               python-pandas-doc <!nodoc>,
                python3-all,
+               python3-doc <!nodoc>,
                python3-bottleneck <!nocheck>,
                python3-cartopy <!nodoc>,
                python3-dask <!nocheck> <!nodoc>,
diff --git a/debian/patches/Use-packaged-docs.patch b/debian/patches/Use-packaged-docs.patch
new file mode 100644
index 0000000..1978f8c
--- /dev/null
+++ b/debian/patches/Use-packaged-docs.patch
@@ -0,0 +1,33 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Sat, 15 Apr 2017 15:33:41 +0100
+Subject: Use packaged docs
+
+---
+ doc/conf.py | 16 ++++++++++++----
+ 1 file changed, 12 insertions(+), 4 deletions(-)
+
+diff --git a/doc/conf.py b/doc/conf.py
+index 5f7b7f3..4b05a28 100644
+--- a/doc/conf.py
++++ b/doc/conf.py
+@@ -350,8 +350,16 @@ texinfo_documents = [
+ 
+ # Example configuration for intersphinx: refer to the Python standard library.
+ intersphinx_mapping = {
+-    'python': ('https://docs.python.org/3.5/', None),
+-    'pandas': ('http://pandas.pydata.org/pandas-docs/stable/', None),
+-    'iris': ('http://scitools.org.uk/iris/docs/latest/', None),
+-    'numpy': ('http://docs.scipy.org/doc/numpy/', None),
++    'python': (
++        'https://docs.python.org/3/',
++        '/usr/share/doc/python3/html/objects.inv'
++    ),
++    'pandas': (
++        'http://pandas.pydata.org/pandas-docs/stable/',
++        '/usr/share/doc/python-pandas-doc/html/objects.inv'
++    ),
++    'numpy': (
++        'http://docs.scipy.org/doc/numpy/',
++        '/usr/share/doc/python-numpy-doc/html/objects.inv'
++    )
+ }
diff --git a/debian/patches/series b/debian/patches/series
index cd43bd0..8a02a61 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 Fix-missing-config-errors-when-running-test-suite.patch
+Use-packaged-docs.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-xarray.git



More information about the debian-science-commits mailing list