[packages/python-josepy] - don't package tests

qboosh qboosh at pld-linux.org
Wed Jan 25 16:10:13 CET 2023


commit c79d556deb561be5de133bbc6fffd46e10e5e8dd
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Jan 25 16:10:59 2023 +0100

    - don't package tests

 python-josepy.spec | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/python-josepy.spec b/python-josepy.spec
index ec4510f..081a2dd 100644
--- a/python-josepy.spec
+++ b/python-josepy.spec
@@ -81,6 +81,9 @@ rm -rf $RPM_BUILD_ROOT
 %py_postclean
 
 %{__mv} $RPM_BUILD_ROOT%{_bindir}/jws{,-2}
+# remove tests
+%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/josepy/{test_util,*_test}.py[co]
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/josepy/testdata
 
 %clean
 rm -rf $RPM_BUILD_ROOT
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-josepy.git/commitdiff/c79d556deb561be5de133bbc6fffd46e10e5e8dd



More information about the pld-cvs-commit mailing list