forked from pool/python-sphinxcontrib-autoprogram
Compare commits
22 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 20681503bc | |||
| fd66393fe4 | |||
| 3efa0fbe9f | |||
| eff30560ca | |||
| 8ede9c364b | |||
| 7ce8f099a9 | |||
| 09dba5c6bc | |||
| 282491c5d3 | |||
| 3c99140144 | |||
| 7b61fc4c26 | |||
| 9b9eedba32 | |||
| 47f0923249 | |||
| 57a10d48da | |||
| b994b90c27 | |||
| d7ab0bfc02 | |||
| 9a41a363ce | |||
| b82be669a6 | |||
| 1bfd5de9bc | |||
| c431094fbf | |||
|
|
d5a1227870 | ||
|
|
721f560e2b | ||
| ad12762b67 |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:c6c4e050ba4a6ae8cd8b1034fa1ab20371e3e2cc85ee23affd8bc4e6fe1c9255
|
|
||||||
size 18183
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
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,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 16 06:12:23 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to pyroject macros.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jul 1 08:10:31 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Mon Jul 1 08:10:31 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-sphinxcontrib-autoprogram
|
# spec file for package python-sphinxcontrib-autoprogram
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -39,7 +39,9 @@ Source0: %{URL}/archive/%{version}/python-sphinxcontrib-%{short_name}-%{v
|
|||||||
# Switch off failing tests by the environmental variable SKIPTESTS
|
# Switch off failing tests by the environmental variable SKIPTESTS
|
||||||
Patch1: skip-failing-test.patch
|
Patch1: skip-failing-test.patch
|
||||||
BuildRequires: %{python_module Sphinx >= 1.2}
|
BuildRequires: %{python_module Sphinx >= 1.2}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-Sphinx >= 1.2
|
Requires: python-Sphinx >= 1.2
|
||||||
@@ -71,7 +73,7 @@ it into a set of .. program:: and .. option:: directives.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%if "%{flavor}" == ""
|
%if "%{flavor}" == ""
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
%endif
|
%endif
|
||||||
%if "%{flavor}" == "doc"
|
%if "%{flavor}" == "doc"
|
||||||
sphinx-build -b html -d doc/_build/doctrees doc doc/_build/html
|
sphinx-build -b html -d doc/_build/doctrees doc doc/_build/html
|
||||||
@@ -80,7 +82,7 @@ rm doc/_build/html/objects.inv
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%if "%{flavor}" == ""
|
%if "%{flavor}" == ""
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@@ -94,8 +96,11 @@ export SKIPTESTS=1
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/sphinxcontrib
|
%dir %{python_sitelib}/sphinxcontrib
|
||||||
%{python_sitelib}/sphinxcontrib_autoprogram-%{version}*-info
|
%dir %{python_sitelib}/sphinxcontrib/__pycache__
|
||||||
|
%{python_sitelib}/sphinxcontrib/autoprogram.py
|
||||||
|
%pycache_only %{python_sitelib}/sphinxcontrib/__pycache__/autoprogram.*.pyc
|
||||||
|
%{python_sitelib}/sphinxcontrib_autoprogram-%{version}.dist-info
|
||||||
%{python_sitelib}/sphinxcontrib_autoprogram-%{version}*-nspkg.pth
|
%{python_sitelib}/sphinxcontrib_autoprogram-%{version}*-nspkg.pth
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,37 +0,0 @@
|
|||||||
From ca22060f8be35e2ba8009a50d3b0c4638219fe5d Mon Sep 17 00:00:00 2001
|
|
||||||
From: Daniel Garcia Moreno <daniel.garcia@suse.com>
|
|
||||||
Date: Mon, 6 Mar 2023 11:25:04 +0100
|
|
||||||
Subject: [PATCH] doc: Fix build with sphinx > 6.0
|
|
||||||
|
|
||||||
Fix https://github.com/sphinx-contrib/autoprogram/issues/61
|
|
||||||
---
|
|
||||||
doc/conf.py | 8 ++++----
|
|
||||||
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
Index: autoprogram-0.1.8/doc/conf.py
|
|
||||||
===================================================================
|
|
||||||
--- autoprogram-0.1.8.orig/doc/conf.py
|
|
||||||
+++ autoprogram-0.1.8/doc/conf.py
|
|
||||||
@@ -282,18 +282,18 @@ intersphinx_mapping = {
|
|
||||||
extlinks = {
|
|
||||||
'pull': (
|
|
||||||
'https://github.com/sphinx-contrib/autoprogram/pull/%s',
|
|
||||||
- '#'
|
|
||||||
+ '#%s'
|
|
||||||
),
|
|
||||||
'issue': (
|
|
||||||
'https://github.com/sphinx-contrib/autoprogram/issues/%s',
|
|
||||||
- '#'
|
|
||||||
+ '#%s'
|
|
||||||
),
|
|
||||||
'bbpull': (
|
|
||||||
'https://bitbucket.org/birkenfeld/sphinx-contrib/pull-request/%s/',
|
|
||||||
- 'Bitbucket PR #',
|
|
||||||
+ 'Bitbucket PR #%s',
|
|
||||||
),
|
|
||||||
'bbissue': (
|
|
||||||
'https://bitbucket.org/birkenfeld/sphinx-contrib/issue/%s/',
|
|
||||||
- 'Bitbucket issue #',
|
|
||||||
+ 'Bitbucket issue #%s',
|
|
||||||
),
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user