Skip to content

Commit

Permalink
Update python-voila to version 0.3.6 / rev 17 via SR 1029570
Browse files Browse the repository at this point in the history
https://build.opensuse.org/request/show/1029570
by user bnavigator + dimstar_suse
- Bump to nbclient 0.7 (See also gh#voila-dashboards/voila#1234)
- Remove import from vendorized mistune in nbconvert: not
  vendorized anymore
  • Loading branch information
bnavigator authored and bmwiedemann committed Oct 18, 2022
1 parent 089da78 commit 97aa498
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 6 deletions.
Binary file modified packages/p/python-voila/.files
Binary file not shown.
11 changes: 11 additions & 0 deletions packages/p/python-voila/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,15 @@
</comment>
<requestid>1008126</requestid>
</revision>
<revision rev="17" vrev="4">
<srcmd5>8c40ef0f6aad40d8d936eb502b85dc2a</srcmd5>
<version>0.3.6</version>
<time>1666089910</time>
<user>dimstar_suse</user>
<comment>- Bump to nbclient 0.7 (See also gh#voila-dashboards/voila#1234)
- Remove import from vendorized mistune in nbconvert: not
vendorized anymore
</comment>
<requestid>1029570</requestid>
</revision>
</revisionlist>
7 changes: 7 additions & 0 deletions packages/p/python-voila/python-voila.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Oct 17 16:32:43 UTC 2022 - Ben Greiner <[email protected]>

- Bump to nbclient 0.7 (See also gh#voila-dashboards/voila#1234)
- Remove import from vendorized mistune in nbconvert: not
vendorized anymore

-------------------------------------------------------------------
Wed Oct 5 07:25:19 UTC 2022 - Daniel Garcia <[email protected]>

Expand Down
4 changes: 1 addition & 3 deletions packages/p/python-voila/python-voila.spec
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Requires: python-websockets >= 9.0
Requires: (python-jupyter-client >= 6.1.3 with python-jupyter-client < 8)
Requires: (python-jupyter-server >= 1.18 with python-jupyter-server < 2)
Requires: (python-jupyterlab-server >= 2.3.0 with python-jupyterlab-server < 3)
Requires: (python-nbclient >= 0.4.0 with python-nbclient < 0.7)
Requires: (python-nbclient >= 0.4.0 with python-nbclient < 0.8)
Requires: (python-nbconvert >= 6.4.5 with python-nbconvert < 8)
Requires: (python-traitlets >= 5.0.3 with python-traitlets < 6)
BuildArch: noarch
Expand Down Expand Up @@ -119,8 +119,6 @@ This package provides the jupyter components.
%prep
%setup -q -n voila-%{version}
tar xf %{SOURCE1} --strip-components=1 voila-%{version}/tests
sed -i s/mistune.Renderer/nbconvert.vendor.mistune.Renderer/ voila/exporter.py
sed -i '/nbclient/ s/,<0.6//' setup.cfg
# '.' is now considered 'hidden', which is not allowed.
sed -i 's|./jupyter.svg|jupyter.svg|' tests/notebooks/images.ipynb
%patch0 -p1
Expand Down
6 changes: 3 additions & 3 deletions packages/p/python-voila/update-nbconvert.patch
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Index: voila-0.3.6/setup.cfg
jupyter_server>=1.18,<2.0.0
jupyterlab_server>=2.3.0,<3
jupyter_client>=6.1.3,<8
- nbclient>=0.4.0
- nbclient>=0.4.0,<0.6
- nbconvert>=6.4.5,<7
+ nbclient>=0.4.0,<0.7
+ nbclient>=0.4.0,<0.8
+ nbconvert>=6.4.5,<8
websockets>=9.0
traitlets>=5.0.3,<6
Expand Down Expand Up @@ -41,7 +41,7 @@ Index: voila-0.3.6/voila/exporter.py
"""Custom HTMLExporter that inlines the images using VoilaMarkdownRenderer"""

base_url = traitlets.Unicode(help="Base url for resources").tag(config=True)
- markdown_renderer_class = traitlets.Type('nbconvert.vendor.mistune.Renderer').tag(config=True)
- markdown_renderer_class = traitlets.Type('mistune.Renderer').tag(config=True)
+ markdown_renderer_class = traitlets.Type(VoilaMarkdownRenderer).tag(config=True)
# Can be a ContentsManager from notebook or jupyter_server, so Any will have to do for now
contents_manager = traitlets.Any()
Expand Down

0 comments on commit 97aa498

Please sign in to comment.