1
0
Dominique Leuenberger 2023-04-08 15:39:05 +00:00 committed by Git OBS Bridge
commit 14437b97c9
3 changed files with 24 additions and 2 deletions

View File

@ -0,0 +1,14 @@
Index: sphinxcontrib-websupport-1.2.4/tests/test_searchadapters.py
===================================================================
--- sphinxcontrib-websupport-1.2.4.orig/tests/test_searchadapters.py
+++ sphinxcontrib-websupport-1.2.4/tests/test_searchadapters.py
@@ -9,7 +9,8 @@
:license: BSD, see LICENSE for details.
"""
-from six import StringIO
+from io import StringIO
+
import pytest
from sphinxcontrib.websupport import WebSupport

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Apr 6 07:11:53 UTC 2023 - pgajdos@suse.com
- do not require six
- added patches
fix https://github.com/sphinx-doc/sphinxcontrib-websupport/commit/a249f8f962bb4687b780482c6c5a1cc3dc60629f
+ python-sphinxcontrib-websupport-no-six.patch
-------------------------------------------------------------------
Thu Feb 16 18:15:05 UTC 2023 - Matej Cepl <mcepl@suse.com>

View File

@ -32,13 +32,14 @@ Summary: Sphinx API for Web Apps
License: BSD-2-Clause
URL: https://github.com/sphinx-doc/sphinxcontrib-websupport
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-websupport/sphinxcontrib-websupport-%{version}.tar.gz
# https://github.com/sphinx-doc/sphinxcontrib-websupport/commit/a249f8f962bb4687b780482c6c5a1cc3dc60629f
Patch0: python-sphinxcontrib-websupport-no-six.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Jinja2
Requires: python-docutils
Requires: python-six
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module Jinja2}
@ -47,7 +48,6 @@ BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module Whoosh}
BuildRequires: %{python_module docutils}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six}
BuildRequires: %{python_module sphinxcontrib-websupport >= %{version}}
%endif
%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24