diff --git a/python-jsonschema.changes b/python-jsonschema.changes index 612fc78..c4a8c85 100644 --- a/python-jsonschema.changes +++ b/python-jsonschema.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 25 07:59:29 UTC 2021 - pgajdos@suse.com + +- %check: use %pytest rpm macro + ------------------------------------------------------------------- Fri Jan 15 13:12:18 UTC 2021 - Benjamin Greiner diff --git a/python-jsonschema.spec b/python-jsonschema.spec index 86e3ebb..ebf6a20 100644 --- a/python-jsonschema.spec +++ b/python-jsonschema.spec @@ -1,7 +1,7 @@ # # spec file for package python-jsonschema # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -31,8 +31,8 @@ BuildRequires: %{python_module attrs >= 17.4.0} BuildRequires: %{python_module idna} BuildRequires: %{python_module importlib-metadata} BuildRequires: %{python_module jsonpointer > 1.13} -BuildRequires: %{python_module mock} BuildRequires: %{python_module pyrsistent >= 0.14.0} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module rfc3987} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} @@ -46,7 +46,7 @@ Requires: python-importlib-metadata Requires: python-pyrsistent >= 0.14.0 Requires: python-six >= 1.11.0 Requires(post): update-alternatives -Requires(preun): update-alternatives +Requires(preun):update-alternatives BuildArch: noarch %python_subpackages @@ -72,7 +72,7 @@ for Python (supporting 2.6+ including Python 3). %python_clone -a %{buildroot}%{_bindir}/jsonschema %check -%python_exec setup.py test --test-suite=jsonschema.tests +%pytest jsonschema/tests %post %python_install_alternative jsonschema