From aa361305812f9bfd0cc29073926c28c1ddcd22492e4c45fcd11eb95b6ecdf45d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Fri, 17 Sep 2021 21:02:36 +0000 Subject: [PATCH] - Don't use python setup.py test expression. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonpatch?expand=0&rev=48 --- python-jsonpatch.changes | 5 +++++ python-jsonpatch.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/python-jsonpatch.changes b/python-jsonpatch.changes index 5a6adac..6a4d62f 100644 --- a/python-jsonpatch.changes +++ b/python-jsonpatch.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 17 21:02:26 UTC 2021 - Matej Cepl + +- Don't use python setup.py test expression. + ------------------------------------------------------------------- Sun Aug 22 20:36:59 UTC 2021 - Stefan Schubert diff --git a/python-jsonpatch.spec b/python-jsonpatch.spec index 1f5dbea..4cccc78 100644 --- a/python-jsonpatch.spec +++ b/python-jsonpatch.spec @@ -71,15 +71,16 @@ Python module to apply JSON-Patches (according to RFC 6902). rm %{buildroot}%{_bindir}/jsondiff %check -%python_exec tests.py +%pyunittest -v tests %if %{with libalternatives} %pre # removing old update-alternatives entries if [ "$1" -gt 0 ] && [ -f %{_sbindir}/update-alternatives ] ; then %python_uninstall_alternative jsonpatch -fi +fi %else + %post %python_install_alternative jsonpatch @@ -99,6 +100,6 @@ fi %{_bindir}/jsonpatch %{_bindir}/jsonpatch-%python_version %endif -%{python_sitelib}/* +%{python_sitelib}/jsonpatch* %changelog