From 84a0440dd130b5ce6f8dd8e16ecb658ec26c842dc26fbff1a5d2efc19994482b Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 19 May 2021 07:44:25 +0000 Subject: [PATCH] Accepting request 894229 from home:pgajdos:python - use %pytest macro in %check OBS-URL: https://build.opensuse.org/request/show/894229 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-contextvars?expand=0&rev=3 --- python-contextvars.changes | 5 +++++ python-contextvars.spec | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/python-contextvars.changes b/python-contextvars.changes index c96dad4..7c707cc 100644 --- a/python-contextvars.changes +++ b/python-contextvars.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 19 07:20:33 UTC 2021 - pgajdos@suse.com + +- use %pytest macro in %check + ------------------------------------------------------------------- Sun Apr 14 10:38:27 AM UTC 2019 - John Vandenberg diff --git a/python-contextvars.spec b/python-contextvars.spec index 2122961..cefedf6 100644 --- a/python-contextvars.spec +++ b/python-contextvars.spec @@ -1,7 +1,7 @@ # # spec file for package python-contextvars # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -12,7 +12,8 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -22,13 +23,14 @@ Version: 2.4 Release: 0 License: Apache-2.0 Summary: PEP 567 (context variables) backport -Url: http://github.com/MagicStack/contextvars +URL: http://github.com/MagicStack/contextvars Group: Development/Languages/Python Source: https://files.pythonhosted.org/packages/source/c/contextvars/contextvars-%{version}.tar.gz -BuildRequires: python-rpm-macros BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module immutables >= 0.9} +BuildRequires: %{python_module pytest} # /SECTION BuildRequires: fdupes Requires: python-immutables >= 0.9 @@ -50,7 +52,7 @@ PEP 567 (Context Variables) backport. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pytest %files %{python_files} %doc README.rst