3 %bcond_without tests # unit tests
4 %bcond_without python2 # CPython 2.x module
5 %bcond_without python3 # CPython 3.x module
7 Summary: Sphinx extension to support docstrings in Numpy format
8 Summary(pl.UTF-8): Rozszerzenie Sphinksa do obsług docstringów w formacie Numpy
13 Group: Libraries/Python
14 #Source0Download: https://pypi.org/simple/numpydoc/
15 Source0: https://files.pythonhosted.org/packages/source/n/numpydoc/numpydoc-%{version}.tar.gz
16 # Source0-md5: 2f05c4592e007b7a1fa37ddcb7e0e91b
17 URL: https://pypi.org/project/numpydoc/
18 BuildRequires: python3-modules >= 1:3.5
19 BuildRequires: python3-setuptools
21 BuildRequires: python3-Sphinx >= 1.6.5
22 BuildRequires: python3-jinja2 >= 2.3
23 BuildRequires: python3-pluggy
24 BuildRequires: python3-py
25 BuildRequires: python3-pytest
27 BuildRequires: rpm-pythonprov
28 BuildRequires: rpmbuild(macros) >= 1.714
29 Requires: python3-modules >= 1:3.5
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 This package provides the numpydoc Sphinx extension for handling
35 docstrings formatted according to the NumPy documentation format. The
36 extension also adds the code description directives "np:function",
39 %description -l pl.UTF-8
40 Ten pakiet zawiera rozszerzenie Sphinksa do obsługi docstringów
41 sformatowanych zgodnie z formatem dokumentacji NumPy. Rozszerzenie
42 dodaje także dyrektywy opisu kodu "np:function", "np-c:function" itp.
45 %setup -q -n numpydoc-%{version}
51 %{__python3} -m pytest numpydoc/tests
55 rm -rf $RPM_BUILD_ROOT
59 %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/numpydoc/tests
62 rm -rf $RPM_BUILD_ROOT
66 %defattr(644,root,root,755)
67 %doc LICENSE.txt README.rst
68 %{py3_sitescriptdir}/numpydoc
69 %{py3_sitescriptdir}/numpydoc-%{version}-py*.egg-info