From 7dc92706c631009867c44be24337adeec8bf4f5f21ffbed7c4b7ad07b26bef55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Sat, 17 May 2025 16:06:59 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-sphinx-tabs revision 3807905c4f3cc557883504d6a95f22d6 --- python-sphinx-tabs.changes | 16 +++ python-sphinx-tabs.spec | 8 +- support-sphinx-8.1.patch | 207 +++++++++++++++++++++++++++++++++++++ v3.4.5.tar.gz | 3 - v3.4.7.tar.gz | 3 + 5 files changed, 232 insertions(+), 5 deletions(-) create mode 100644 support-sphinx-8.1.patch delete mode 100644 v3.4.5.tar.gz create mode 100644 v3.4.7.tar.gz diff --git a/python-sphinx-tabs.changes b/python-sphinx-tabs.changes index 33af64c..b7d662c 100644 --- a/python-sphinx-tabs.changes +++ b/python-sphinx-tabs.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Wed Jan 22 01:07:17 UTC 2025 - Steve Kowalik + +- Add patch support-sphinx-8.1.patch: + * Support Sphinx 8.1 changes. + +------------------------------------------------------------------- +Wed Oct 30 19:51:06 UTC 2024 - Dirk Müller + +- update to 3.4.7: + * As previous release, but with working deployment to PyPI +- update to 3.4.6: + * Unpin Python version and dont reread README.md in setup.py + * Drop usage of internal API when conditionally including + assets + ------------------------------------------------------------------- Thu Feb 1 21:22:41 UTC 2024 - Dirk Müller diff --git a/python-sphinx-tabs.spec b/python-sphinx-tabs.spec index d576320..d7adf09 100644 --- a/python-sphinx-tabs.spec +++ b/python-sphinx-tabs.spec @@ -1,7 +1,7 @@ # # spec file for package python-sphinx-tabs # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -31,13 +31,15 @@ %{?sle15_python_module_pythons} Name: python-sphinx-tabs -Version: 3.4.5 +Version: 3.4.7 Release: 0 Summary: Tabbed views for Sphinx License: MIT URL: https://github.com/executablebooks/sphinx-tabs # Use the github tag instead of the pythonhosted.org to get the tests folder Source: https://github.com/executablebooks/sphinx-tabs/archive/refs/tags/v%{version}.tar.gz +# PATCH-FIX-UPSTREAM gh#executablebooks/sphinx-tabs#200 +Patch0: support-sphinx-8.1.patch BuildRequires: %{python_module Pygments} BuildRequires: %{python_module Sphinx} BuildRequires: %{python_module docutils} @@ -81,6 +83,8 @@ Create tabbed content in Sphinx documentation when building HTML. %if !%{with test} %files %{python_files} +%doc README.md +%license LICENSE %{python_sitelib}/sphinx_tabs %{python_sitelib}/sphinx_tabs-%{version}.dist-info %endif diff --git a/support-sphinx-8.1.patch b/support-sphinx-8.1.patch new file mode 100644 index 0000000..991543c --- /dev/null +++ b/support-sphinx-8.1.patch @@ -0,0 +1,207 @@ +From b5528ac02f472ecf1ef8c45eb4cc7249d3329b3d Mon Sep 17 00:00:00 2001 +From: Dmitry Shachnev +Date: Sun, 24 Nov 2024 20:55:02 +0300 +Subject: [PATCH] Update the tests for Sphinx 8.1 + +Fixes #199. +--- + tests/conftest.py | 4 ++++ + tests/test_build/test_basic.html | 2 ++ + .../test_conditional_assets_html_assets_policy_index_.html | 2 ++ + .../test_conditional_assets_html_assets_policy_no_tabs1_.html | 2 ++ + .../test_conditional_assets_html_assets_policy_no_tabs2_.html | 2 ++ + tests/test_build/test_conditional_assets_index_.html | 2 ++ + tests/test_build/test_conditional_assets_no_tabs1_.html | 2 ++ + tests/test_build/test_conditional_assets_no_tabs2_.html | 2 ++ + tests/test_build/test_custom_lexer.html | 2 ++ + tests/test_build/test_disable_closing.html | 2 ++ + tests/test_build/test_disable_css_loading.html | 2 ++ + tests/test_build/test_nested_markup.html | 2 ++ + tests/test_build/test_no_tabs.html | 2 ++ + tests/test_build/test_other_with_assets.html | 2 ++ + 14 files changed, 30 insertions(+) + +diff --git a/tests/conftest.py b/tests/conftest.py +index 1dbf0ad..c4452df 100644 +--- a/tests/conftest.py ++++ b/tests/conftest.py +@@ -91,6 +91,10 @@ def read(app, buildername="html", filename="index.html", encoding="utf-8"): + for div in soup.find_all("div", {"class": "highlight"}): + div.decompose() + ++ if sphinx.version_info < (8, 1): ++ body = soup.select("div.body")[0] ++ body.append(soup.new_tag("div", **{"class": "clearer"})) ++ + doc_div = soup.findAll("div", {"class": "documentwrapper"})[0] + doc = doc_div.prettify() + +diff --git a/tests/test_build/test_basic.html b/tests/test_build/test_basic.html +index af63887..a5cc924 100644 +--- a/tests/test_build/test_basic.html ++++ b/tests/test_build/test_basic.html +@@ -37,6 +37,8 @@ +

