[Python-modules-commits] [python-amqp] 04/06: Add patch disabling intersphinx to prevent network requests during build.

Michael Fladischer fladi at moszumanska.debian.org
Sun Jul 30 21:42:57 UTC 2017


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

fladi pushed a commit to branch debian/experimental
in repository python-amqp.

commit 10b47fcf1a396f78f78f86b7b20b15ab703b2c3f
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Sun Jul 30 23:37:18 2017 +0200

    Add patch disabling intersphinx to prevent network requests during build.
---
 debian/changelog                                   |  2 ++
 .../0002-Disable-intersphinx-mapping-for-now.patch | 23 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 debian/rules                                       |  2 --
 4 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 6a12b32..3a8910d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 python-amqp (2.1.4-2) UNRELEASED; urgency=medium
 
   * Add new upstream signing key.
+  * Add patch disabling intersphinx to prevent network requests during
+    build.
 
  -- Michael Fladischer <fladi at debian.org>  Sun, 30 Jul 2017 23:34:55 +0200
 
diff --git a/debian/patches/0002-Disable-intersphinx-mapping-for-now.patch b/debian/patches/0002-Disable-intersphinx-mapping-for-now.patch
new file mode 100644
index 0000000..4900dbd
--- /dev/null
+++ b/debian/patches/0002-Disable-intersphinx-mapping-for-now.patch
@@ -0,0 +1,23 @@
+From: Michael Fladischer <FladischerMichael at fladi.at>
+Date: Sun, 30 Jul 2017 23:36:34 +0200
+Subject: Disable intersphinx mapping for now.
+
+The best way to fix network requests when building the documenation would be to
+patch INTERSPHINX_MAPPING in sphinx_celery.conf in src:sphinx-celery.
+---
+ docs/conf.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/docs/conf.py b/docs/conf.py
+index c550e42..36cc458 100644
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -20,7 +20,7 @@ globals().update(conf.build_config(
+     html_favicon='images/favicon.ico',
+     html_prepend_sidebars=['sidebardonations.html'],
+     extra_extensions=[],
+-    include_intersphinx={'python', 'sphinx'},
++    intersphinx_mapping={},
+     apicheck_package='amqp',
+     apicheck_ignore_modules=['amqp'],
+ ))
diff --git a/debian/patches/series b/debian/patches/series
index 61ca15e..3cc9155 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-Remove-PayPal-image-URLs.patch
+0002-Disable-intersphinx-mapping-for-now.patch
diff --git a/debian/rules b/debian/rules
index f54a513..83b24ec 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,8 +13,6 @@ export PYBUILD_AFTER_TEST=rm -rf {build_dir}/t
 %:
 	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
-override_dh_auto_build: export http_proxy=127.0.0.1:9
-override_dh_auto_build: export https_proxy=127.0.0.1:9
 override_dh_auto_build:
 	dh_auto_build
 	PYTHONPATH=. sphinx-build -D today="$(BUILD_DATE)" -b html -N docs/ docs/.build/html

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



More information about the Python-modules-commits mailing list