From e428d8a79abe4bd2a1742e8441fc1eaca5b120b2bdbfea6ef4678b3bf540074c Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 17 May 2021 11:21:09 +0000 Subject: [PATCH] Accepting request 893709 from home:pgajdos:python - use %pytest macro OBS-URL: https://build.opensuse.org/request/show/893709 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-first?expand=0&rev=7 --- python-first.changes | 5 +++++ python-first.spec | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/python-first.changes b/python-first.changes index ea6212d..d7c3436 100644 --- a/python-first.changes +++ b/python-first.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 17 11:11:53 UTC 2021 - pgajdos@suse.com + +- use %pytest macro + ------------------------------------------------------------------- Sat Mar 16 17:42:44 UTC 2019 - Jan Engelhardt diff --git a/python-first.spec b/python-first.spec index b563e2d..a365eb6 100644 --- a/python-first.spec +++ b/python-first.spec @@ -1,7 +1,7 @@ # # spec file for package python-first # -# 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 @@ -25,6 +25,7 @@ License: MIT Group: Development/Languages/Python URL: http://github.com/hynek/first/ Source: https://files.pythonhosted.org/packages/source/f/first/first-%{version}.tar.gz +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -45,7 +46,7 @@ A Python library that returns the first true value of an iterable. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand PYTHONPATH=. $python setup.py test +%pytest %files %{python_files} %doc AUTHORS.rst README.rst