diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/notebook/files | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/notebook/files')
3 files changed, 114 insertions, 0 deletions
diff --git a/dev-python/notebook/files/notebook-5.0.0-example-execution.patch b/dev-python/notebook/files/notebook-5.0.0-example-execution.patch new file mode 100644 index 000000000000..4516cadf11f6 --- /dev/null +++ b/dev-python/notebook/files/notebook-5.0.0-example-execution.patch @@ -0,0 +1,27 @@ +commit db90e16d17acc778efdfff6dca69767b47b60cbd +Author: Benda Xu <heroxbd@gentoo.org> +Date: Sat Aug 19 17:31:38 2017 +0900 + + d/s/examples/N/Importing Notebooks.ipynb: disable execution. + + This notebook example includes writing to the directory of another + module, usually resulting in a doc build failure. Therefore we + disable its execution by nbsphinx. + + Closes: #2372 + See-Also: https://bugs.gentoo.org/show_bug.cgi?id=626860 + +diff --git a/docs/source/examples/Notebook/Importing Notebooks.ipynb b/docs/source/examples/Notebook/Importing Notebooks.ipynb +index ee42ad526..d6db5395e 100644 +--- a/docs/source/examples/Notebook/Importing Notebooks.ipynb ++++ b/docs/source/examples/Notebook/Importing Notebooks.ipynb +@@ -511,6 +511,9 @@ + ], + "metadata": { + "gist_id": "6011986", ++ "nbsphinx": { ++ "execute": "never" ++ }, + "kernelspec": { + "display_name": "Python 3", + "language": "python", diff --git a/dev-python/notebook/files/notebook-5.0.0-setupbase.py.patch b/dev-python/notebook/files/notebook-5.0.0-setupbase.py.patch new file mode 100644 index 000000000000..4dc55d937cae --- /dev/null +++ b/dev-python/notebook/files/notebook-5.0.0-setupbase.py.patch @@ -0,0 +1,43 @@ +Disable bundled mathjax. + +Patch by Marius Brehler +--- a/setupbase.py ++++ b/setupbase.py +@@ -165,37 +165,6 @@ def find_package_data(): + if f.endswith(('.js', '.css')): + static_data.append(pjoin(parent, f)) + +- # Trim mathjax +- mj = lambda *path: pjoin(components, 'MathJax', *path) +- static_data.extend([ +- mj('MathJax.js'), +- mj('config', 'TeX-AMS-MML_HTMLorMML-full.js'), +- mj('config', 'Safe.js'), +- ]) +- +- trees = [] +- mj_out = mj('jax', 'output') +- +- if os.path.exists(mj_out): +- for output in os.listdir(mj_out): +- path = pjoin(mj_out, output) +- static_data.append(pjoin(path, '*.js')) +- autoload = pjoin(path, 'autoload') +- if os.path.isdir(autoload): +- trees.append(autoload) +- +- for tree in trees + [ +- mj('localization'), # limit to en? +- mj('fonts', 'HTML-CSS', 'STIX-Web', 'woff'), +- mj('extensions'), +- mj('jax', 'input', 'TeX'), +- mj('jax', 'output', 'HTML-CSS', 'fonts', 'STIX-Web'), +- mj('jax', 'output', 'SVG', 'fonts', 'STIX-Web'), +- ]: +- for parent, dirs, files in os.walk(tree): +- for f in files: +- static_data.append(pjoin(parent, f)) +- + os.chdir(os.path.join('tests',)) + js_tests = glob('*.js') + glob('*/*.js') + diff --git a/dev-python/notebook/files/notebook-5.2.1-setupbase.py.patch b/dev-python/notebook/files/notebook-5.2.1-setupbase.py.patch new file mode 100644 index 000000000000..97be84cb364a --- /dev/null +++ b/dev-python/notebook/files/notebook-5.2.1-setupbase.py.patch @@ -0,0 +1,44 @@ +Disable bundled mathjax. + +Patch by Marius Brehler. +--- a/setupbase.py ++++ b/setupbase.py +@@ -168,38 +168,6 @@ def find_package_data(): + if f.endswith(('.js', '.css')): + static_data.append(pjoin(parent, f)) + +- # Trim mathjax +- mj = lambda *path: pjoin(components, 'MathJax', *path) +- static_data.extend([ +- mj('MathJax.js'), +- mj('config', 'TeX-AMS-MML_HTMLorMML-full.js'), +- mj('config', 'Safe.js'), +- ]) +- +- trees = [] +- mj_out = mj('jax', 'output') +- +- if os.path.exists(mj_out): +- for output in os.listdir(mj_out): +- path = pjoin(mj_out, output) +- static_data.append(pjoin(path, '*.js')) +- autoload = pjoin(path, 'autoload') +- if os.path.isdir(autoload): +- trees.append(autoload) +- +- for tree in trees + [ +- mj('localization'), # limit to en? +- mj('fonts', 'HTML-CSS', 'STIX-Web', 'woff'), +- mj('extensions'), +- mj('jax', 'input', 'TeX'), +- mj('jax', 'output', 'HTML-CSS', 'fonts', 'STIX-Web'), +- mj('jax', 'output', 'SVG', 'fonts', 'STIX-Web'), +- mj('jax', 'element', 'mml'), +- ]: +- for parent, dirs, files in os.walk(tree): +- for f in files: +- static_data.append(pjoin(parent, f)) +- + os.chdir(os.path.join('tests',)) + js_tests = glob('*.js') + glob('*/*.js') + |