[packages/python-keyring] - package base tests infrastructure; release 2

qboosh qboosh at pld-linux.org
Thu Apr 20 22:25:01 CEST 2017


commit aa5ca4499714ca20129dc0b9106872bacebc7ae1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Apr 20 22:25:10 2017 +0200

    - package base tests infrastructure; release 2

 python-keyring.spec | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/python-keyring.spec b/python-keyring.spec
index 64a23c4..2aa45e0 100644
--- a/python-keyring.spec
+++ b/python-keyring.spec
@@ -10,7 +10,7 @@ Summary:	Python 2 library to access the system keyring service
 Summary(pl.UTF-8):	Biblioteka Pythona 2 do dostępu do systemowego pęku kluczy
 Name:		python-%{module}
 Version:	10.3.2
-Release:	1
+Release:	2
 License:	MIT, PSF
 Group:		Libraries/Python
 #Source0Download: https://pypi.python.org/simple/keyring
@@ -110,7 +110,8 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with python3}
 %py3_install
 
-%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/%{module}/tests
+# keep base tests classes (for e.g. python-keyrings.alt tests), remove just backends unit tests
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/keyring/tests/backends
 # "keyring" name is too generic, add -py[version] suffix
 %{__mv} $RPM_BUILD_ROOT%{_bindir}/keyring{,-py3}
 %endif
@@ -119,7 +120,9 @@ rm -rf $RPM_BUILD_ROOT
 %py_install
 
 %py_postclean
-%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/%{module}/tests
+
+# keep base tests classes (for e.g. python-keyrings.alt tests), remove just backends unit tests
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/keyring/tests/backends
 # "keyring" name is too generic, add -py[version] suffix
 %{__mv} $RPM_BUILD_ROOT%{_bindir}/keyring{,-py2}
 ln -sf keyring-py2 $RPM_BUILD_ROOT%{_bindir}/keyring-py
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-keyring.git/commitdiff/aa5ca4499714ca20129dc0b9106872bacebc7ae1



More information about the pld-cvs-commit mailing list