Add compatibility with sphinx 8.2+

This commit is contained in:
Karolina Surma
2025-03-27 12:17:58 +01:00
parent 3527d0a767
commit 1304200fd8
2 changed files with 27 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
From ef7204ccf6d2fbf5b465d30d74dd2245ff3e2f6b Mon Sep 17 00:00:00 2001
From: Karolina Surma <ksurma@redhat.com>
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
+3
View File
@@ -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