diff --git a/python-sphinxcontrib-apidoc.changes b/python-sphinxcontrib-apidoc.changes index 9848caf..0b24793 100644 --- a/python-sphinxcontrib-apidoc.changes +++ b/python-sphinxcontrib-apidoc.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Apr 24 12:42:27 UTC 2025 - Daniel Garcia + +- 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 diff --git a/python-sphinxcontrib-apidoc.spec b/python-sphinxcontrib-apidoc.spec index 874c095..0fdbfd5 100644 --- a/python-sphinxcontrib-apidoc.spec +++ b/python-sphinxcontrib-apidoc.spec @@ -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 diff --git a/sphinx-82.patch b/sphinx-82.patch new file mode 100644 index 0000000..3d6fb8c --- /dev/null +++ b/sphinx-82.patch @@ -0,0 +1,23 @@ +From d9440398976ad305697527fb5e27d8c3b5869fb7 Mon Sep 17 00:00:00 2001 +From: Karolina Surma +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])