From 206484570f15efbacddbd49a4a1a41c3c0bb18a4e65e1a1ea1d0b8a7e4fd61ec Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 23 Feb 2021 21:01:33 +0000 Subject: [PATCH] Accepting request 874710 from home:bnavigator:branches:devel:languages:python:numeric MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update to 1.1.0 Implemented enhancements * MAINT: Suggestions from reviewing test suite #271 (rossbar) * DEV: Add testing requirements #267 (rossbar) * BUG: Defer to autodoc for signatures #221 (thequackdaddy) Fixed bugs * function signatures for *args, **kwargs objects off #218 * BUG: Connect to earlier event #269 (larsoner) Closed issues * “Handler for event ‘autodoc-process-docstring’ threw an exception” #268 * Timing of next release #249 * self included in list of params for method #220 * Additional notes * Due to merging of #221, self and cls no longer will appear in method signatures. - Release 1.0.0 Implemented enhancements * ENH: Add args and kwargs to example #258 (larsoner) * MAINT,STY: Upgrade to bionic, and change style similar to NumPy #253 (mwtoews) * Delay import of Sphinx #248 (cgohlke) * Adding –validate option __main__ and run new validation #240 (datapythonista) * Add docstring validation script (from pandas) #238 (datapythonista) * ENH: Test full output and coverage #230 (larsoner) * DOC: Add description for blank lines after the docstring. #229 (bingyao) Fixed bugs * References outside function #214 * FIX: Get doc of actual class in test #262 (larsoner) * TST: Add inherited method #260 (larsoner) * Fixes references outside function (#214) #259 (Hoxbro) * Disable escaping “*” on signature #256 (tk0miya) * MAINT: clean-up unused objects #254 (mwtoews) * STY: Reword first lines of example.py docstrings #246 (justinludwig) * DOC: Fixed three formatting issues in docs #245 (rossbar) * STY Minor style improvements to doc/example.py to pass validation #243 (rth) * BUG: Allow no . at end if indented #239 (larsoner) * DOC: Update links and code checkers info in format.rst #228 (bingyao) * DOC: Update links and info in conf.py. #227 (bingyao) * BUG: Fix full rebuilds #226 (larsoner) * MAINT: doctest and pytest #225 (larsoner) * Py3fy some doctests. #224 (anntzer) * MAINT: fix trivial source comment typos #222 (luzpaz) * Add missing headings to code examples #252 (Cadair) Removed * MNT Drop Python 2.7 and 3.4 support #236 (rth) Closed issues * Prefix added to reference keys in class docstrings #263 * Test failure with python 3.9 #261 * sphinx doc napoleon extension maintainer interest request #251 * Missing reference to float_power function in the ufunc list #250 Additional notes * CSS styling changed from NumpyDoc < 0.8 and Sphinx < 2.0 to more properly make use of definition lists. This can cause issues with rendering that can be fixed via CSS, especially when using sphinx-rtd-theme. - Add python-objects.inv to provide the inventory locally for tests - Don't install matplotlib for tests * it is not available for python 3.6 * it is not used in tests because the doc directory is skipped in all cases OBS-URL: https://build.opensuse.org/request/show/874710 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpydoc?expand=0&rev=8 --- .gitattributes | 2 ++ numpydoc-0.9.2.tar.gz | 3 -- numpydoc-1.1.0.tar.gz | 3 ++ python-numpydoc.changes | 72 +++++++++++++++++++++++++++++++++++++++++ python-numpydoc.spec | 20 +++++++++--- python-objects.inv | 3 ++ 6 files changed, 95 insertions(+), 8 deletions(-) delete mode 100644 numpydoc-0.9.2.tar.gz create mode 100644 numpydoc-1.1.0.tar.gz create mode 100644 python-objects.inv diff --git a/.gitattributes b/.gitattributes index 9b03811..44014c4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -21,3 +21,5 @@ *.xz filter=lfs diff=lfs merge=lfs -text *.zip filter=lfs diff=lfs merge=lfs -text *.zst filter=lfs diff=lfs merge=lfs -text +## Specific LFS patterns +python-objects.inv filter=lfs diff=lfs merge=lfs -text diff --git a/numpydoc-0.9.2.tar.gz b/numpydoc-0.9.2.tar.gz deleted file mode 100644 index 21f6069..0000000 --- a/numpydoc-0.9.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9140669e6b915f42c6ce7fef704483ba9b0aaa9ac8e425ea89c76fe40478f642 -size 27555 diff --git a/numpydoc-1.1.0.tar.gz b/numpydoc-1.1.0.tar.gz new file mode 100644 index 0000000..ecf4a8b --- /dev/null +++ b/numpydoc-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c36fd6cb7ffdc9b4e165a43f67bf6271a7b024d0bb6b00ac468c9e2bfc76448e +size 609482 diff --git a/python-numpydoc.changes b/python-numpydoc.changes index 750d496..13d21ce 100644 --- a/python-numpydoc.changes +++ b/python-numpydoc.changes @@ -1,3 +1,75 @@ +------------------------------------------------------------------- +Tue Feb 23 20:31:36 UTC 2021 - Ben Greiner + +- Update to 1.1.0 + Implemented enhancements + * MAINT: Suggestions from reviewing test suite #271 (rossbar) + * DEV: Add testing requirements #267 (rossbar) + * BUG: Defer to autodoc for signatures #221 (thequackdaddy) + Fixed bugs + * function signatures for *args, **kwargs objects off #218 + * BUG: Connect to earlier event #269 (larsoner) + Closed issues + * “Handler for + event ‘autodoc-process-docstring’ threw an exception” #268 + * Timing of next release #249 + * self included in list of params for method #220 + * Additional notes + * Due to merging of #221, self and cls no longer will appear in method signatures. +- Release 1.0.0 + Implemented enhancements + * ENH: Add args and kwargs to example #258 (larsoner) + * MAINT,STY: Upgrade to bionic, and change style similar to + NumPy #253 (mwtoews) + * Delay import of Sphinx #248 (cgohlke) + * Adding –validate option __main__ and run new validation #240 + (datapythonista) + * Add docstring validation script (from pandas) #238 + (datapythonista) + * ENH: Test full output and coverage #230 (larsoner) + * DOC: Add description for blank lines after the docstring. #229 + (bingyao) + Fixed bugs + * References outside function #214 + * FIX: Get doc of actual class in test #262 (larsoner) + * TST: Add inherited method #260 (larsoner) + * Fixes references outside function (#214) #259 (Hoxbro) + * Disable escaping “*” on signature #256 (tk0miya) + * MAINT: clean-up unused objects #254 (mwtoews) + * STY: Reword first lines of example.py docstrings #246 + (justinludwig) + * DOC: Fixed three formatting issues in docs #245 (rossbar) + * STY Minor style improvements to doc/example.py to pass + validation #243 (rth) + * BUG: Allow no . at end if indented #239 (larsoner) + * DOC: Update links and code checkers info in format.rst #228 + (bingyao) + * DOC: Update links and info in conf.py. #227 (bingyao) + * BUG: Fix full rebuilds #226 (larsoner) + * MAINT: doctest and pytest #225 (larsoner) + * Py3fy some doctests. #224 (anntzer) + * MAINT: fix trivial source comment typos #222 (luzpaz) + * Add missing headings to code examples #252 (Cadair) + Removed + * MNT Drop Python 2.7 and 3.4 support #236 (rth) + Closed issues + * Prefix added to reference keys in class docstrings #263 + * Test failure with python 3.9 #261 + * sphinx doc napoleon extension maintainer interest request #251 + * Missing reference to float_power function in the ufunc list + #250 + Additional notes + * CSS styling changed from NumpyDoc < 0.8 and Sphinx < 2.0 to + more properly make use of definition lists. This can cause + issues with rendering that can be fixed via CSS, especially + when using sphinx-rtd-theme. +- Add python-objects.inv to provide the inventory locally for + tests +- Don't install matplotlib for tests + * it is not available for python 3.6 + * it is not used in tests because the doc directory is skipped + in all cases + ------------------------------------------------------------------- Sat Jan 11 18:28:01 UTC 2020 - Arun Persaud diff --git a/python-numpydoc.spec b/python-numpydoc.spec index 872b120..522dc7f 100644 --- a/python-numpydoc.spec +++ b/python-numpydoc.spec @@ -1,7 +1,7 @@ # # spec file for package python-numpydoc # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,17 +16,20 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?!python_module:%define python_module() python3-%{**}} +%define skip_python2 1 Name: python-numpydoc -Version: 0.9.2 +Version: 1.1.0 Release: 0 Summary: Sphinx extension to support docstrings in Numpy format License: BSD-3-Clause Group: Development/Languages/Python 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 2021-02-23) +Source1: python-objects.inv +BuildRequires: %{python_module Jinja2 >= 2.3} BuildRequires: %{python_module Sphinx >= 1.6.} -BuildRequires: %{python_module matplotlib} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -45,6 +48,12 @@ of them in third-party projects. %prep %setup -q -n numpydoc-%{version} +# remove interpreter line. This script has no main section +sed -i '1 {/env python/ d}' numpydoc/validate.py +# don't check coverage +sed -i 's/--cov.*$//' setup.cfg +# provide the python doc inventory locally +sed -i "\|https://docs.python.org/3| s|None|'%SOURCE1'|" numpydoc/tests/tinybuild/conf.py %build %python_build @@ -54,7 +63,8 @@ of them in third-party projects. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%pytest +# ignore doc: gh#numpy/numpydoc#296 +%pytest --ignore doc/ %files %{python_files} %license LICENSE.txt diff --git a/python-objects.inv b/python-objects.inv new file mode 100644 index 0000000..87d0127 --- /dev/null +++ b/python-objects.inv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:61f9e52900acb4a0b7254128c9f30b706b3048aa2380de5e7e3d80750019729d +size 109541