From 4dd50baf8db477ab75047a0334d06725aeed7878d0b67c502cd4afe56bed43fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 13 Jan 2021 14:44:26 +0000 Subject: [PATCH] Accepting request 862912 from home:pgajdos:python - use %pytest macro OBS-URL: https://build.opensuse.org/request/show/862912 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-translationstring?expand=0&rev=17 --- python-translationstring.changes | 5 +++++ python-translationstring.spec | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/python-translationstring.changes b/python-translationstring.changes index 426a66c..bc8ada1 100644 --- a/python-translationstring.changes +++ b/python-translationstring.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jan 13 14:23:47 UTC 2021 - pgajdos@suse.com + +- use %pytest macro + ------------------------------------------------------------------- Thu Jul 23 13:22:08 UTC 2020 - Marketa Calabkova diff --git a/python-translationstring.spec b/python-translationstring.spec index 4bc205b..8a87041 100644 --- a/python-translationstring.spec +++ b/python-translationstring.spec @@ -1,7 +1,7 @@ # # spec file for package python-translationstring # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # Copyright (c) 2015 LISA GmbH, Bingen, Germany. # # All modifications and additions to the file contributed by third parties @@ -26,6 +26,7 @@ License: SUSE-Repoze Group: Development/Languages/Python URL: https://github.com/Pylons/translationstring Source: https://files.pythonhosted.org/packages/source/t/translationstring/translationstring-%{version}.tar.gz +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: git @@ -73,7 +74,7 @@ pushd docs && PYTHONPATH=%{buildroot}%{python3_sitelib} make html && rm _build/h popd %check -%python_exec setup.py test +%pytest %files %{python_files} %license LICENSE.txt