forked from pool/python-sphinxcontrib-autoprogram
Accepting request 1077836 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1077836 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sphinxcontrib-autoprogram?expand=0&rev=7
This commit is contained in:
37
python-sphinxcontrib-autoprogram-no-six.patch
Normal file
37
python-sphinxcontrib-autoprogram-no-six.patch
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
Index: autoprogram-0.1.8/sphinxcontrib/autoprogram.py
|
||||||
|
===================================================================
|
||||||
|
--- autoprogram-0.1.8.orig/sphinxcontrib/autoprogram.py
|
||||||
|
+++ autoprogram-0.1.8/sphinxcontrib/autoprogram.py
|
||||||
|
@@ -25,8 +25,8 @@ from docutils import nodes
|
||||||
|
from docutils.parsers.rst import Directive
|
||||||
|
from docutils.parsers.rst.directives import unchanged
|
||||||
|
from docutils.statemachine import StringList, ViewList
|
||||||
|
-from six import exec_
|
||||||
|
-from six.moves import builtins, reduce
|
||||||
|
+from functools import reduce
|
||||||
|
+import builtins
|
||||||
|
from sphinx.domains import std
|
||||||
|
from sphinx.util.nodes import nested_parse_with_titles
|
||||||
|
|
||||||
|
@@ -154,7 +153,7 @@ def import_object(import_name: str):
|
||||||
|
with open(f[0]) as fobj:
|
||||||
|
codestring = fobj.read()
|
||||||
|
foo = imp.new_module("foo")
|
||||||
|
- exec_(codestring, foo.__dict__)
|
||||||
|
+ exec(codestring, foo.__dict__)
|
||||||
|
|
||||||
|
sys.modules["foo"] = foo
|
||||||
|
mod = __import__("foo")
|
||||||
|
Index: autoprogram-0.1.8/setup.py
|
||||||
|
===================================================================
|
||||||
|
--- autoprogram-0.1.8.orig/setup.py
|
||||||
|
+++ autoprogram-0.1.8/setup.py
|
||||||
|
@@ -9,7 +6,7 @@ from setuptools import setup, find_packa
|
||||||
|
# Do not change the variable name. It's parsed by doc/conf.py script.
|
||||||
|
version = '0.1.8'
|
||||||
|
|
||||||
|
-requires = ['Sphinx >= 1.2', 'six']
|
||||||
|
+requires = ['Sphinx >= 1.2']
|
||||||
|
|
||||||
|
|
||||||
|
def readme():
|
@@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 6 09:42:32 UTC 2023 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- do not require python-six
|
||||||
|
- added patches
|
||||||
|
fix https://github.com/sphinx-contrib/autoprogram/issues/63
|
||||||
|
+ python-sphinxcontrib-autoprogram-no-six.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 20 10:40:25 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
Mon Feb 20 10:40:25 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
@@ -42,15 +42,15 @@ Source0: %{URL}/archive/%{version}/python-sphinxcontrib-%{short_name}-%{v
|
|||||||
Patch1: skip-failing-test.patch
|
Patch1: skip-failing-test.patch
|
||||||
# PATCH-FIX-UPSTREAM sphinx6.patch gh#sphinx-contrib/autoprogram#62
|
# PATCH-FIX-UPSTREAM sphinx6.patch gh#sphinx-contrib/autoprogram#62
|
||||||
Patch2: sphinx6.patch
|
Patch2: sphinx6.patch
|
||||||
|
# https://github.com/sphinx-contrib/autoprogram/issues/63
|
||||||
|
Patch3: python-sphinxcontrib-autoprogram-no-six.patch
|
||||||
BuildRequires: %{python_module Sphinx >= 1.2}
|
BuildRequires: %{python_module Sphinx >= 1.2}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-Sphinx >= 1.2
|
Requires: python-Sphinx >= 1.2
|
||||||
Requires: python-six
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if "%{flavor}" == "test"
|
%if "%{flavor}" == "test"
|
||||||
BuildRequires: %{python_module six}
|
|
||||||
BuildRequires: %{python_module sphinxcontrib-autoprogram == %{version}}
|
BuildRequires: %{python_module sphinxcontrib-autoprogram == %{version}}
|
||||||
BuildRequires: %{python_module sphinxcontrib-websupport >= 1.0.1}
|
BuildRequires: %{python_module sphinxcontrib-websupport >= 1.0.1}
|
||||||
%endif
|
%endif
|
||||||
@@ -73,7 +73,7 @@ it into a set of .. program:: and .. option:: directives.
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{short_name}-%{version} -p1
|
%autosetup -p1 -n %{short_name}-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if "%{flavor}" == ""
|
%if "%{flavor}" == ""
|
||||||
|
Reference in New Issue
Block a user