14
0
forked from pool/python-pilkit

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
This commit is contained in:
2021-06-01 09:24:07 +00:00
committed by Git OBS Bridge
parent 99aec33aaf
commit fe037821d9
2 changed files with 9 additions and 8 deletions

View File

@@ -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