Skip to content

Commit

Permalink
Update python-jupyter-sphinx to version 0.5.3 / rev 11 via SR 1201287
Browse files Browse the repository at this point in the history
https://build.opensuse.org/request/show/1201287
by user bnavigator + anag+factory
- Skip failing tests due to missing bash-kernel
- Add jupyter-sphinx-sphinx7.patch gh#jupyter/jupyter-sphinx#280
  • Loading branch information
bnavigator authored and bmwiedemann committed Sep 16, 2024
1 parent 194e230 commit 6770335
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 2 deletions.
Binary file modified packages/p/python-jupyter-sphinx/.files
Binary file not shown.
9 changes: 9 additions & 0 deletions packages/p/python-jupyter-sphinx/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,13 @@
</comment>
<requestid>1156383</requestid>
</revision>
<revision rev="11" vrev="3">
<srcmd5>49ebae4cd4b1142778d845a83e0d32a2</srcmd5>
<version>0.5.3</version>
<time>1726501389</time>
<user>anag+factory</user>
<comment>- Skip failing tests due to missing bash-kernel
- Add jupyter-sphinx-sphinx7.patch gh#jupyter/jupyter-sphinx#280</comment>
<requestid>1201287</requestid>
</revision>
</revisionlist>
11 changes: 11 additions & 0 deletions packages/p/python-jupyter-sphinx/jupyter-sphinx-sphinx7.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
diff -ur jupyter-sphinx-0.5.3.orig/tests/test_execute.py jupyter-sphinx-0.5.3/tests/test_execute.py
--- jupyter-sphinx-0.5.3.orig/tests/test_execute.py 2024-09-15 20:14:34.086132369 +0200
+++ jupyter-sphinx-0.5.3/tests/test_execute.py 2024-09-15 20:15:06.323782290 +0200
@@ -52,6 +52,7 @@
source_trees.append(src_dir)

conf_contents = "extensions = ['%s']" % entrypoint
+ conf_contents += "\nproject = 'python'"
if config is not None:
conf_contents += "\n" + config
(src_dir / "conf.py").write_text(conf_contents, encoding="utf8")
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Sep 15 17:45:17 UTC 2024 - Ben Greiner <[email protected]>

- Skip failing tests due to missing bash-kernel
- Add jupyter-sphinx-sphinx7.patch gh#jupyter/jupyter-sphinx#280

-------------------------------------------------------------------
Tue Mar 5 18:32:21 UTC 2024 - Ben Greiner <[email protected]>

Expand Down
5 changes: 3 additions & 2 deletions packages/p/python-jupyter-sphinx/python-jupyter-sphinx.spec
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@
#


%define skip_python39 1
Name: python-jupyter-sphinx
Version: 0.5.3
Release: 0
Summary: Jupyter Sphinx Extensions
License: BSD-3-Clause
URL: https://github.com/jupyter-widgets/jupyter-sphinx
Source: https://github.com/jupyter/jupyter-sphinx/archive/v%{version}.tar.gz#/jupyter-sphinx-%{version}-gh.tar.gz
# PATCH-FIX-UPSTREAM jupyter-sphinx-sphinx7.patch gh#jupyter/jupyter-sphinx#280
Patch0: jupyter-sphinx-sphinx7.patch
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module hatchling >= 1.5}
BuildRequires: %{python_module pip}
Expand Down Expand Up @@ -69,7 +70,7 @@ sed -i 's/"--color=yes", //' pyproject.toml

%check
export JUPYTER_PLATFORM_DIRS=1
%pytest
%pytest -k "not test_bash_kernel"

%files %{python_files}
%doc README.md
Expand Down

0 comments on commit 6770335

Please sign in to comment.