64 lines
1.6 KiB
RPMSpec
64 lines
1.6 KiB
RPMSpec
Name: python-numpydoc
|
|
Version: 1.5.0
|
|
Release: 2
|
|
Summary: Sphinx extension to support docstrings in NumPy format
|
|
|
|
License: BSD
|
|
URL: https://github.com/numpy/numpydoc
|
|
Source0: %{url}/archive/%{version}/numpydoc-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
Patch0: 0001-fix-AssertionError.patch
|
|
|
|
%description
|
|
Numpydoc inserts a hook into Sphinx's autodoc that converts docstrings
|
|
following the NumPy/SciPy format to a form palatable to Sphinx.
|
|
|
|
%package -n python3-numpydoc
|
|
Summary: %{summary}
|
|
Provides: python-numpydoc
|
|
|
|
# Base build requires
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-setuptools_scm
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-wheel
|
|
|
|
# for test
|
|
BuildRequires: python3-pytest
|
|
BuildRequires: python3-pytest-cov
|
|
BuildRequires: python3-jinja2
|
|
BuildRequires: python3-docutils
|
|
BuildRequires: python3-sphinx
|
|
BuildRequires: python3-jinja2
|
|
|
|
%description -n python3-numpydoc
|
|
Numpydoc inserts a hook into Sphinx's autodoc that converts docstrings
|
|
following the NumPy/SciPy format to a form palatable to Sphinx.
|
|
|
|
%prep
|
|
%autosetup -p1 -n numpydoc-%{version}
|
|
|
|
%build
|
|
%pyproject_build
|
|
|
|
%install
|
|
%pyproject_install
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files -n python3-numpydoc
|
|
%license LICENSE.txt
|
|
%doc README.rst
|
|
|
|
%{python3_sitelib}/numpydoc-*dist-info/
|
|
%{python3_sitelib}/numpydoc/
|
|
|
|
%changelog
|
|
* Thu Sep 14 2023 li-miaomiao_zhr <mmlidc@isoftstone.com> - 1.5.0-2
|
|
- Start self-test of software package
|
|
|
|
* Mon Jul 31 2023 mengzhaoa <mengzhaoa@isoftstone.com> - 1.5.0-1
|
|
- Init package python-numpydoc of version 1.5.0.
|