1
0

Accepting request 1296857 from devel:languages:python:numeric

- Need to mention:
  * Drop numpydoc-pr523-py312deprecation.patch
  * Drop mockapp.patch
- update to 1.9.0
  * ignore some errors at module level (#593).
  * Rework hook output to remove the table (#611).
  * Switch to storing AST nodes on the stack for more accurate method signature check and easy access to parent nodes (#623).
  * MAINT: Changed class constructor init GL08 reporting (#592).
  * BUG: Correct functionality of numpydoc SS05 (#613).
  * Specity the types of numpydoc_xref_ignore option (#631).
  * DOC: Do not use types for *args, **kwargs (#585).
  * mention conda-forge in installation docs (#595).
  * Fix typo in validation.rst (#605).
  * Fix broken link in format.rst (#628).
  * CI: use hashes for actions' versions in publishing job (#579).
  * Bump the actions group with 2 updates (#581).
  * Bump pypa/gh-action-pypi-publish from 1.10.0 to 1.10.2 in the actions group (#582).
  * [pre-commit.ci] pre-commit autoupdate (#583).
  * MAINT: Add _exception_on_warning to MockApp (#586).
  * Bump the actions group across 1 directory with 2 updates (#590).
  * don't pass maxsplit as positional arg (#596).
  * [pre-commit.ci] pre-commit autoupdate (#598).
  * Add Python 3.13 support (#599).
  * Update readthedocs config (#600).
  * Bump the actions group with 2 updates (#603).
  * Bump the actions group with 3 updates (#609).
  * [pre-commit.ci] pre-commit autoupdate (#614).
  * Bump actions/download-artifact from 4.2.1 to 4.3.0 in the actions group (#620).
  * Bump scientific-python/circleci-artifacts-redirector-action from 1.0.0 to 1.1.0 in the actions group (#627).
  * Switch to dependency groups (#626).
  * Fix pip setup command in github workflow (#629).

OBS-URL: https://build.opensuse.org/request/show/1296857
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numpydoc?expand=0&rev=19
This commit is contained in:
2025-08-01 22:41:16 +00:00
committed by Git OBS Bridge
6 changed files with 43 additions and 57 deletions

View File

@@ -1,25 +0,0 @@
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():

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:022390ab7464a44f8737f79f8b31ce1d3cfa4b4af79ccaa1aac5e8368db587fb
size 90445

3
numpydoc-1.9.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5fec64908fe041acc4b3afc2a32c49aab1540cf581876f5563d68bb129e27c5b
size 91451

View File

@@ -1,22 +0,0 @@
From 543dbb1a19e372593197b6bbaa7f37d6bfd8bf8e Mon Sep 17 00:00:00 2001
From: Chiara Marmo <chiara.marmo@universite-paris-saclay.fr>
Date: Tue, 9 Jan 2024 11:48:24 +0100
Subject: [PATCH 1/3] Filter DeprecationWarning.
---
numpydoc/tests/test_validate.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/numpydoc/tests/test_validate.py b/numpydoc/tests/test_validate.py
index d41e4bd0..0671684b 100644
--- a/numpydoc/tests/test_validate.py
+++ b/numpydoc/tests/test_validate.py
@@ -1348,6 +1348,7 @@ def test_bad_generic_functions(self, capsys, func):
assert isinstance(errors, list)
assert errors
+ @pytest.mark.filterwarnings("ignore::DeprecationWarning")
@pytest.mark.parametrize(
"klass,func,msgs",
[

View File

@@ -1,3 +1,42 @@
-------------------------------------------------------------------
Thu Jul 31 18:06:59 UTC 2025 - Ben Greiner <code@bnavigator.de>
- Need to mention:
* Drop numpydoc-pr523-py312deprecation.patch
* Drop mockapp.patch
-------------------------------------------------------------------
Thu Jul 31 15:43:39 UTC 2025 - Felix Stegmeier <felix.stegmeier@suse.com>
- update to 1.9.0
* ignore some errors at module level (#593).
* Rework hook output to remove the table (#611).
* Switch to storing AST nodes on the stack for more accurate method signature check and easy access to parent nodes (#623).
* MAINT: Changed class constructor init GL08 reporting (#592).
* BUG: Correct functionality of numpydoc SS05 (#613).
* Specity the types of numpydoc_xref_ignore option (#631).
* DOC: Do not use types for *args, **kwargs (#585).
* mention conda-forge in installation docs (#595).
* Fix typo in validation.rst (#605).
* Fix broken link in format.rst (#628).
* CI: use hashes for actions' versions in publishing job (#579).
* Bump the actions group with 2 updates (#581).
* Bump pypa/gh-action-pypi-publish from 1.10.0 to 1.10.2 in the actions group (#582).
* [pre-commit.ci] pre-commit autoupdate (#583).
* MAINT: Add _exception_on_warning to MockApp (#586).
* Bump the actions group across 1 directory with 2 updates (#590).
* don't pass maxsplit as positional arg (#596).
* [pre-commit.ci] pre-commit autoupdate (#598).
* Add Python 3.13 support (#599).
* Update readthedocs config (#600).
* Bump the actions group with 2 updates (#603).
* Bump the actions group with 3 updates (#609).
* [pre-commit.ci] pre-commit autoupdate (#614).
* Bump actions/download-artifact from 4.2.1 to 4.3.0 in the actions group (#620).
* Bump scientific-python/circleci-artifacts-redirector-action from 1.0.0 to 1.1.0 in the actions group (#627).
* Switch to dependency groups (#626).
* Fix pip setup command in github workflow (#629).
-------------------------------------------------------------------
Thu Feb 27 12:20:40 UTC 2025 - ecsos <ecsos@opensuse.org>

View File

@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-numpydoc
Version: 1.8.0
Version: 1.9.0
Release: 0
Summary: Sphinx extension to support docstrings in Numpy format
License: BSD-3-Clause
@@ -27,22 +27,16 @@ URL: https://github.com/numpy/numpydoc
Source: https://files.pythonhosted.org/packages/source/n/numpydoc/numpydoc-%{version}.tar.gz
# https://docs.python.org/3/objects.inv (changes from time to time, accessed 2024-02-29)
Source1: python-objects.inv
# PATCH-FIX-UPSTREAM numpydoc-pr523-py312deprecation.patch gh#numpy/numpydoc#523
Patch0: numpydoc-pr523-py312deprecation.patch
# 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 wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires: python-Sphinx >= 5
Requires: python-tabulate >= 0.8.10
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest}