[packages/python-platformdirs] - added tests
qboosh
qboosh at pld-linux.org
Sun Mar 6 18:04:49 CET 2022
commit ef96df3318fa43e3aa42799480a899ba921ffab1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Mar 6 18:06:47 2022 +0100
- added tests
python-platformdirs.spec | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/python-platformdirs.spec b/python-platformdirs.spec
index 5ca2b18..d443234 100644
--- a/python-platformdirs.spec
+++ b/python-platformdirs.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
%define module platformdirs
Summary: Python module for determining appropriate platform-specific dirs
Summary(pl.UTF-8): Moduł Pythona do określania odpowiednich katalogów specyficznych dla platformy
@@ -32,6 +36,10 @@ dla platformy, np. "katalog danych użytkownika".
%build
%py_build
+%if %{with tests}
+%{__python} test/test_api.py
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-platformdirs.git/commitdiff/ef96df3318fa43e3aa42799480a899ba921ffab1
More information about the pld-cvs-commit
mailing list