Skip to content

Commit

Permalink
Update python-pygal to rev 5 via SR 746026
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bmwiedemann committed Nov 22, 2019
1 parent 17cdb24 commit 71bc837
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 3 deletions.
Binary file modified packages/p/python-pygal/.files
Binary file not shown.
10 changes: 10 additions & 0 deletions packages/p/python-pygal/.rev
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,14 @@
upstream on anything else</comment>
<requestid>717082</requestid>
</revision>
<revision rev="5" vrev="5">
<srcmd5>d3821f746e0cda5b963d3ac2810761b1</srcmd5>
<version>2.4.0</version>
<time>1574414423</time>
<user>dimstar_suse</user>
<comment>- Add patch pytest4.patch to make the test suite compatible with
pytest4+ (yes, THIS is the only change necessary!).
gh#Kozea/pygal#340</comment>
<requestid>746026</requestid>
</revision>
</revisionlist>
16 changes: 16 additions & 0 deletions packages/p/python-pygal/pytest4.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,13 +1,6 @@
[wheel]
universal = 1

-[pytest]
-flake8-ignore =
- *.py E731 E402
- pygal/__init__.py F401
- pygal/_compat.py F821 F401
- docs/conf.py ALL
-
[egg_info]
tag_build =
tag_date = 0
7 changes: 7 additions & 0 deletions packages/p/python-pygal/python-pygal.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Nov 6 15:16:36 CET 2019 - Matej Cepl <[email protected]>

- 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 <[email protected]>

Expand Down
9 changes: 6 additions & 3 deletions packages/p/python-pygal/python-pygal.spec
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ URL: http://pygal.org/
Source: https://files.pythonhosted.org/packages/source/p/pygal/pygal-%{version}.tar.gz
Source10: https://raw.githubusercontent.com/Kozea/pygal/%{version}/COPYING
Patch0: python38.patch
# PATCH-FIX-UPSTREAM pytest4.patch gh#Kozea/pygal#340 [email protected]
# yes, THIS is what makes this test suite pytest4+ compatible!
Patch1: pytest4.patch
BuildRequires: %{python_module Flask}
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module pyquery}
Expand All @@ -43,8 +46,7 @@ Recommends: python-CairoSVG
%endif
# SECTION test requirements
BuildRequires: %{python_module pytest-runner}
# https://github.com/Kozea/pygal/pull/340
BuildRequires: %{python_module pytest < 4.0}
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages

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

%prep
%setup -q -n pygal-%{version}
%patch0 -p1
%autopatch -p1

cp %{SOURCE10} .

%build
Expand Down

0 comments on commit 71bc837

Please sign in to comment.