Hello community,
here is the log from the commit of package python-jupyter-sphinx for
openSUSE:Factory checked in at 2020-01-03 17:38:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-jupyter-sphinx (Old)
and /work/SRC/openSUSE:Factory/.python-jupyter-sphinx.new.6675 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jupyter-sphinx"
Fri Jan 3 17:38:02 2020 rev:2 rq:760532 version:0.2.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-jupyter-sphinx/python-jupyter-sphinx.changes
2019-11-29 15:56:59.640969032 +0100
+++
/work/SRC/openSUSE:Factory/.python-jupyter-sphinx.new.6675/python-jupyter-sphinx.changes
2020-01-03 17:38:07.707330903 +0100
@@ -1,0 +2,11 @@
+Fri Jan 3 02:08:46 UTC 2020 - Todd R <[email protected]>
+
+- Update to 0.2.3
+ * strip Latex math delimiters that would be rendered by math blocks
+ * adjusts jupyter_container margin as a better fix
+ * fix sphinx_rtd_theme spacing issue
+ * Update jupyter-sphinx.css
+ * fix for overflow errror in code cell
+- Drop python2 support due to dependencies dropping python2
+
+-------------------------------------------------------------------
Old:
----
jupyter_sphinx-0.2.2.tar.gz
New:
----
jupyter_sphinx-0.2.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-jupyter-sphinx.spec ++++++
--- /var/tmp/diff_new_pack.vAOyVP/_old 2020-01-03 17:38:11.319332757 +0100
+++ /var/tmp/diff_new_pack.vAOyVP/_new 2020-01-03 17:38:11.319332757 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-jupyter-sphinx
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,9 +17,10 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define skip_python2 1
%define oldpython python
Name: python-jupyter-sphinx
-Version: 0.2.2
+Version: 0.2.3
Release: 0
Summary: Jupyter Sphinx Extensions
License: BSD-3-Clause
++++++ jupyter_sphinx-0.2.2.tar.gz -> jupyter_sphinx-0.2.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jupyter_sphinx-0.2.2/PKG-INFO
new/jupyter_sphinx-0.2.3/PKG-INFO
--- old/jupyter_sphinx-0.2.2/PKG-INFO 2019-11-03 17:24:03.000000000 +0100
+++ new/jupyter_sphinx-0.2.3/PKG-INFO 2019-11-21 16:07:31.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: jupyter_sphinx
-Version: 0.2.2
+Version: 0.2.3
Summary: Jupyter Sphinx Extensions
Home-page: https://github.com/jupyter/jupyter-sphinx/
Author: Jupyter Development Team
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jupyter_sphinx-0.2.2/jupyter_sphinx/_version.py
new/jupyter_sphinx-0.2.3/jupyter_sphinx/_version.py
--- old/jupyter_sphinx-0.2.2/jupyter_sphinx/_version.py 2019-11-03
17:20:21.000000000 +0100
+++ new/jupyter_sphinx-0.2.3/jupyter_sphinx/_version.py 2019-11-21
16:04:59.000000000 +0100
@@ -1,4 +1,4 @@
-version_info = (0, 2, 2, 'final')
+version_info = (0, 2, 3, 'final')
_specifier_ = {'alpha': 'a', 'beta': 'b', 'candidate': 'rc', 'final': ''}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jupyter_sphinx-0.2.2/jupyter_sphinx/css/jupyter-sphinx.css
new/jupyter_sphinx-0.2.3/jupyter_sphinx/css/jupyter-sphinx.css
--- old/jupyter_sphinx-0.2.2/jupyter_sphinx/css/jupyter-sphinx.css
2019-11-03 17:19:56.000000000 +0100
+++ new/jupyter_sphinx-0.2.3/jupyter_sphinx/css/jupyter-sphinx.css
2019-11-16 21:43:51.000000000 +0100
@@ -38,6 +38,7 @@
border-radius: 2px;
background-color: #f7f7f7;
margin: 0 0;
+ overflow: auto;
}
.jupyter_container div.code_cell pre {
@@ -104,5 +105,10 @@
/* combine sequential jupyter cells,
by moving sequential ones up higher on y-axis */
div.jupyter_container + div.jupyter_container {
- margin: -.5em 0 .4em 0;
+ margin: -.5em 0 .4em 0;
+}
+
+/* Fix for sphinx_rtd_theme spacing after jupyter_container #91 */
+.rst-content .jupyter_container {
+ margin: 0 0 24px 0;
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/jupyter_sphinx-0.2.2/jupyter_sphinx/execute.py
new/jupyter_sphinx-0.2.3/jupyter_sphinx/execute.py
--- old/jupyter_sphinx-0.2.2/jupyter_sphinx/execute.py 2019-11-03
17:19:56.000000000 +0100
+++ new/jupyter_sphinx-0.2.3/jupyter_sphinx/execute.py 2019-11-21
16:04:45.000000000 +0100
@@ -492,6 +492,25 @@
return (list(x) for _, x in groupby(it, count))
+def strip_latex_delimiters(source):
+ """Remove LaTeX math delimiters that would be rendered by the math block.
+
+ These are: ``\(…\)``, ``\[…\]``, ``$…$``, and ``$$…$$``.
+ This is necessary because sphinx does not have a dedicated role for
+ generic LaTeX, while Jupyter only defines generic LaTeX output, see
+ https://github.com/jupyter/jupyter-sphinx/issues/90 for discussion.
+ """
+ source = source.strip()
+ delimiter_pairs = (
+ pair.split() for pair in r'\( \),\[ \],$$ $$,$ $'.split(',')
+ )
+ for start, end in delimiter_pairs:
+ if source.startswith(start) and source.endswith(end):
+ return source[len(start):-len(end)]
+
+ return source
+
+
def cell_output_to_nodes(cell, data_priority, write_stderr, dir, thebe_config):
"""Convert a jupyter cell with outputs and filenames to doctree nodes.
@@ -582,7 +601,7 @@
))
elif mime_type == 'text/latex':
to_add.append(math_block(
- text=data,
+ text=strip_latex_delimiters(data),
nowrap=False,
number=None,
classes=["output", "text_latex"]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/jupyter_sphinx-0.2.2/jupyter_sphinx.egg-info/PKG-INFO
new/jupyter_sphinx-0.2.3/jupyter_sphinx.egg-info/PKG-INFO
--- old/jupyter_sphinx-0.2.2/jupyter_sphinx.egg-info/PKG-INFO 2019-11-03
17:24:03.000000000 +0100
+++ new/jupyter_sphinx-0.2.3/jupyter_sphinx.egg-info/PKG-INFO 2019-11-21
16:07:31.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: jupyter-sphinx
-Version: 0.2.2
+Version: 0.2.3
Summary: Jupyter Sphinx Extensions
Home-page: https://github.com/jupyter/jupyter-sphinx/
Author: Jupyter Development Team