[packages/python-appdirs] - don't use deprecated setuptools test command
qboosh
qboosh at pld-linux.org
Sun Jan 19 08:36:53 CET 2020
commit acae4980835fb9db80e3d4cf541f6d01e89592e6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jan 19 08:36:56 2020 +0100
- don't use deprecated setuptools test command
python-appdirs.spec | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/python-appdirs.spec b/python-appdirs.spec
index bb1a226..33167c8 100644
--- a/python-appdirs.spec
+++ b/python-appdirs.spec
@@ -78,11 +78,21 @@ appdirs to moduł pomagający wybrać właściwy katalog dla:
%build
%if %{with python2}
-%py_build %{?with_tests:test}
+%py_build
+
+%if %{with tests}
+PYTHONPATH=$(pwd) \
+%{__python} test/test_api.py
+%endif
%endif
%if %{with python3}
-%py3_build %{?with_tests:test}
+%py3_build
+
+%if %{with tests}
+PYTHONPATH=$(pwd) \
+%{__python3} test/test_api.py
+%endif
%endif
%install
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-appdirs.git/commitdiff/acae4980835fb9db80e3d4cf541f6d01e89592e6
More information about the pld-cvs-commit
mailing list