forked from pool/python-sphinx-tabs
- Add patch support-sphinx-8.1.patch:
* Support Sphinx 8.1 changes. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-tabs?expand=0&rev=21
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
3
_multibuild
Normal file
3
_multibuild
Normal file
@@ -0,0 +1,3 @@
|
||||
<multibuild>
|
||||
<package>test</package>
|
||||
</multibuild>
|
73
python-sphinx-tabs.changes
Normal file
73
python-sphinx-tabs.changes
Normal file
@@ -0,0 +1,73 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 22 01:07:17 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Add patch support-sphinx-8.1.patch:
|
||||
* Support Sphinx 8.1 changes.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 30 19:51:06 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- 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 <dmueller@suse.com>
|
||||
|
||||
- update to 3.4.5:
|
||||
* Removed docutils version pin
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 3 10:24:00 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- require setuptools
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 21 06:24:22 UTC 2023 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Update to 3.4.4:
|
||||
* Added
|
||||
+ Testing for Python 3.11 and 3.12
|
||||
* Removed
|
||||
+ Dependency on unsupported sphinx_testing package
|
||||
* Fixed
|
||||
+ tests for sphinx 7.2
|
||||
+ slice assignment in update_context(), which was removing JS scripts
|
||||
from other sphinx extensions/themes on pages where tabs were not used
|
||||
- Drop patches sphinx71.patch and sphinx72.patch, included upstream.
|
||||
- Switch to pyproject macros.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 9 14:41:57 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
- Fix build error: patch defined multible times.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 19 10:18:28 UTC 2023 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Add sphinx71.patch and sphinx72.patch to fix tests with Sphinx 7.2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 11 13:36:14 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
- Add %{?sle15_python_module_pythons}
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 28 15:16:23 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Update to v3.4.1
|
||||
- Add multibuild support to run tests
|
||||
- Remove sphinx-testing dependecy
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 17 11:03:54 UTC 2021 - Andreas Schneider <asn@cryptomilk.org>
|
||||
|
||||
- Fix building on openSUSE 15.3
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 29 09:47:05 UTC 2021 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||
|
||||
- Initial package
|
92
python-sphinx-tabs.spec
Normal file
92
python-sphinx-tabs.spec
Normal file
@@ -0,0 +1,92 @@
|
||||
#
|
||||
# spec file for package python-sphinx-tabs
|
||||
#
|
||||
# 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
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?sle_version} && 0%{?sle_version} <= 150300
|
||||
%define pythons python3
|
||||
%endif
|
||||
%bcond_with test
|
||||
%global flavor @BUILD_FLAVOR@%{nil}
|
||||
%if "%{flavor}" == "test"
|
||||
%define psuffix -test
|
||||
%bcond_without test
|
||||
%else
|
||||
%define psuffix %{nil}
|
||||
%bcond_with test
|
||||
%endif
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-sphinx-tabs
|
||||
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}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-Pygments
|
||||
Requires: python-Sphinx
|
||||
Requires: python-docutils
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module beautifulsoup4}
|
||||
BuildRequires: %{python_module pytest-regressions}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module sphinx-tabs = %{version}}
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Create tabbed content in Sphinx documentation when building HTML.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n sphinx-tabs-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%if !%{with test}
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
%endif
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
# python-rinohtype is not available
|
||||
%pytest -k 'not test_rinohtype_pdf'
|
||||
%endif
|
||||
|
||||
%if !%{with test}
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{python_sitelib}/sphinx_tabs
|
||||
%{python_sitelib}/sphinx_tabs-%{version}.dist-info
|
||||
%endif
|
||||
|
||||
%changelog
|
207
support-sphinx-8.1.patch
Normal file
207
support-sphinx-8.1.patch
Normal file
@@ -0,0 +1,207 @@
|
||||
From b5528ac02f472ecf1ef8c45eb4cc7249d3329b3d Mon Sep 17 00:00:00 2001
|
||||
From: Dmitry Shachnev <mitya57@gmail.com>
|
||||
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 @@
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
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 @@ <h1>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
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 @@ <h1>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
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 @@ <h1>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
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 @@ <h1>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
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 @@ <h1>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
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 @@ <h1>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
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 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
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 @@
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
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 @@
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
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 @@ <h1>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
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 @@
|
||||
<p>
|
||||
There are no tabs here
|
||||
</p>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
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 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
+ <div class="clearer">
|
||||
+ </div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
BIN
v3.4.5.tar.gz
(Stored with Git LFS)
Normal file
BIN
v3.4.5.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
v3.4.7.tar.gz
(Stored with Git LFS)
Normal file
BIN
v3.4.7.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Reference in New Issue
Block a user