forked from pool/python-pydata-sphinx-theme
Accepting request 914676 from home:mcepl:branches:devel:languages:python
Dependency of python-sphinx-book-theme and consequently python-sphinxcontrib-copybutton. OBS-URL: https://build.opensuse.org/request/show/914676 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydata-sphinx-theme?expand=0&rev=1
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
|
19
_service
Normal file
19
_service
Normal file
@@ -0,0 +1,19 @@
|
||||
<services>
|
||||
<!-- python portion of github sources -->
|
||||
<service name="obs_scm" mode="disabled">
|
||||
<param name="url">https://github.com/pydata/pydata-sphinx-theme.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="revision">v0.6.3</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="versionrewrite-pattern">v(.*)</param>
|
||||
<param name="exclude">.git*</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
<param name="changesauthor">mcepl@cepl.eu</param>
|
||||
</service>
|
||||
<service mode="disabled" name="tar" />
|
||||
<service name="recompress" mode="disabled">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">gz</param>
|
||||
</service>
|
||||
<service name="set_version" mode="disabled" />
|
||||
</services>
|
4
_servicedata
Normal file
4
_servicedata
Normal file
@@ -0,0 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/pydata/pydata-sphinx-theme.git</param>
|
||||
<param name="changesrevision">48afe724cfb18aed27263a2ac069639e5cdf1f70</param></service></servicedata>
|
72
fix_sidebar_tests.patch
Normal file
72
fix_sidebar_tests.patch
Normal file
@@ -0,0 +1,72 @@
|
||||
From 92aaf756a6a079f09c424cf6b810cc3c720ec6fe Mon Sep 17 00:00:00 2001
|
||||
From: Joris Van den Bossche <jorisvandenbossche@gmail.com>
|
||||
Date: Mon, 9 Aug 2021 12:12:10 +0200
|
||||
Subject: [PATCH] TST: update role for caption in expected html output (sphinx
|
||||
4.1)
|
||||
|
||||
---
|
||||
tests/test_build/test_sidebars_captions.html | 2 +-
|
||||
tests/test_build/test_sidebars_level2.html | 2 +-
|
||||
tests/test_build/test_sidebars_nested_page.html | 2 +-
|
||||
tests/test_build/test_sidebars_single.html | 4 ++--
|
||||
4 files changed, 5 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/tests/test_build/test_sidebars_captions.html b/tests/test_build/test_sidebars_captions.html
|
||||
index a8e70caf5..1a05a926d 100644
|
||||
--- a/tests/test_build/test_sidebars_captions.html
|
||||
+++ b/tests/test_build/test_sidebars_captions.html
|
||||
@@ -1,6 +1,6 @@
|
||||
<nav aria-label="Main navigation" class="bd-links" id="bd-docs-nav">
|
||||
<div class="bd-toc-item active">
|
||||
- <p class="caption">
|
||||
+ <p class="caption" role="heading">
|
||||
<span class="caption-text">
|
||||
Section 1
|
||||
</span>
|
||||
diff --git a/tests/test_build/test_sidebars_level2.html b/tests/test_build/test_sidebars_level2.html
|
||||
index 47251789b..e4d75cae6 100644
|
||||
--- a/tests/test_build/test_sidebars_level2.html
|
||||
+++ b/tests/test_build/test_sidebars_level2.html
|
||||
@@ -1,7 +1,7 @@
|
||||
<nav aria-label="Main navigation" class="bd-links" id="bd-docs-nav">
|
||||
<div class="bd-toc-item active">
|
||||
<!-- Use deeper level for sidebar -->
|
||||
- <p class="caption">
|
||||
+ <p class="caption" role="heading">
|
||||
<span class="caption-text">
|
||||
Subsection 1.1
|
||||
</span>
|
||||
diff --git a/tests/test_build/test_sidebars_nested_page.html b/tests/test_build/test_sidebars_nested_page.html
|
||||
index dfc59e59f..dabf83c4d 100644
|
||||
--- a/tests/test_build/test_sidebars_nested_page.html
|
||||
+++ b/tests/test_build/test_sidebars_nested_page.html
|
||||
@@ -1,6 +1,6 @@
|
||||
<nav aria-label="Main navigation" class="bd-links" id="bd-docs-nav">
|
||||
<div class="bd-toc-item active">
|
||||
- <p class="caption">
|
||||
+ <p class="caption" role="heading">
|
||||
<span class="caption-text">
|
||||
Section 1
|
||||
</span>
|
||||
diff --git a/tests/test_build/test_sidebars_single.html b/tests/test_build/test_sidebars_single.html
|
||||
index ce63c3b32..50bd2813b 100644
|
||||
--- a/tests/test_build/test_sidebars_single.html
|
||||
+++ b/tests/test_build/test_sidebars_single.html
|
||||
@@ -1,7 +1,7 @@
|
||||
<nav aria-label="Main navigation" class="bd-links" id="bd-docs-nav">
|
||||
<div class="bd-toc-item active">
|
||||
<!-- Specify a startdepth of 0 instead of default of 1 -->
|
||||
- <p class="caption">
|
||||
+ <p class="caption" role="heading">
|
||||
<span class="caption-text">
|
||||
Caption 1
|
||||
</span>
|
||||
@@ -13,7 +13,7 @@
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
- <p class="caption">
|
||||
+ <p class="caption" role="heading">
|
||||
<span class="caption-text">
|
||||
Caption 2
|
||||
</span>
|
3
pydata-sphinx-theme-0.6.3.tar.gz
Normal file
3
pydata-sphinx-theme-0.6.3.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:967d506f159a510a534445a83c49edf62b453e8f69844366ff8ad568459bd538
|
||||
size 2623247
|
19
python-pydata-sphinx-theme.changes
Normal file
19
python-pydata-sphinx-theme.changes
Normal file
@@ -0,0 +1,19 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 26 10:47:39 UTC 2021 - mcepl@cepl.eu
|
||||
|
||||
- Update to version 0.6.3:
|
||||
* 🚀 RLS: v0.6.3
|
||||
* Fix regression with 'None' inserted in html by google analytics script (#404)
|
||||
* 🚀 RLS: v0.6.2
|
||||
* 🐛 FIX: fix undefined sphinx var "meta" in jinja (#395)
|
||||
* CI: add build with pre-release versions of sphinx and jinja2 (#402)
|
||||
* Support new+old Google analytics (#387)
|
||||
* Raise exception if icon_links conf val is not a dict. (#392)
|
||||
* i18n: Translate theme text variable (#398)
|
||||
* i18n: Translate text in HTML (#397)
|
||||
* i18n: Translate aria-label (#396)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 26 10:29:15 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Initial package for pydata-sphinx-theme 0.6.3.
|
79
python-pydata-sphinx-theme.spec
Normal file
79
python-pydata-sphinx-theme.spec
Normal file
@@ -0,0 +1,79 @@
|
||||
#
|
||||
# spec file for package python-pydata-sphinx-theme
|
||||
#
|
||||
# Copyright (c) 2021 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/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%define skip_python36 1
|
||||
Name: python-pydata-sphinx-theme
|
||||
Version: 0.6.3
|
||||
Release: 0
|
||||
Summary: Bootstrap-based Sphinx theme from the PyData community
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/pydata/pydata-sphinx-theme
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pydata-sphinx-theme/pydata-sphinx-theme-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM fix_sidebar_tests.patch gh#pydata/pydata-sphinx-theme#437 mcepl@suse.com
|
||||
# Make tests compatible with Sphinx 4.1
|
||||
Patch0: fix_sidebar_tests.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module pytest-regressions}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-beautifulsoup4
|
||||
Requires: python-docutils < 0.17
|
||||
Requires: python-Sphinx
|
||||
Suggests: python-beautifulsoup4
|
||||
Suggests: python-codecov
|
||||
Suggests: python-docutils = 0.16
|
||||
Suggests: python-jupyter_sphinx
|
||||
Suggests: python-numpy
|
||||
Suggests: python-numpydoc
|
||||
Suggests: python-pandas
|
||||
Suggests: python-plotly
|
||||
Suggests: python-recommonmark
|
||||
Suggests: python-Sphinx
|
||||
Suggests: python-xarray
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module beautifulsoup4}
|
||||
BuildRequires: %{python_module docutils < 0.17}
|
||||
BuildRequires: %{python_module Sphinx}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
Bootstrap-based Sphinx theme from the PyData community
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n pydata-sphinx-theme-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%{python_sitelib}/pydata_sphinx_theme*
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user