From c1a1849ade546e096ac5f5cc161713bec0aa0aa7584ea1499dd3cea192fcd203 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 25 May 2021 11:11:43 +0000 Subject: [PATCH] Accepting request 895309 from home:pgajdos:python - %check: use %pytest rpm macro OBS-URL: https://build.opensuse.org/request/show/895309 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jsonschema?expand=0&rev=47 --- python-jsonschema.changes | 5 +++++ python-jsonschema.spec | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) 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