1
0
Files
python-numpydoc/python-numpydoc.spec

93 lines
3.1 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package 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
2024-03-01 18:07:17 +00:00
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-numpydoc
Version: 1.7.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
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
2024-03-01 18:07:17 +00:00
# https://docs.python.org/3/objects.inv (changes from time to time, accessed 2024-02-29)
Accepting request 874710 from home:bnavigator:branches:devel:languages:python:numeric - 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 <function mangle_docstrings at 0x7f64b5ba57b8> 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
2021-02-23 21:01:33 +00:00
Source1: python-objects.inv
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
2024-03-01 18:07:17 +00:00
# PATCH-FIX-UPSTREAM numpydoc-pr523-py312deprecation.patch gh#numpy/numpydoc#523
Patch0: numpydoc-pr523-py312deprecation.patch
BuildRequires: %{python_module Jinja2 >= 2.10}
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
2024-03-01 18:07:17 +00:00
BuildRequires: %{python_module Sphinx >= 5}
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
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
2024-03-01 18:07:17 +00:00
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
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
2024-03-01 18:07:17 +00:00
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires: python-Jinja2 >= 2.10
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
2024-03-01 18:07:17 +00:00
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}
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
2024-03-01 18:07:17 +00:00
BuildRequires: %{python_module matplotlib}
# /SECTION
%python_subpackages
%description
Numpy's documentation uses several custom extensions to Sphinx. These
are shipped in this numpydoc package, in case you want to make use
of them in third-party projects.
%prep
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
2024-03-01 18:07:17 +00:00
%autosetup -p1 -n numpydoc-%{version}
Accepting request 874710 from home:bnavigator:branches:devel:languages:python:numeric - 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 <function mangle_docstrings at 0x7f64b5ba57b8> 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
2021-02-23 21:01:33 +00:00
# remove interpreter line. This script has no main section
sed -i '1 {/env python/ d}' numpydoc/validate.py
# don't check coverage
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
2024-03-01 18:07:17 +00:00
sed -i 's/--cov[^ ]*//g' pyproject.toml
Accepting request 874710 from home:bnavigator:branches:devel:languages:python:numeric - 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 <function mangle_docstrings at 0x7f64b5ba57b8> 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
2021-02-23 21:01:33 +00:00
# provide the python doc inventory locally
sed -i "\|https://docs.python.org/3| s|None|'%{SOURCE1}'|" numpydoc/tests/tinybuild/conf.py
%build
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
2024-03-01 18:07:17 +00:00
%pyproject_wheel
%install
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
2024-03-01 18:07:17 +00:00
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/validate-docstrings
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
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
2024-03-01 18:07:17 +00:00
%pytest
%post
%python_install_alternative validate-docstrings
%postun
%python_uninstall_alternative validate-docstrings
%files %{python_files}
%license LICENSE.txt
%doc README.rst
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
2024-03-01 18:07:17 +00:00
%python_alternative %{_bindir}/validate-docstrings
%{python_sitelib}/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
2024-03-01 18:07:17 +00:00
%{python_sitelib}/numpydoc-%{version}.dist-info
%changelog