commit python-pygal for openSUSE:Factory

2020-09-04 Thread root
Hello community,

here is the log from the commit of package python-pygal for openSUSE:Factory 
checked in at 2020-09-04 10:59:54

Comparing /work/SRC/openSUSE:Factory/python-pygal (Old)
 and  /work/SRC/openSUSE:Factory/.python-pygal.new.3399 (New)


Package is "python-pygal"

Fri Sep  4 10:59:54 2020 rev:6 rq:830076 version:2.4.0

Changes:

--- /work/SRC/openSUSE:Factory/python-pygal/python-pygal.changes
2019-11-22 10:20:24.733345648 +0100
+++ /work/SRC/openSUSE:Factory/.python-pygal.new.3399/python-pygal.changes  
2020-09-04 11:00:47.114677143 +0200
@@ -1,0 +2,5 @@
+Thu Aug 27 15:15:44 UTC 2020 - Marketa Calabkova 
+
+- Add patch pytest6.patch
+
+---

New:

  pytest6.patch



Other differences:
--
++ python-pygal.spec ++
--- /var/tmp/diff_new_pack.trlEX3/_old  2020-09-04 11:00:49.222678273 +0200
+++ /var/tmp/diff_new_pack.trlEX3/_new  2020-09-04 11:00:49.222678273 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pygal
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -30,6 +30,7 @@
 # PATCH-FIX-UPSTREAM pytest4.patch gh#Kozea/pygal#340 mc...@suse.com
 # yes, THIS is what makes this test suite pytest4+ compatible!
 Patch1: pytest4.patch
+Patch2: pytest6.patch
 BuildRequires:  %{python_module Flask}
 BuildRequires:  %{python_module lxml}
 BuildRequires:  %{python_module pyquery}

++ pytest6.patch ++
Index: pygal-2.4.0/pygal/test/conftest.py
===
--- pygal-2.4.0.orig/pygal/test/conftest.py
+++ pygal-2.4.0/pygal/test/conftest.py
@@ -50,9 +50,9 @@ def pytest_generate_tests(metafunc):
 if hasattr(sys, 'pypy_version_info'):
 etree.to_etree()
 
-if "Chart" in metafunc.funcargnames:
+if "Chart" in metafunc.fixturenames:
 metafunc.parametrize("Chart", pygal.CHARTS)
