[packages/python3-numpydoc] - updated to 1.5.0
qboosh
qboosh at pld-linux.org
Mon Jan 2 06:33:04 CET 2023
commit f28d8f5a753614df55aabb79517f66a90f0048e8
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jan 2 06:34:00 2023 +0100
- updated to 1.5.0
python3-numpydoc.spec | 26 +++++++++++++++++---------
1 file changed, 17 insertions(+), 9 deletions(-)
---
diff --git a/python3-numpydoc.spec b/python3-numpydoc.spec
index e5aa941..aadf44d 100644
--- a/python3-numpydoc.spec
+++ b/python3-numpydoc.spec
@@ -1,5 +1,6 @@
#
# Conditional build:
+%bcond_with doc # Sphinx documentation (TODO)
%bcond_without tests # unit tests
%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
@@ -7,26 +8,31 @@
Summary: Sphinx extension to support docstrings in Numpy format
Summary(pl.UTF-8): Rozszerzenie Sphinksa do obsług docstringów w formacie Numpy
Name: python3-numpydoc
-Version: 1.1.0
-Release: 3
+Version: 1.5.0
+Release: 1
License: BSD
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/numpydoc/
Source0: https://files.pythonhosted.org/packages/source/n/numpydoc/numpydoc-%{version}.tar.gz
-# Source0-md5: 2f05c4592e007b7a1fa37ddcb7e0e91b
+# Source0-md5: ec7dc7d9ac9e83ac3fd8722aca25bc5c
URL: https://pypi.org/project/numpydoc/
-BuildRequires: python3-modules >= 1:3.5
+BuildRequires: python3-modules >= 1:3.7
BuildRequires: python3-setuptools
%if %{with tests}
-BuildRequires: python3-Sphinx >= 1.6.5
-BuildRequires: python3-jinja2 >= 2.3
-BuildRequires: python3-pluggy
-BuildRequires: python3-py
+BuildRequires: python3-Sphinx >= 4.2
+BuildRequires: python3-jinja2 >= 2.10
BuildRequires: python3-pytest
+BuildRequires: python3-pytest-cov
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python3-modules >= 1:3.5
+%if %{with doc}
+BuildRequires: python3-matplotlib >= 3.5
+BuildRequires: python3-numpy >= 1.21
+BuildRequires: python3-pydata-sphinx-theme >= 0.11
+BuildRequires: sphinx-pdg-3 >= 5.2
+%endif
+Requires: python3-modules >= 1:3.7
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -48,6 +54,8 @@ dodaje także dyrektywy opisu kodu "np:function", "np-c:function" itp.
%py3_build
%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS="pytest_cov.plugin" \
%{__python3} -m pytest numpydoc/tests
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-numpydoc.git/commitdiff/f28d8f5a753614df55aabb79517f66a90f0048e8
More information about the pld-cvs-commit
mailing list