+ + ++
++
+ + + +diff --git a/tests/test_build/test_conditional_assets_html_assets_policy_index_.html b/tests/test_build/test_conditional_assets_html_assets_policy_index_.html +index b87a329..6e1cbc8 100644 +--- a/tests/test_build/test_conditional_assets_html_assets_policy_index_.html ++++ b/tests/test_build/test_conditional_assets_html_assets_policy_index_.html +@@ -243,6 +243,8 @@

+ + + ++
++
+ + + +diff --git a/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs1_.html b/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs1_.html +index b87a329..6e1cbc8 100644 +--- a/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs1_.html ++++ b/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs1_.html +@@ -243,6 +243,8 @@

+ + + ++
++
+ + + +diff --git a/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs2_.html b/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs2_.html +index b87a329..6e1cbc8 100644 +--- a/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs2_.html ++++ b/tests/test_build/test_conditional_assets_html_assets_policy_no_tabs2_.html +@@ -243,6 +243,8 @@

+ + + ++
++
+ + + +diff --git a/tests/test_build/test_conditional_assets_index_.html b/tests/test_build/test_conditional_assets_index_.html +index b87a329..6e1cbc8 100644 +--- a/tests/test_build/test_conditional_assets_index_.html ++++ b/tests/test_build/test_conditional_assets_index_.html +@@ -243,6 +243,8 @@

+ + + ++
++
+ + + +diff --git a/tests/test_build/test_conditional_assets_no_tabs1_.html b/tests/test_build/test_conditional_assets_no_tabs1_.html +index b87a329..6e1cbc8 100644 +--- a/tests/test_build/test_conditional_assets_no_tabs1_.html ++++ b/tests/test_build/test_conditional_assets_no_tabs1_.html +@@ -243,6 +243,8 @@

+ + + ++
++
+ + + +diff --git a/tests/test_build/test_conditional_assets_no_tabs2_.html b/tests/test_build/test_conditional_assets_no_tabs2_.html +index b87a329..6e1cbc8 100644 +--- a/tests/test_build/test_conditional_assets_no_tabs2_.html ++++ b/tests/test_build/test_conditional_assets_no_tabs2_.html +@@ -243,6 +243,8 @@

+ + + ++
++
+ + + +diff --git a/tests/test_build/test_custom_lexer.html b/tests/test_build/test_custom_lexer.html +index 954a10a..a0af59a 100644 +--- a/tests/test_build/test_custom_lexer.html ++++ b/tests/test_build/test_custom_lexer.html +@@ -19,6 +19,8 @@ + + + ++
++
+ + + +diff --git a/tests/test_build/test_disable_closing.html b/tests/test_build/test_disable_closing.html +index e245915..98ba6ef 100644 +--- a/tests/test_build/test_disable_closing.html ++++ b/tests/test_build/test_disable_closing.html +@@ -37,6 +37,8 @@ +

+ + ++
++
+ + + +diff --git a/tests/test_build/test_disable_css_loading.html b/tests/test_build/test_disable_css_loading.html +index af63887..a5cc924 100644 +--- a/tests/test_build/test_disable_css_loading.html ++++ b/tests/test_build/test_disable_css_loading.html +@@ -37,6 +37,8 @@ +

+ + ++
++
+ + + +diff --git a/tests/test_build/test_nested_markup.html b/tests/test_build/test_nested_markup.html +index 22588a9..b15d43e 100644 +--- a/tests/test_build/test_nested_markup.html ++++ b/tests/test_build/test_nested_markup.html +@@ -207,6 +207,8 @@

+ + + ++
++
+ + + +diff --git a/tests/test_build/test_no_tabs.html b/tests/test_build/test_no_tabs.html +index 6a0af85..26e2d70 100644 +--- a/tests/test_build/test_no_tabs.html ++++ b/tests/test_build/test_no_tabs.html +@@ -4,6 +4,8 @@ +

+ There are no tabs here +

++
++
+ + + +diff --git a/tests/test_build/test_other_with_assets.html b/tests/test_build/test_other_with_assets.html +index 85b55c4..c8ee530 100644 +--- a/tests/test_build/test_other_with_assets.html ++++ b/tests/test_build/test_other_with_assets.html +@@ -19,6 +19,8 @@ + + + ++
++
+ + + diff --git a/v3.4.5.tar.gz b/v3.4.5.tar.gz deleted file mode 100644 index b90ec29..0000000 --- a/v3.4.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1ec9c052b130fa97ad9d6c3cb7317831254b4bf353243f15e5d168c5ae02bef4 -size 524298 diff --git a/v3.4.7.tar.gz b/v3.4.7.tar.gz new file mode 100644 index 0000000..139720d --- /dev/null +++ b/v3.4.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8073e265d82eee148795f4ac3f98e6b8a68b755d64a338e9c22f873041808008 +size 523984