forked from pool/python-numpydoc
Accepting request 1243127 from home:mcalabkova:branches:devel:languages:python:numeric
- Add mockapp.patch to fix test failure with Sphinx 8.1 - Trim dependencies OBS-URL: https://build.opensuse.org/request/show/1243127 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpydoc?expand=0&rev=20
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 4 13:30:11 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Add mockapp.patch to fix test failure with Sphinx 8.1
|
||||
- Trim dependencies
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 20 16:21:18 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-numpydoc
|
||||
#
|
||||
# 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
|
||||
@@ -28,22 +28,20 @@ Source: https://files.pythonhosted.org/packages/source/n/numpydoc/numpyd
|
||||
Source1: python-objects.inv
|
||||
# PATCH-FIX-UPSTREAM numpydoc-pr523-py312deprecation.patch gh#numpy/numpydoc#523
|
||||
Patch0: numpydoc-pr523-py312deprecation.patch
|
||||
BuildRequires: %{python_module Jinja2 >= 2.10}
|
||||
# PATCH-FIX-UPSTREAM https://github.com/numpy/numpydoc/pull/586 MAINT: Add _exception_on_warning to MockApp
|
||||
Patch1: mockapp.patch
|
||||
BuildRequires: %{python_module Sphinx >= 5}
|
||||
BuildRequires: %{python_module base >= 3.8}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module tabulate >= 0.8.10}
|
||||
BuildRequires: %{python_module tomli >= 1.1.0 if %python-base < 3.11}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Requires: python-Jinja2 >= 2.10
|
||||
Requires: python-Sphinx >= 5
|
||||
Requires: python-tabulate >= 0.8.10
|
||||
Requires: (python-tomli if python-base < 3.11)
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module pytest}
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
From 1338660931330bfd881c2c5792ac7ac1ee3dab96 Mon Sep 17 00:00:00 2001
|
||||
From: Ross Barnowski <rossbar@caltech.edu>
|
||||
Date: Thu, 17 Oct 2024 07:21:24 -0700
|
||||
Subject: [PATCH] MAINT: Add _exception_on_warning to MockApp (#586)
|
||||
|
||||
MockApp in test suite is now breaking due to the absence
|
||||
of a private _exception_on_warning attribute.
|
||||
|
||||
Fix by explicitly adding to the MockApp.
|
||||
---
|
||||
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 f46e2565..997cb0a5 100644
|
||||
--- a/numpydoc/tests/test_numpydoc.py
|
||||
+++ b/numpydoc/tests/test_numpydoc.py
|
||||
@@ -49,6 +49,7 @@ def __init__(self):
|
||||
self.verbosity = 2
|
||||
self._warncount = 0
|
||||
self.warningiserror = False
|
||||
+ self._exception_on_warning = False
|
||||
|
||||
|
||||
def test_mangle_docstrings_basic():
|
||||
Reference in New Issue
Block a user