forked from pool/python-numpydoc
Accepting request 1153590 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 1.6.0 * Requires Python 3.8+ and Sphinx 5+. ## Closed issues * `numpydoc ignore` inline comment not recognized when using decorators #495 * Align pre-commit and Sphinx rule override syntax #466 * Use pyproject.toml #473 * circleci-artifacts-redirector-action error #469 * Incorporate a pre-commit hook for numpydoc validation #450 * PR06 fails when offending type name is used only as a substring #446 * style of [1] is strange in numpydoc docs #443 * Double click on function parameter selects parameter type as well #427 ## Merged pull requests * BUG: validator now handles properties #500 (sdiebolt) * Fix clean_backref for extensions that have backrefs to inline elements. #499 (mcmtroffaes) * BUG: validator now handles decorators #496 (sdiebolt) * TST: Test no-file for source #493 (larsoner) * Update pydata-sphinx-theme #490 (jarrodmillman) * Sync updates to generate_requirements.py from scikit-image #485 (mwtoews) * Generate requirements files from pyproject.toml #483 (mwtoews) * Add token for artifact redirector #470 (jarrodmillman) * Use rtd template (old method is deprecated) #468 (jarrodmillman) * Drop Python 3.7 #462 (jarrodmillman) * Require Sphinx 5+ #461 (jarrodmillman) * Pre-commit hook for running numpydoc validation #454 OBS-URL: https://build.opensuse.org/request/show/1153590 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpydoc?expand=0&rev=14
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:b0db7b75a32367a0e25c23b397842c65e344a1206524d16c8069f0a1c91b5f4c
|
|
||||||
size 71892
|
|
3
numpydoc-1.6.0.tar.gz
Normal file
3
numpydoc-1.6.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:ae7a5380f0a06373c3afe16ccd15bd79bc6b07f2704cbc6f1e7ecc94b4f5fc0d
|
||||||
|
size 85475
|
22
numpydoc-pr523-py312deprecation.patch
Normal file
22
numpydoc-pr523-py312deprecation.patch
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
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",
|
||||||
|
[
|
||||||
|
|
@@ -1,3 +1,41 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 29 19:29:26 UTC 2024 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Update to 1.6.0
|
||||||
|
* Requires Python 3.8+ and Sphinx 5+.
|
||||||
|
## Closed issues
|
||||||
|
* `numpydoc ignore` inline comment not recognized when using
|
||||||
|
decorators #495
|
||||||
|
* Align pre-commit and Sphinx rule override syntax #466
|
||||||
|
* Use pyproject.toml #473
|
||||||
|
* circleci-artifacts-redirector-action error #469
|
||||||
|
* Incorporate a pre-commit hook for numpydoc validation #450
|
||||||
|
* PR06 fails when offending type name is used only as a substring
|
||||||
|
#446
|
||||||
|
* style of [1] is strange in numpydoc docs #443
|
||||||
|
* Double click on function parameter selects parameter type as
|
||||||
|
well #427
|
||||||
|
## Merged pull requests
|
||||||
|
* BUG: validator now handles properties #500 (sdiebolt)
|
||||||
|
* Fix clean_backref for extensions that have backrefs to inline
|
||||||
|
elements. #499 (mcmtroffaes)
|
||||||
|
* BUG: validator now handles decorators #496 (sdiebolt)
|
||||||
|
* TST: Test no-file for source #493 (larsoner)
|
||||||
|
* Update pydata-sphinx-theme #490 (jarrodmillman)
|
||||||
|
* Sync updates to generate_requirements.py from scikit-image #485
|
||||||
|
(mwtoews)
|
||||||
|
* Generate requirements files from pyproject.toml #483 (mwtoews)
|
||||||
|
* Add token for artifact redirector #470 (jarrodmillman)
|
||||||
|
* Use rtd template (old method is deprecated) #468
|
||||||
|
(jarrodmillman)
|
||||||
|
* Drop Python 3.7 #462 (jarrodmillman)
|
||||||
|
* Require Sphinx 5+ #461 (jarrodmillman)
|
||||||
|
* Pre-commit hook for running numpydoc validation #454
|
||||||
|
(stefmolin)
|
||||||
|
* Change PR06 logic to only fail when type is used standalone
|
||||||
|
#447 (amoeba)
|
||||||
|
- Add numpydoc-pr523-py312deprecation.patch gh#numpy/numpydoc#523
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Oct 9 19:18:50 UTC 2022 - Arun Persaud <arun@gmx.de>
|
Sun Oct 9 19:18:50 UTC 2022 - Arun Persaud <arun@gmx.de>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-numpydoc
|
# spec file for package python-numpydoc
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,28 +16,38 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python3-%{**}}
|
|
||||||
Name: python-numpydoc
|
Name: python-numpydoc
|
||||||
Version: 1.5.0
|
Version: 1.6.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Sphinx extension to support docstrings in Numpy format
|
Summary: Sphinx extension to support docstrings in Numpy format
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/numpy/numpydoc
|
URL: https://github.com/numpy/numpydoc
|
||||||
Source: https://files.pythonhosted.org/packages/source/n/numpydoc/numpydoc-%{version}.tar.gz
|
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 2021-02-23)
|
# https://docs.python.org/3/objects.inv (changes from time to time, accessed 2024-02-29)
|
||||||
Source1: python-objects.inv
|
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}
|
BuildRequires: %{python_module Jinja2 >= 2.10}
|
||||||
BuildRequires: %{python_module Sphinx >= 4.2}
|
BuildRequires: %{python_module Sphinx >= 5}
|
||||||
BuildRequires: %{python_module base >= 3.7}
|
BuildRequires: %{python_module base >= 3.8}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
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: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
Requires: python-Jinja2 >= 2.10
|
Requires: python-Jinja2 >= 2.10
|
||||||
Requires: python-Sphinx >= 4.2
|
Requires: python-Sphinx >= 5
|
||||||
|
Requires: python-tabulate >= 0.8.10
|
||||||
|
Requires: (python-tomli if python-base < 3.11)
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: %{python_module matplotlib}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -47,29 +57,36 @@ are shipped in this numpydoc package, in case you want to make use
|
|||||||
of them in third-party projects.
|
of them in third-party projects.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n numpydoc-%{version}
|
%autosetup -p1 -n numpydoc-%{version}
|
||||||
# remove interpreter line. This script has no main section
|
# remove interpreter line. This script has no main section
|
||||||
sed -i '1 {/env python/ d}' numpydoc/validate.py
|
sed -i '1 {/env python/ d}' numpydoc/validate.py
|
||||||
# don't check coverage
|
# don't check coverage
|
||||||
sed -i 's/--cov.*$//' setup.cfg
|
sed -i 's/--cov[^ ]*//g' pyproject.toml
|
||||||
# provide the python doc inventory locally
|
# provide the python doc inventory locally
|
||||||
sed -i "\|https://docs.python.org/3| s|None|'%{SOURCE1}'|" numpydoc/tests/tinybuild/conf.py
|
sed -i "\|https://docs.python.org/3| s|None|'%{SOURCE1}'|" numpydoc/tests/tinybuild/conf.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/validate-docstrings
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
# ignore doc: gh#numpy/numpydoc#296
|
%pytest
|
||||||
%pytest --ignore doc/
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative validate-docstrings
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative validate-docstrings
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
|
%python_alternative %{_bindir}/validate-docstrings
|
||||||
%{python_sitelib}/numpydoc/
|
%{python_sitelib}/numpydoc/
|
||||||
%{python_sitelib}/numpydoc-%{version}-py*.egg-info
|
%{python_sitelib}/numpydoc-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:61f9e52900acb4a0b7254128c9f30b706b3048aa2380de5e7e3d80750019729d
|
oid sha256:3319119a5750071fe6990a2a8e4c649993b9ad1e22aa8fcd37226c9c8d7aeb09
|
||||||
size 109541
|
size 136102
|
||||||
|
Reference in New Issue
Block a user