Hello community, here is the log from the commit of package python-pygal for openSUSE:Factory checked in at 2019-07-30 13:03:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pygal (Old) and /work/SRC/openSUSE:Factory/.python-pygal.new.4126 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pygal" Tue Jul 30 13:03:21 2019 rev:4 rq:717082 version:2.4.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pygal/python-pygal.changes 2019-03-29 20:37:38.510645904 +0100 +++ /work/SRC/openSUSE:Factory/.python-pygal.new.4126/python-pygal.changes 2019-07-30 13:03:22.702414629 +0200 @@ -1,0 +2,8 @@ +Fri Jul 19 12:31:24 UTC 2019 - Tomáš Chvátal <tchva...@suse.com> + +- Add patch to work with python 3.8: + * python38.patch +- Restrict pytest to < 3.0 as the testing code does not work + upstream on anything else + +------------------------------------------------------------------- New: ---- python38.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pygal.spec ++++++ --- /var/tmp/diff_new_pack.t7yvV7/_old 2019-07-30 13:03:23.310414507 +0200 +++ /var/tmp/diff_new_pack.t7yvV7/_new 2019-07-30 13:03:23.310414507 +0200 @@ -26,6 +26,7 @@ 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 BuildRequires: %{python_module Flask} BuildRequires: %{python_module lxml} BuildRequires: %{python_module pyquery} @@ -42,7 +43,8 @@ %endif # SECTION test requirements BuildRequires: %{python_module pytest-runner} -BuildRequires: %{python_module pytest} +# https://github.com/Kozea/pygal/pull/340 +BuildRequires: %{python_module pytest < 4.0} # /SECTION %python_subpackages @@ -52,6 +54,7 @@ %prep %setup -q -n pygal-%{version} +%patch0 -p1 cp %{SOURCE10} . %build ++++++ python38.patch ++++++ >From 45be172a9b5ce6fcf8bab89685ea88955192d474 Mon Sep 17 00:00:00 2001 From: Dooley_labs <elderl...@users.noreply.github.com> Date: Mon, 15 Jul 2019 04:57:57 -0400 Subject: [PATCH] Patch Python 3.8 deprecation warning This warning has been plaguing me. This fixes it. Forever. ``` py.warnings:110 - .../pygal/_compat.py:23: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working ``` --- pygal/_compat.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pygal/_compat.py b/pygal/_compat.py index 07ab8846..2c6ab12b 100644 --- a/pygal/_compat.py +++ b/pygal/_compat.py @@ -20,8 +20,11 @@ from __future__ import division import sys -from collections import Iterable from datetime import datetime, timedelta, tzinfo +try: + from collections.abc import Iterable +except ImportError: + from collections import Iterable if sys.version_info[0] == 3: base = (str, bytes)