[packages/python-fixtures] - when removing tests, keep fixtures.tests.helpers for testresources tests; release 9
qboosh
qboosh at pld-linux.org
Thu Mar 16 22:14:51 CET 2023
commit 5ce4bfa37364ada80b473eed7e4ea92e3c244a01
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Mar 16 22:16:58 2023 +0100
- when removing tests, keep fixtures.tests.helpers for testresources tests; release 9
python-fixtures.spec | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/python-fixtures.spec b/python-fixtures.spec
index 5a70f84..538c144 100644
--- a/python-fixtures.spec
+++ b/python-fixtures.spec
@@ -8,7 +8,7 @@ Summary: Fixtures, reusable state for writing clean tests and more
Summary(pl.UTF-8): Wyposażenie testów - stan wielokrotnego użytku pozwalający na pisanie czystych testów
Name: python-fixtures
Version: 3.0.0
-Release: 8
+Release: 9
License: Apache v2.0 or BSD
Group: Libraries/Python
#Source0Download: https://pypi.org/simple/fixtures/
@@ -113,14 +113,24 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python2}
%py_install
-%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/fixtures/tests
+# remove tests, keep only fixtures.tests.helpers
+%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/fixtures/tests/_fixtures
+%{__rm} $RPM_BUILD_ROOT%{py_sitescriptdir}/fixtures/tests/test_*.py*
+: >$RPM_BUILD_ROOT%{py_sitescriptdir}/fixtures/tests/__init__.py
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}/fixtures/tests
+%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}/fixtures/tests
%py_postclean
%endif
%if %{with python3}
%py3_install
-%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/fixtures/tests
+%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/fixtures/tests/_fixtures
+%{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/fixtures/tests/test_*.py
+%{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/fixtures/tests/__pycache__/test_*.py*
+: >$RPM_BUILD_ROOT%{py3_sitescriptdir}/fixtures/tests/__init__.py
+%py3_comp $RPM_BUILD_ROOT%{py3_sitescriptdir}/fixtures
+%py3_ocomp $RPM_BUILD_ROOT%{py3_sitescriptdir}/fixtures
%endif
%clean
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-fixtures.git/commitdiff/5ce4bfa37364ada80b473eed7e4ea92e3c244a01
More information about the pld-cvs-commit
mailing list