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

Michael Fladischer fladi at moszumanska.debian.org
Sun Jul 30 21:27: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 e3add8b605ca88824cf26784cb071fd7259b5173
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Sun Jul 30 23:14:43 2017 +0200

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

diff --git a/debian/changelog b/debian/changelog
index 02f0246..dab869a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,12 @@
-python-amqp (2.2.1-1~exp1) UNRELEASED; urgency=low
+python-amqp (2.2.1-1~exp1) experimental; urgency=low
 
   * New upstream release.
   * Add new upstream signing key.
   * Bump Standards-Version to 4.0.0.
+  * Add patch disabling intersphinx to prevent network requests during
+    build.
 
- -- Michael Fladischer <fladi at debian.org>  Sun, 30 Jul 2017 23:02:11 +0200
+ -- Michael Fladischer <fladi at debian.org>  Sun, 30 Jul 2017 23:19:05 +0200
 
 python-amqp (2.1.4-1) experimental; urgency=medium
 
diff --git a/debian/patches/0002-Disable-intershpinx-mapping-for-now.patch b/debian/patches/0002-Disable-intershpinx-mapping-for-now.patch
new file mode 100644
index 0000000..928e5e7
--- /dev/null
+++ b/debian/patches/0002-Disable-intershpinx-mapping-for-now.patch
@@ -0,0 +1,23 @@
+From: Michael Fladischer <FladischerMichael at fladi.at>
+Date: Sun, 30 Jul 2017 23:14:10 +0200
+Subject: Disable intershpinx 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..e526713 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 0001-Remove-PayPal-image-URLs.patch
+0002-Disable-intershpinx-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