From fe44aac26c11034c7dc42fd2cea0e54c05a05fe6e6c5ea6d91c5a51d52bb1a4b Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 27 May 2021 12:20:20 +0000 Subject: [PATCH] Accepting request 895697 from home:pgajdos:python setup.py test replacement OBS-URL: https://build.opensuse.org/request/show/895697 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-inflection?expand=0&rev=12 --- python-inflection.changes | 5 +++++ python-inflection.spec | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/python-inflection.changes b/python-inflection.changes index 171c858..d514a54 100644 --- a/python-inflection.changes +++ b/python-inflection.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 26 06:52:58 UTC 2021 - pgajdos@suse.com + +- %check: run testsuite with %pytest rpm macro + ------------------------------------------------------------------- Sat Aug 22 08:35:11 UTC 2020 - Sebastian Wagner diff --git a/python-inflection.spec b/python-inflection.spec index 5640482..e5aab2a 100644 --- a/python-inflection.spec +++ b/python-inflection.spec @@ -1,7 +1,7 @@ # # spec file for package python-inflection # -# 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 @@ -24,16 +24,16 @@ Release: 0 Summary: A port of Ruby on Rails inflector to Python License: MIT Group: Development/Languages/Python -URL: http://github.com/jpvanhal/inflection +URL: https://github.com/jpvanhal/inflection Source: https://files.pythonhosted.org/packages/source/i/inflection/inflection-%{version}.tar.gz +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module pytest} # /SECTION -BuildArch: noarch - %python_subpackages %description @@ -52,7 +52,7 @@ Inflection is a port of `Ruby on Rails`_' `inflector`_ to Python. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pytest %files %{python_files} %doc README.rst