[packages/python-apipkg] - updated to 2.1.0

qboosh qboosh at pld-linux.org
Tue Mar 15 22:48:40 CET 2022


commit c29f871519dbe13f0ac4ded6c3b0742e4bcc70c9
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Mar 15 22:50:41 2022 +0100

    - updated to 2.1.0

 python-apipkg.spec | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/python-apipkg.spec b/python-apipkg.spec
index 2201958..410a23b 100644
--- a/python-apipkg.spec
+++ b/python-apipkg.spec
@@ -7,13 +7,13 @@
 Summary:	Namespace control and lazy-import mechanism
 Summary(pl.UTF-8):	Kontrola przestrzeni nazw i mechanizm leniwego importu
 Name:		python-apipkg
-Version:	1.5
-Release:	3
+Version:	2.1.0
+Release:	1
 License:	MIT
 Group:		Libraries/Python
 #Source0Download: https://pypi.org/simple/apipkg/
 Source0:	https://files.pythonhosted.org/packages/source/a/apipkg/apipkg-%{version}.tar.gz
-# Source0-md5:	6d2bc4d9358e046cc56efc677c976a5c
+# Source0-md5:	831741a57e9fcb2b85c191a046916c8d
 URL:		http://bitbucket.org/hpk42/apipkg
 %if %{with python2}
 BuildRequires:	python-modules >= 1:2.7
@@ -65,6 +65,7 @@ przez użytkowników.
 %py_build
 
 %if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 PYTHONPATH=$(pwd)/src \
 %{__python} -m pytest
 %endif
@@ -74,6 +75,7 @@ PYTHONPATH=$(pwd)/src \
 %py3_build
 
 %if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 PYTHONPATH=$(pwd)/src \
 %{__python3} -m pytest
 %endif
@@ -86,10 +88,16 @@ rm -rf $RPM_BUILD_ROOT
 %py_install
 
 %py_postclean
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -pr example/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 %endif
 
 %if %{with python3}
 %py3_install
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-apipkg-%{version}
+cp -pr example/* $RPM_BUILD_ROOT%{_examplesdir}/python3-apipkg-%{version}
 %endif
 
 %clean
@@ -101,6 +109,7 @@ rm -rf $RPM_BUILD_ROOT
 %doc CHANGELOG LICENSE README.rst
 %{py_sitescriptdir}/apipkg
 %{py_sitescriptdir}/apipkg-%{version}-py*.egg-info
+%{_examplesdir}/%{name}-%{version}
 %endif
 
 %if %{with python3}
@@ -109,4 +118,5 @@ rm -rf $RPM_BUILD_ROOT
 %doc CHANGELOG LICENSE README.rst
 %{py3_sitescriptdir}/apipkg
 %{py3_sitescriptdir}/apipkg-%{version}-py*.egg-info
+%{_examplesdir}/python3-apipkg-%{version}
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-apipkg.git/commitdiff/c29f871519dbe13f0ac4ded6c3b0742e4bcc70c9



More information about the pld-cvs-commit mailing list