Accepting request 874538 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/874538
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pygal?expand=0&rev=7
This commit is contained in:
Richard Brown 2021-03-02 13:42:21 +00:00 committed by Git OBS Bridge
commit 5a2a576617
2 changed files with 8 additions and 5 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Feb 22 14:22:14 UTC 2021 - Markéta Machová <mmachova@suse.com>
- Drop broken %ifpython3
-------------------------------------------------------------------
Thu Aug 27 15:15:44 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pygal
#
# 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
@ -41,10 +41,8 @@ BuildRequires: python3-CairoSVG
Requires: python-lxml
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%ifpython3
Recommends: python-CairoSVG
%endif
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module pytest}
@ -72,7 +70,7 @@ mv %{buildroot}%{_bindir}/pygal_gen.py %{buildroot}%{_bindir}/pygal_gen
%python_clone -a %{buildroot}%{_bindir}/pygal_gen
%check
%python_exec setup.py test
%pytest
%post
%python_install_alternative pygal_gen