[Python-modules-commits] r32699 - in packages/django-reversion/trunk/debian (3 files)

fladi-guest at users.alioth.debian.org fladi-guest at users.alioth.debian.org
Tue May 19 08:36:07 UTC 2015


    Date: Tuesday, May 19, 2015 @ 08:36:06
  Author: fladi-guest
Revision: 32699

Add intersphinx.patch to use local Python objects.inv for documentation.

Added:
  packages/django-reversion/trunk/debian/patches/
  packages/django-reversion/trunk/debian/patches/intersphinx.patch
  packages/django-reversion/trunk/debian/patches/series

Added: packages/django-reversion/trunk/debian/patches/intersphinx.patch
===================================================================
--- packages/django-reversion/trunk/debian/patches/intersphinx.patch	                        (rev 0)
+++ packages/django-reversion/trunk/debian/patches/intersphinx.patch	2015-05-19 08:36:06 UTC (rev 32699)
@@ -0,0 +1,29 @@
+Description: use local objects.inv where possible
+ Upstream uses intersphinx mappings that fetch the objects.inv for Python, HTTP
+ from a remote host. Using the local objects.inv from Python enables the package
+ to build without network connection.
+Author: Michael Fladischer <fladi at debian.org>
+Forwarded: not-needed
+Last-Update: 2015-05-19
+
+Index: django-reversion/docs/conf.py
+===================================================================
+--- django-reversion.orig/docs/conf.py	2015-04-13 10:28:25.000000000 +0200
++++ django-reversion/docs/conf.py	2015-05-19 10:23:17.477027780 +0200
+@@ -244,4 +244,15 @@
+ 
+ 
+ # Example configuration for intersphinx: refer to the Python standard library.
+-intersphinx_mapping = {'http://docs.python.org/': None}
++def check_object_path(key, url, path):
++    if os.path.isfile(path):
++        return {key: (url, path)}
++    return {}
++
++intersphinx_mapping = {}
++intersphinx_mapping.update(check_object_path('python',
++                                             'http://docs.python.org/',
++                                             '/usr/share/doc/python'
++                                              + '.'.join([str(x) for x in sys.version_info[0:2]])
++                                              + '/html/objects.inv'))
++

Added: packages/django-reversion/trunk/debian/patches/series
===================================================================
--- packages/django-reversion/trunk/debian/patches/series	                        (rev 0)
+++ packages/django-reversion/trunk/debian/patches/series	2015-05-19 08:36:06 UTC (rev 32699)
@@ -0,0 +1 @@
+intersphinx.patch




More information about the Python-modules-commits mailing list