-if "datas" in metafunc.funcargnames:
+if "datas" in metafunc.fixturenames:
 metafunc.parametrize(
 "datas",
 [



commit python-pygal for openSUSE:Factory

2019-11-22 Thread root
Hello community,

here is the log from the commit of package python-pygal for openSUSE:Factory 
checked in at 2019-11-22 10:20:23

Comparing /work/SRC/openSUSE:Factory/python-pygal (Old)
 and  /work/SRC/openSUSE:Factory/.python-pygal.new.26869 (New)


Package is "python-pygal"

Fri Nov 22 10:20:23 2019 rev:5 rq:746026 version:2.4.0

Changes:

--- /work/SRC/openSUSE:Factory/python-pygal/python-pygal.changes
2019-07-30 13:03:22.702414629 +0200
+++ /work/SRC/openSUSE:Factory/.python-pygal.new.26869/python-pygal.changes 
2019-11-22 10:20:24.733345648 +0100
@@ -1,0 +2,7 @@
+Wed Nov  6 15:16:36 CET 2019 - Matej Cepl 
+
+- Add patch pytest4.patch to make the test suite compatible with
+  pytest4+ (yes, THIS is the only change necessary!).
+  gh#Kozea/pygal#340
+
+---

New:

  pytest4.patch



Other differences:
--
++ python-pygal.spec ++
--- /var/tmp/diff_new_pack.HmTUQp/_old  2019-11-22 10:20:25.133345544 +0100
+++ /var/tmp/diff_new_pack.HmTUQp/_new  2019-11-22 10:20:25.133345544 +0100
@@ -27,6 +27,9 @@
 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 mc...@suse.com
+# 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}
@@ -43,8 +46,7 @@
 %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
 
@@ -54,7 +56,8 @@
 
 %prep
 %setup -q -n pygal-%{version}
-%patch0 -p1
+%autopatch -p1
+
 cp %{SOURCE10} .
 
 %build

++ pytest4.patch ++
--- 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



commit python-pygal for openSUSE:Factory

2019-07-30 Thread root
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 
+
+- 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 
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)



commit python-pygal for openSUSE:Factory

2019-03-29 Thread root
Hello community,

here is the log from the commit of package python-pygal for openSUSE:Factory 
checked in at 2019-03-29 20:37:37

Comparing /work/SRC/openSUSE:Factory/python-pygal (Old)
 and  /work/SRC/openSUSE:Factory/.python-pygal.new.25356 (New)


Package is "python-pygal"

Fri Mar 29 20:37:37 2019 rev:3 rq:688618 version:2.4.0

Changes:

--- /work/SRC/openSUSE:Factory/python-pygal/python-pygal.changes
2018-12-24 11:41:55.701423590 +0100
+++ /work/SRC/openSUSE:Factory/.python-pygal.new.25356/python-pygal.changes 
2019-03-29 20:37:38.510645904 +0100
@@ -1,0 +2,6 @@
+Tue Mar 26 09:21:16 UTC 2019 - Tomáš Chvátal 
+
+- Make CairoSVG only python3 dependency and simply not provide
+  the png conversion feature on python2
+
+---



Other differences:
--
++ python-pygal.spec ++
--- /var/tmp/diff_new_pack.1TpBHn/_old  2019-03-29 20:37:39.058646208 +0100
+++ /var/tmp/diff_new_pack.1TpBHn/_new  2019-03-29 20:37:39.062646211 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pygal
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,33 +17,33 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define skip_python2 1
 Name:   python-pygal
 Version:2.4.0
 Release:0
 Summary:A python svg graph plotting library
 License:LGPL-3.0-or-later
 Group:  Development/Languages/Python
-Url:http://pygal.org/
+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
-BuildRequires:  %{python_module CairoSVG}
 BuildRequires:  %{python_module Flask}
 BuildRequires:  %{python_module lxml}
 BuildRequires:  %{python_module pyquery}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+BuildRequires:  python3-CairoSVG
+Requires:   python-lxml
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
+BuildArch:  noarch
+%ifpython3
+Recommends: python-CairoSVG
+%endif
 # SECTION test requirements
 BuildRequires:  %{python_module pytest-runner}
 BuildRequires:  %{python_module pytest}
 # /SECTION
-Requires:   python-lxml
-Recommends: python-CairoSVG
-BuildArch:  noarch
-Requires(post):   update-alternatives
-Requires(postun):  update-alternatives
-
 %python_subpackages
 
 %description




commit python-pygal for openSUSE:Factory

2018-12-24 Thread root
Hello community,

here is the log from the commit of package python-pygal for openSUSE:Factory 
checked in at 2018-12-24 11:41:54

Comparing /work/SRC/openSUSE:Factory/python-pygal (Old)
 and  /work/SRC/openSUSE:Factory/.python-pygal.new.28833 (New)


Package is "python-pygal"

Mon Dec 24 11:41:54 2018 rev:2 rq:659587 version:2.4.0

Changes:

--- /work/SRC/openSUSE:Factory/python-pygal/python-pygal.changes
2018-06-02 12:02:49.220516543 +0200
+++ /work/SRC/openSUSE:Factory/.python-pygal.new.28833/python-pygal.changes 
2018-12-24 11:41:55.701423590 +0100
@@ -1,0 +2,5 @@
+Tue Dec  4 12:52:14 UTC 2018 - Matej Cepl 
+
+- Remove superfluous devel dependency for noarch package
+
+---



Other differences:
--
++ python-pygal.spec ++
--- /var/tmp/diff_new_pack.q1kun2/_old  2018-12-24 11:41:56.169423175 +0100
+++ /var/tmp/diff_new_pack.q1kun2/_new  2018-12-24 11:41:56.173423171 +0100
@@ -12,7 +12,8 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
+#
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
@@ -20,23 +21,22 @@
 Name:   python-pygal
 Version:2.4.0
 Release:0
-License:LGPL-3.0-or-later
 Summary:A python svg graph plotting library
-Url:http://pygal.org/
+License:LGPL-3.0-or-later
 Group:  Development/Languages/Python
+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
-BuildRequires:  %{python_module devel}
-BuildRequires:  %{python_module pyquery}
-BuildRequires:  %{python_module Flask}
+Source10:   
https://raw.githubusercontent.com/Kozea/pygal/%{version}/COPYING
 BuildRequires:  %{python_module CairoSVG}
+BuildRequires:  %{python_module Flask}
 BuildRequires:  %{python_module lxml}
+BuildRequires:  %{python_module pyquery}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 # SECTION test requirements
-BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module pytest-runner}
+BuildRequires:  %{python_module pytest}
 # /SECTION
 Requires:   python-lxml
 Recommends: python-CairoSVG




