- Add patch pytest4.patch to make the test suite compatible with
pytest4+ (yes, THIS is the only change necessary!). gh#Kozea/pygal#340 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygal?expand=0&rev=11
This commit is contained in:
parent
3b996b0eae
commit
3011289e7c
11
pytest4.patch
Normal file
11
pytest4.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- a/setup.cfg
|
||||||
|
+++ b/setup.cfg
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
[wheel]
|
||||||
|
universal = 1
|
||||||
|
|
||||||
|
-[pytest]
|
||||||
|
+[tools:pytest]
|
||||||
|
flake8-ignore =
|
||||||
|
*.py E731 E402
|
||||||
|
pygal/__init__.py F401
|
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 6 15:16:36 CET 2019 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Add patch pytest4.patch to make the test suite compatible with
|
||||||
|
pytest4+ (yes, THIS is the only change necessary!).
|
||||||
|
gh#Kozea/pygal#340
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jul 19 12:31:24 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
Fri Jul 19 12:31:24 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
@ -27,6 +27,9 @@ URL: http://pygal.org/
|
|||||||
Source: https://files.pythonhosted.org/packages/source/p/pygal/pygal-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pygal/pygal-%{version}.tar.gz
|
||||||
Source10: https://raw.githubusercontent.com/Kozea/pygal/%{version}/COPYING
|
Source10: https://raw.githubusercontent.com/Kozea/pygal/%{version}/COPYING
|
||||||
Patch0: python38.patch
|
Patch0: python38.patch
|
||||||
|
# PATCH-FIX-UPSTREAM pytest4.patch gh#Kozea/pygal#340 mcepl@suse.com
|
||||||
|
# yes, THIS is what makes this test suite pytest4+ compatible!
|
||||||
|
Patch1: pytest4.patch
|
||||||
BuildRequires: %{python_module Flask}
|
BuildRequires: %{python_module Flask}
|
||||||
BuildRequires: %{python_module lxml}
|
BuildRequires: %{python_module lxml}
|
||||||
BuildRequires: %{python_module pyquery}
|
BuildRequires: %{python_module pyquery}
|
||||||
@ -43,8 +46,7 @@ Recommends: python-CairoSVG
|
|||||||
%endif
|
%endif
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module pytest-runner}
|
BuildRequires: %{python_module pytest-runner}
|
||||||
# https://github.com/Kozea/pygal/pull/340
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module pytest < 4.0}
|
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@ -54,7 +56,7 @@ It supports various chart types and CSS styling.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pygal-%{version}
|
%setup -q -n pygal-%{version}
|
||||||
%patch0 -p1
|
%autopatch -p1
|
||||||
cp %{SOURCE10} .
|
cp %{SOURCE10} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
Loading…
Reference in New Issue
Block a user