From 1304200fd8eb101c4772b911d75e15ee35d04164 Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Thu, 27 Mar 2025 12:02:05 +0100 Subject: [PATCH] Add compatibility with sphinx 8.2+ --- Add-compatibility-with-sphinx-8.patch | 24 ++++++++++++++++++++++++ python-numpydoc.spec | 3 +++ 2 files changed, 27 insertions(+) create mode 100644 Add-compatibility-with-sphinx-8.patch diff --git a/Add-compatibility-with-sphinx-8.patch b/Add-compatibility-with-sphinx-8.patch new file mode 100644 index 0000000..567d8e9 --- /dev/null +++ b/Add-compatibility-with-sphinx-8.patch @@ -0,0 +1,24 @@ +From ef7204ccf6d2fbf5b465d30d74dd2245ff3e2f6b Mon Sep 17 00:00:00 2001 +From: Karolina Surma +Date: Thu, 27 Mar 2025 11:56:04 +0100 +Subject: [PATCH] Add compatibility with sphinx 8.2+ + +--- + numpydoc/tests/test_numpydoc.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/numpydoc/tests/test_numpydoc.py b/numpydoc/tests/test_numpydoc.py +index 1bd71ed..ecb92e2 100644 +--- a/numpydoc/tests/test_numpydoc.py ++++ b/numpydoc/tests/test_numpydoc.py +@@ -36,6 +36,7 @@ class MockConfig: + + class MockBuilder: + config = MockConfig() ++ _translator = None + + + class MockApp: +-- +2.48.1 + diff --git a/python-numpydoc.spec b/python-numpydoc.spec index e45b9d3..014d24b 100644 --- a/python-numpydoc.spec +++ b/python-numpydoc.spec @@ -9,6 +9,9 @@ Source: %pypi_source numpydoc # Compatibility with sphinx 8 Patch: https://github.com/numpy/numpydoc/commit/1338660.patch +# Upstream's already fixed it, but the fix is mixed with other changes that +# don't apply cleanly: https://github.com/numpy/numpydoc/pull/611 +Patch: Add-compatibility-with-sphinx-8.patch BuildArch: noarch