[Python-modules-commits] [jupyter-notebook] 01/01: Set XDG_RUNTIME_DIR and HOME in d/rules

Gordon Ball chronitis-guest at moszumanska.debian.org
Mon Nov 6 21:07:19 UTC 2017


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

chronitis-guest pushed a commit to branch master
in repository jupyter-notebook.

commit 80cf853630d12345d6ee69d4842489820fe2ed7a
Author: Gordon Ball <gordon at chronitis.net>
Date:   Mon Nov 6 19:49:05 2017 +0000

    Set XDG_RUNTIME_DIR and HOME in d/rules
---
 debian/changelog | 7 +++++++
 debian/rules     | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 9657bdd..5235927 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+jupyter-notebook (5.1.0-2) unstable; urgency=medium
+
+  * Explicitly set HOME and XDG_RUNTIME_DIR due to tests failing
+    on the buildds
+
+ -- Gordon Ball <gordon at chronitis.net>  Mon, 06 Nov 2017 19:47:56 +0000
+
 jupyter-notebook (5.1.0-1) unstable; urgency=medium
 
   [ Ximin Luo ]
diff --git a/debian/rules b/debian/rules
index 78acb4e..3313707 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,9 @@ BUILTUSING:=$(foreach jspkg, $(JSUSING), $(shell dpkg-query -f '$${source:Packag
 
 export PYBUILD_AFTER_INSTALL=rm -rf '{destdir}/{install_dir}/notebook/static/components' ; cp -r notebook/static/components '{destdir}/{install_dir}/notebook/static/' ; rm -rf '{destdir}/{install_dir}/notebook/tests'
 export LC_ALL=C.UTF-8
+export HOME=$(CURDIR)/debian/tmp-home
+export XDG_RUNTIME_DIR=$(HOME)/runtime
+
 
 %:
 	dh $@ --with=python2,python3,sphinxdoc --buildsystem=pybuild
@@ -148,3 +151,7 @@ override_dh_gencontrol:
 	echo "js:Built-Using=$(BUILTUSING)" >> debian/python-notebook.substvars
 	echo "js:Built-Using=$(BUILTUSING)" >> debian/python3-notebook.substvars
 	dh_gencontrol
+
+override_dh_auto_test:
+	mkdir -p $(XDG_RUNTIME_DIR)
+	dh_auto_test

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



More information about the Python-modules-commits mailing list