Compare commits

...

1 Commits
1.1 ... main

3 changed files with 33 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 24 12:42:27 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
- Add upstream patch sphinx-82.patch to support Sphinx >= 8.2
gh#sphinx-contrib/apidoc#23
-------------------------------------------------------------------
Sun Jan 21 10:54:27 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file
# spec file for package python-sphinxcontrib-apidoc
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -34,6 +34,8 @@ License: BSD-2-Clause
Group: Development/Languages/Python
URL: http://www.sphinx-doc.org/
Source: https://files.pythonhosted.org/packages/source/s/sphinxcontrib-apidoc/sphinxcontrib-apidoc-%{version}.tar.gz
# PATCH-FIX-UPSTREAM sphinx-82.patch gh#sphinx-contrib/apidoc#23
Patch0: sphinx-82.patch
BuildRequires: %{python_module pbr >= 4.0}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes

23
sphinx-82.patch Normal file
View File

@ -0,0 +1,23 @@
From d9440398976ad305697527fb5e27d8c3b5869fb7 Mon Sep 17 00:00:00 2001
From: Karolina Surma <ksurma@redhat.com>
Date: Thu, 3 Apr 2025 13:52:07 +0200
Subject: [PATCH] Annotate the list of strings correctly for Sphinx 8.2+
This also works with an older Sphinx, tested on 8.1.3.
---
sphinxcontrib/apidoc/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: sphinxcontrib-apidoc-0.5.0/sphinxcontrib/apidoc/__init__.py
===================================================================
--- sphinxcontrib-apidoc-0.5.0.orig/sphinxcontrib/apidoc/__init__.py
+++ sphinxcontrib-apidoc-0.5.0/sphinxcontrib/apidoc/__init__.py
@@ -24,7 +24,7 @@ def setup(app: Sphinx) -> Dict[str, Any]
app.add_config_value('apidoc_module_dir', None, 'env', [str])
app.add_config_value('apidoc_output_dir', 'api', 'env', [str])
app.add_config_value('apidoc_template_dir', 'templates', 'env', [str])
- app.add_config_value('apidoc_excluded_paths', [], 'env', [[str]])
+ app.add_config_value('apidoc_excluded_paths', [], 'env', list[str])
app.add_config_value('apidoc_separate_modules', False, 'env', [bool])
app.add_config_value('apidoc_toc_file', None, 'env', [str, bool])
app.add_config_value('apidoc_module_first', False, 'env', [bool])