Accepting request 887976 from devel:languages:python

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/887976
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-MarkupSafe?expand=0&rev=21
This commit is contained in:
Dominique Leuenberger 2021-04-26 14:38:51 +00:00 committed by Git OBS Bridge
commit 59f541e3db
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Apr 16 07:30:01 UTC 2021 - Dirk Müller <dmueller@suse.com>
- allow tests to be disabled (still on by default)
-------------------------------------------------------------------
Tue Mar 5 16:46:50 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-MarkupSafe
#
# 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
@ -16,6 +16,7 @@
#
%bcond_without test
%define oldpython python
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-MarkupSafe
@ -27,7 +28,9 @@ License: BSD-3-Clause
Group: Development/Languages/Python
Source: https://files.pythonhosted.org/packages/source/M/MarkupSafe/MarkupSafe-%{version}.tar.gz
BuildRequires: %{python_module devel}
%if %{with test}
BuildRequires: %{python_module pytest}
%endif
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@ -55,8 +58,10 @@ export CFLAGS="%{optflags}"
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%python_expand rm %{buildroot}%{$python_sitearch}/markupsafe/_speedups.c
%if %{with test}
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m pytest
%endif
%files %{python_files}
%license LICENSE.rst