1
0
Files
python-numpydoc/python-numpydoc.spec
Benjamin Greiner f7c5d27872 - 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/package/show/devel:languages:python:numeric/python-numpydoc?expand=0&rev=24
2025-07-31 18:02:33 +00:00

86 lines
2.7 KiB
RPMSpec

#
# spec file for package python-numpydoc
#
# 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
# 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/
#
%{?sle15_python_module_pythons}
Name: python-numpydoc
Version: 1.9.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 2024-02-29)
Source1: python-objects.inv
BuildRequires: %{python_module Sphinx >= 5}
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires: python-Sphinx >= 5
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest}
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
%autosetup -p1 -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[^ ]*//g' pyproject.toml
# provide the python doc inventory locally
sed -i "\|https://docs.python.org/3| s|None|'%{SOURCE1}'|" numpydoc/tests/tinybuild/conf.py
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/numpydoc
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%post
%python_install_alternative numpydoc
%postun
%python_uninstall_alternative numpydoc
%files %{python_files}
%license LICENSE.txt
%doc README.rst
%python_alternative %{_bindir}/numpydoc
%{python_sitelib}/numpydoc/
%{python_sitelib}/numpydoc-%{version}.dist-info
%changelog