[packages/python-pluggy] - updated to 0.13.1 - added apidocs

qboosh qboosh at pld-linux.org
Sat Jan 18 22:22:42 CET 2020


commit 54f89123679c96ef26266899b94be872b3332d99
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jan 18 22:22:46 2020 +0100

    - updated to 0.13.1
    - added apidocs

 python-pluggy.spec | 41 +++++++++++++++++++++++++++++++++++++----
 1 file changed, 37 insertions(+), 4 deletions(-)
---
diff --git a/python-pluggy.spec b/python-pluggy.spec
index d4027c2..74a7e47 100644
--- a/python-pluggy.spec
+++ b/python-pluggy.spec
@@ -1,6 +1,7 @@
 #
 # Conditional build:
-%bcond_without	tests	# do not perform "make test"
+%bcond_without	doc	# Sphinx documentation
+%bcond_without	tests	# unit tests
 %bcond_without	python2 # CPython 2.x module
 %bcond_without	python3 # CPython 3.x module
 
@@ -8,30 +9,39 @@
 Summary:	Plugin and hook calling mechanisms for Python
 Summary(pl.UTF-8):	Mechanizmy wtyczek dla Pythona
 Name:		python-%{module}
-Version:	0.8.0
-Release:	2
+Version:	0.13.1
+Release:	1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/pluggy/
 Source0:	https://files.pythonhosted.org/packages/source/p/pluggy/pluggy-%{version}.tar.gz
-# Source0-md5:	12ddd25322d909a286c4018d18fddc79
+# Source0-md5:	7f610e28b8b34487336b585a3dfb803d
 URL:		https://pypi.org/project/pluggy/
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
 %if %{with python2}
 BuildRequires:	python-modules >= 1:2.7
 BuildRequires:	python-setuptools
+BuildRequires:	python-setuptools_scm
 %if %{with tests}
+BuildRequires:	python-importlib_metadata >= 0.12
 BuildRequires:	python-pytest >= 3.7.0
 %endif
 %endif
 %if %{with python3}
 BuildRequires:	python3-modules >= 1:3.4
 BuildRequires:	python3-setuptools
+BuildRequires:	python3-setuptools_scm
 %if %{with tests}
+%if "%{py3_ver}" < "3.8"
+BuildRequires:	python3-importlib_metadata >= 0.12
+%endif
 BuildRequires:	python3-pytest >= 3.7.0
 %endif
 %endif
+%if %{with doc}
+BuildRequires:	sphinx-pdg
+%endif
 Requires:	python-modules >= 1:2.7
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -58,6 +68,17 @@ details.
 Zarządca wtyczek tak jak używany przez pytest, ale pozbawiony detali
 specyficznych dla pytest.
 
+%package apidocs
+Summary:	API documentation for Python pluggy module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona pluggy
+Group:		Documentation
+
+%description apidocs
+API documentation for Python pluggy module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona pluggy.
+
 %prep
 %setup -q -n %{module}-%{version}
 
@@ -66,6 +87,7 @@ specyficznych dla pytest.
 %py_build
 
 %if %{with tests}
+PYTHONPATH=$(pwd)/src \
 %{__python} -m pytest testing
 %endif
 %endif
@@ -74,10 +96,15 @@ specyficznych dla pytest.
 %py3_build
 
 %if %{with tests}
+PYTHONPATH=$(pwd)/src \
 %{__python3} -m pytest testing
 %endif
 %endif
 
+%if %{with doc}
+sphinx-build -b html docs docs/_build/html
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 
@@ -109,3 +136,9 @@ rm -rf $RPM_BUILD_ROOT
 %{py3_sitescriptdir}/pluggy
 %{py3_sitescriptdir}/pluggy-%{version}-py*.egg-info
 %endif
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_modules,_static,*.html,*.js}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pluggy.git/commitdiff/54f89123679c96ef26266899b94be872b3332d99



More information about the pld-cvs-commit mailing list