commit python-pygal for openSUSE:Factory

2018-06-02 Thread root
Hello community,

here is the log from the commit of package python-pygal for openSUSE:Factory 
checked in at 2018-06-02 12:02:39

Comparing /work/SRC/openSUSE:Factory/python-pygal (Old)
 and  /work/SRC/openSUSE:Factory/.python-pygal.new (New)


Package is "python-pygal"

Sat Jun  2 12:02:39 2018 rev:1 rq:612059 version:2.4.0

Changes:

New Changes file:

--- /dev/null   2018-05-30 11:41:29.140556178 +0200
+++ /work/SRC/openSUSE:Factory/.python-pygal.new/python-pygal.changes   
2018-06-02 12:02:49.220516543 +0200
@@ -0,0 +1,21 @@
+---
+Thu May 24 17:38:38 UTC 2018 - toddrme2...@gmail.com
+
+- spec file cleanups
+- dependencies are python3-only
+
+---
+Mon Aug 28 16:16:11 UTC 2017 - toddrme2...@gmail.com
+
+- Implement single-spec version
+
+---
+Sat Jul 29 17:40:48 UTC 2017 - mich...@stroeder.com
+
+- update to upstream release 2.4.0
+
+---
+Fri Jun 12 11:41:40 UTC 2015 - mailaen...@opensuse.org
+
+- initial packaging of version 1.7.0
+

New:

  COPYING
  pygal-2.4.0.tar.gz
  python-pygal.changes
  python-pygal.spec



Other differences:
--
++ python-pygal.spec ++
#
# spec file for package python-pygal
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name:   python-pygal
Version:2.4.0
Release:0
License:LGPL-3.0-or-later
Summary:A python svg graph plotting library
Url:http://pygal.org/
Group:  Development/Languages/Python
Source: 
https://files.pythonhosted.org/packages/source/p/pygal/pygal-%{version}.tar.gz
source10:   https://raw.githubusercontent.com/Kozea/pygal/%{version}/COPYING
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module pyquery}
BuildRequires:  %{python_module Flask}
BuildRequires:  %{python_module CairoSVG}
BuildRequires:  %{python_module lxml}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
# SECTION test requirements
BuildRequires:  %{python_module pytest}
BuildRequires:  %{python_module pytest-runner}
# /SECTION
Requires:   python-lxml
Recommends: python-CairoSVG
BuildArch:  noarch
Requires(post):   update-alternatives
Requires(postun):  update-alternatives

%python_subpackages

%description
Pygal is a dynamic SVG charting library written in python.
It supports various chart types and CSS styling.

%prep
%setup -q -n pygal-%{version}
cp %{SOURCE10} .

%build
%python_build

%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

mv %{buildroot}%{_bindir}/pygal_gen.py %{buildroot}%{_bindir}/pygal_gen
%python_clone -a %{buildroot}%{_bindir}/pygal_gen

%check
%python_exec setup.py test

%post
%python_install_alternative pygal_gen

%postun
%python_uninstall_alternative pygal_gen

%files %{python_files}
%doc README
%license COPYING
%python_alternative %{_bindir}/pygal_gen
%{python_sitelib}/*

%changelog
++ COPYING ++
   GNU LESSER GENERAL PUBLIC LICENSE
   Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. 
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.


  This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.

  0. Additional Definitions.

  As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.

  "The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.

  An "Application" is any work that makes use of an interface