]> git.pld-linux.org Git - packages/python-appdirs.git/commitdiff
- don't use deprecated setuptools test command
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 19 Jan 2020 07:36:56 +0000 (08:36 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 19 Jan 2020 07:36:56 +0000 (08:36 +0100)
python-appdirs.spec

index bb1a2269b8b536493c2836ecfe08cc72debbf6b4..33167c8344da025edf97c09a6b62fc9a0397ec85 100644 (file)
@@ -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
This page took 0.112757 seconds and 4 git commands to generate.