[Python-modules-commits] [nbconvert] 07/11: Use style.min.css from python3-notebook instead of CDN download

Gordon Ball chronitis-guest at moszumanska.debian.org
Fri Jan 27 19:25:06 UTC 2017


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

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

commit cbebf56ea94bd217c1181c3a0d466b0c840a5e1e
Author: Gordon Ball <gordon at chronitis.net>
Date:   Thu Jan 26 13:44:46 2017 +0100

    Use style.min.css from python3-notebook instead of CDN download
---
 debian/README.source | 8 ++++++++
 debian/control       | 1 +
 debian/rules         | 6 ++++--
 3 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..9fef156
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,8 @@
+The setup attempts to download the notebook CSS style from a CDN address [1].
+This is replaced with the equivalent file from python3-notebook, which is
+which is built from less files during that package's build process.
+
+(The CDN contains the static resources from the notebook package [2])
+
+[1]: https://cdn.jupyter.org/notebook/%s/style/style.min.css % notebookversion
+[2]: https://github.com/jupyter/cdn.jupyter.org
diff --git a/debian/control b/debian/control
index c6d21a5..ee2331a 100644
--- a/debian/control
+++ b/debian/control
@@ -42,6 +42,7 @@ Build-Depends: debhelper (>= 10),
                python3-sphinx-rtd-theme <!nodoc>,
                python3-testpath,
                python3-traitlets,
+               python3-notebook,
                texlive-fonts-recommended,
                texlive-generic-recommended,
                texlive-latex-base,
diff --git a/debian/rules b/debian/rules
index 31ace4a..81392e6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,11 +4,13 @@
 export LC_ALL=C.UTF-8
 export PYBUILD_TEST_ARGS=-v
 
-# add ",sphinxdoc" when nbsphinx is in Debian
-# (nbconvert's doc needs nbsphinx but nbsphinx needs nbconvert)
 %:
 	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
+override_dh_auto_configure:
+	dh_auto_configure
+	cp /usr/lib/python3/dist-packages/notebook/static/style/style.min.css nbconvert/resources/
+
 override_dh_auto_install:
 	dh_auto_install
 	rm -r `find debian/tmp -name tests -type d`

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



More information about the Python-modules-commits mailing list