[statsmodels] 15/21: Add use-system-inventory patch to use intersphinx inventory files from other Debian doc packages. Added those packages to the -doc package suggests list

Diane Trout diane at moszumanska.debian.org
Mon Sep 25 06:39:29 UTC 2017


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

diane pushed a commit to branch detrout-python3-try2
in repository statsmodels.

commit 12aaee57d7eafdb86128530704b3c155b7b41e4c
Author: Diane Trout <diane at ghic.org>
Date:   Sun Sep 24 23:18:58 2017 -0700

    Add use-system-inventory patch to use intersphinx inventory files from other Debian doc packages. Added those packages to the -doc package suggests list
---
 debian/changelog                    |  3 +++
 debian/control                      |  7 ++++++-
 debian/patches/series               |  1 +
 debian/patches/use-system-inventory | 24 ++++++++++++++++++++++++
 4 files changed, 34 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index b882ef3..79b8af4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,9 @@ statsmodels (0.8.0-4) UNRELEASED; urgency=medium
   * Update Python 3 build depends, add components necessary to build
     notebook examples
   * Lintain warned that Conflicts with version should probably be Breaks
+  * Add use-system-inventory patch to use intersphinx inventory files from
+    other Debian doc packages.
+    Added those packages to the -doc package suggests list
 
  -- Andreas Tille <tille at debian.org>  Wed, 06 Sep 2017 17:32:07 +0200
 
diff --git a/debian/control b/debian/control
index 8de6305..c5bbd0e 100644
--- a/debian/control
+++ b/debian/control
@@ -89,7 +89,12 @@ Architecture: all
 Section: doc
 Depends: ${misc:Depends}, libjs-jquery
 Recommends: libjs-mathjax
-Suggests: python-statsmodels
+Suggests: python-statsmodels,
+ python3-doc,
+ python-numpy-doc,
+ python-patsy-doc,
+ python-pandas-doc,
+ python-scipy-doc,
 Description: documentation and examples for statsmodels
  This package contains HTML documentation and example scripts for
  python-statsmodels.
diff --git a/debian/patches/series b/debian/patches/series
index d918c63..68a4921 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@ deb_skip_test_ons390
 deb_no_nbformat_for_now
 skip_tests_failing_due_to_panda_issue.patch
 fix_numpydoc_issue.patch
+use-system-inventory
diff --git a/debian/patches/use-system-inventory b/debian/patches/use-system-inventory
new file mode 100644
index 0000000..54efdfb
--- /dev/null
+++ b/debian/patches/use-system-inventory
@@ -0,0 +1,24 @@
+Author: Diane Trout <diane at ghic.org>
+Description: Use intersphinx inventory files from other Debian packages.
+Forwarded: not-needed
+
+Index: statsmodels-0.8.0/docs/source/conf.py
+===================================================================
+--- statsmodels-0.8.0.orig/docs/source/conf.py
++++ statsmodels-0.8.0/docs/source/conf.py
+@@ -321,11 +321,11 @@ epub_copyright = u'2009-2017, Josef Perk
+ 
+ # Example configuration for intersphinx: refer to the Python standard library.
+ intersphinx_mapping = {
+-        'numpy' : ('https://docs.scipy.org/doc/numpy/', None),
+-        'python' : ('https://docs.python.org/3.2', None),
++        'numpy' : ('https://docs.scipy.org/doc/numpy/', '/usr/share/doc/python-numpy-doc/html/objects.inv'),
++        'python' : ('https://docs.python.org/3.2', '/usr/share/doc/python3-doc/html/objects.inv'),
+         'pydagogue' : ('http://matthew-brett.github.io/pydagogue/', None),
+-        'patsy' : ('http://patsy.readthedocs.io/en/latest/', None),
+-        'pandas' : ('http://pandas.pydata.org/pandas-docs/stable/', None),
++        'patsy' : ('http://patsy.readthedocs.io/en/latest/', '/usr/share/doc/python-patsy-doc/html/objects.inv'),
++        'pandas' : ('http://pandas.pydata.org/pandas-docs/stable/', '/usr/share/doc/python-pandas-doc/html/objects.inv'),
+         }
+ 
+ from os.path import dirname, abspath, join

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



More information about the debian-science-commits mailing list