From fe037821d96dcf1fe6dc8a92782348c22bbba124ca1f1266df3a7cb4c252e940 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 1 Jun 2021 09:24:07 +0000 Subject: [PATCH] Accepting request 896622 from home:pgajdos:python - %check: use %pytest rpm macro OBS-URL: https://build.opensuse.org/request/show/896622 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pilkit?expand=0&rev=8 --- python-pilkit.changes | 5 +++++ python-pilkit.spec | 12 ++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/python-pilkit.changes b/python-pilkit.changes index f685d28..a349d53 100644 --- a/python-pilkit.changes +++ b/python-pilkit.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 1 08:51:39 UTC 2021 - pgajdos@suse.com + +- %check: use %pytest rpm macro + ------------------------------------------------------------------- Fri Jan 18 10:15:40 UTC 2019 - Tomáš Chvátal diff --git a/python-pilkit.spec b/python-pilkit.spec index b70337c..b1b1a80 100644 --- a/python-pilkit.spec +++ b/python-pilkit.spec @@ -1,7 +1,7 @@ # # spec file for package python-pilkit # -# 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 @@ -17,27 +17,25 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without test Name: python-pilkit Version: 2.0 Release: 0 Summary: A collection of utilities and processors for the Python Imaging Libary License: BSD-3-Clause Group: Development/Languages/Python -URL: http://github.com/matthewwithanm/pilkit/ +URL: https://github.com/matthewwithanm/pilkit/ Source: https://files.pythonhosted.org/packages/source/p/pilkit/pilkit-%{version}.tar.gz Patch0: pil-fix-test.patch +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch # SECTION test requirements -%if %{with test} BuildRequires: %{python_module Pillow} BuildRequires: %{python_module mock >= 1.0.1} BuildRequires: %{python_module nose >= 1.3.6} BuildRequires: %{python_module nose-progressive >= 1.5.1} -%endif # /SECTION %python_subpackages @@ -59,10 +57,8 @@ interface for performing manipulations on PIL images. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with test} %check -%python_exec setup.py test -%endif +%pytest %files %{python_files} %license LICENSE