Sync from SUSE:SLFO:Main python-sphinx_rtd_theme revision 7b9834ffba799cff4544a6ff94e607ea

This commit is contained in:
Adrian Schröter 2024-12-13 12:25:38 +01:00
parent 75120f49fb
commit 4d0144fabe
4 changed files with 43 additions and 15 deletions

View File

@ -1,3 +1,30 @@
-------------------------------------------------------------------
Tue Jul 2 20:49:58 UTC 2024 - Dirk Müller <dmueller@suse.com>
- skip test_basic as it no longer works with sphinx 7.3
-------------------------------------------------------------------
Fri Dec 29 10:06:31 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 2.0.0:
* Fix #1522: fix 'str' object has no attribute 'attributes'
* Increment for next potential release
* Fix AttributeError when one of css_files is a string
* Add support for docutils==0.20.x
* Use css_tag helper to inject CSS files
-------------------------------------------------------------------
Tue Aug 29 21:32:58 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Clean up the SPEC file
-------------------------------------------------------------------
Mon Aug 28 12:00:48 UTC 2023 - Markéta Machová <mmachova@suse.com>
- Update to 1.3.0
* Load jQuery correctly when using latest sphinxcontrib-jquery release
* Relaxed requirements to include Sphinx release 7.0
-------------------------------------------------------------------
Fri May 5 14:19:59 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file
# spec file for package python-sphinx_rtd_theme
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,7 +16,6 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
@ -27,7 +26,7 @@
%endif
%{?sle15_python_module_pythons}
Name: python-sphinx_rtd_theme%{psuffix}
Version: 1.2.0
Version: 2.0.0
Release: 0
Summary: ReadTheDocs.org theme for Sphinx
License: Apache-2.0 AND MIT AND OFL-1.1
@ -39,14 +38,14 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Sphinx >= 1.6
Requires: python-docutils
Requires: python-sphinxcontrib-jquery >= 2.0.0
Requires: python-sphinxcontrib-jquery >= 4.0
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module Sphinx}
# as per https://github.com/readthedocs/sphinx_rtd_theme/pull/1336 no changes are needed for the new docutils to work
BuildRequires: %{python_module docutils}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module readthedocs-sphinx-ext}
BuildRequires: %{python_module sphinxcontrib-jquery >= 4.0}
%endif
%python_subpackages
@ -78,14 +77,16 @@ sed -i "/'build_py'/d" setup.py
%if %{with test}
%check
%pytest
# https://github.com/readthedocs/sphinx_rtd_theme/issues/1558
%pytest -k "not test_basic"
%endif
%if !%{with test}
%files %{python_files}
%license LICENSE OFL-License.txt Apache-License-2.0.txt
%doc README.rst
%{python_sitelib}/sphinx_rtd_theme*
%{python_sitelib}/sphinx_rtd_theme
%{python_sitelib}/sphinx_rtd_theme-%{version}*-info
%endif
%changelog

BIN
sphinx_rtd_theme-1.2.0.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
sphinx_rtd_theme-2.0.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.