From ccd8b1a1a51818e5ce7cfffff3f29646565eef97cf79c58b4c24c3cf039c4625 Mon Sep 17 00:00:00 2001 From: Benjamin Greiner Date: Mon, 17 Oct 2022 10:53:39 +0000 Subject: [PATCH] Accepting request 1012033 from home:pgajdos:python - added patches fix https://github.com/benji-york/manuel/issues/33 + python-manuel-no-six.patch OBS-URL: https://build.opensuse.org/request/show/1012033 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-manuel?expand=0&rev=21 --- python-manuel-no-six.patch | 20 ++++++++++++++++++++ python-manuel.changes | 7 +++++++ python-manuel.spec | 6 +++--- 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 python-manuel-no-six.patch diff --git a/python-manuel-no-six.patch b/python-manuel-no-six.patch new file mode 100644 index 0000000..3549c47 --- /dev/null +++ b/python-manuel-no-six.patch @@ -0,0 +1,20 @@ +Index: manuel-1.12.4/src/manuel/doctest.py +=================================================================== +--- manuel-1.12.4.orig/src/manuel/doctest.py ++++ manuel-1.12.4/src/manuel/doctest.py +@@ -3,13 +3,13 @@ from __future__ import absolute_import + import doctest + import manuel + import os.path +-import six ++import io + + DocTestRunner = doctest.DocTestRunner + DebugRunner = doctest.DebugRunner + + +-class DocTestResult(six.StringIO): ++class DocTestResult(io.StringIO): + pass + + diff --git a/python-manuel.changes b/python-manuel.changes index 6dd497c..aafb905 100644 --- a/python-manuel.changes +++ b/python-manuel.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Oct 17 09:00:30 UTC 2022 - pgajdos@suse.com + +- added patches + fix https://github.com/benji-york/manuel/issues/33 + + python-manuel-no-six.patch + ------------------------------------------------------------------- Thu Sep 29 15:48:56 UTC 2022 - Yogalakshmi Arunachalam diff --git a/python-manuel.spec b/python-manuel.spec index 7b72d64..81fa6f7 100644 --- a/python-manuel.spec +++ b/python-manuel.spec @@ -27,12 +27,12 @@ URL: https://pypi.org/project/manuel/ Source: https://files.pythonhosted.org/packages/source/m/manuel/manuel-%{version}.tar.gz # add fixed sphinx config Source1: conf.py +# https://github.com/benji-york/manuel/issues/33 +Patch0: python-manuel-no-six.patch BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module six} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-six BuildArch: noarch # SECTION Documentation requirements: BuildRequires: python3-Sphinx @@ -55,7 +55,7 @@ Summary: Build tested documentation This package contains documentation files for %{name}. %prep -%setup -q -n manuel-%{version} +%autosetup -p1 -n manuel-%{version} cp %{SOURCE1} . %build