From feac995e03869be26bd808ecc956a97341732e727e0c56a9c1ef3858dd88e27b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 13 Jan 2021 13:22:00 +0000 Subject: [PATCH] Accepting request 862882 from home:pgajdos:python - use %pytest macro OBS-URL: https://build.opensuse.org/request/show/862882 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-subst?expand=0&rev=5 --- python-subst.changes | 5 +++++ python-subst.spec | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/python-subst.changes b/python-subst.changes index ef62de5..9ef19e5 100644 --- a/python-subst.changes +++ b/python-subst.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 13 12:44:17 UTC 2021 - pgajdos@suse.com + +- use %pytest macro + ------------------------------------------------------------------- Tue May 19 08:03:08 UTC 2020 - Petr Gajdos diff --git a/python-subst.spec b/python-subst.spec index 0312573..52ecd43 100644 --- a/python-subst.spec +++ b/python-subst.spec @@ -1,7 +1,7 @@ # # spec file for package python-subst # -# 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 @@ -26,6 +26,7 @@ Group: Development/Languages/Python URL: http://mysz.github.io/subst/ Source: https://files.pythonhosted.org/packages/source/s/subst/subst-%{version}.tar.gz Source1: https://raw.githubusercontent.com/msztolcman/subst/master/LICENSE +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -57,7 +58,7 @@ touch test/__init__.py %check export PYTHONPATH=${PWD}/test -%python_exec setup.py test +%pytest %post %python_install_alternative subst