From b0946605f012c73fef4af879bc2438357f8f7346 Mon Sep 17 00:00:00 2001 From: Vojtech Trefny Date: Aug 21 2020 06:20:36 +0000 Subject: Update to 1.4 --- diff --git a/.gitignore b/.gitignore index 60b8047..3258c81 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /svgwrite-1.2.1.tar.gz /svgwrite-1.3.0.tar.gz /svgwrite-1.3.1.tar.gz +/svgwrite-1.4.tar.gz diff --git a/0002-Skip-test_pretty_print-test-case.patch b/0002-Skip-test_pretty_print-test-case.patch deleted file mode 100644 index 5f60ffd..0000000 --- a/0002-Skip-test_pretty_print-test-case.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 7901d9d773cc33452cf1a7219742c14427fa3421 Mon Sep 17 00:00:00 2001 -From: Vojtech Trefny -Date: Mon, 15 Jul 2019 07:30:26 +0200 -Subject: [PATCH] Skip 'test_pretty_print' test case due to Python 3.8 changes - -This test is currently broken because of changes in XML attributes -sorting in Python 3.8 (see https://bugs.python.org/issue34160). -The order of the attributes is now different than the test case -expects and this test failure make the build fail with 3.8. ---- - tests/test_pretty_xml.py | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/tests/test_pretty_xml.py b/tests/test_pretty_xml.py -index c004626..c96c2ea 100644 ---- a/tests/test_pretty_xml.py -+++ b/tests/test_pretty_xml.py -@@ -14,6 +14,7 @@ from svgwrite.utils import pretty_xml, PYTHON3 - - class TestPrettyXML(unittest.TestCase): - def test_pretty_print(self): -+ self.skipTest("Temporary skipping due to XML pretty print changes in 3.8.") - result = pretty_xml(XML_UGLY).split('\n') - expect = XML_PRETTY.split('\n') - for e, r in zip(expect, result): -@@ -61,4 +62,4 @@ XML_PRETTY = """ - - --""" -\ No newline at end of file -+""" --- -2.21.0 - diff --git a/python-svgwrite.spec b/python-svgwrite.spec index 04d7c26..bd4313b 100644 --- a/python-svgwrite.spec +++ b/python-svgwrite.spec @@ -1,15 +1,14 @@ %global pypi_name svgwrite Name: python-%{pypi_name} -Version: 1.3.1 -Release: 3%{?dist} +Version: 1.4 +Release: 1%{?dist} Summary: Python library to create SVG drawings License: MIT URL: https://github.com/mozman/svgwrite Source0: %{pypi_name}-%{version}.tar.gz Patch0: 0001-Skip-test-that-needs-internet-connection.patch -Patch1: 0002-Skip-test_pretty_print-test-case.patch BuildArch: noarch @@ -56,6 +55,9 @@ done %changelog +* Fri Aug 21 2020 Vojtech Trefny - 1.4-1 +- Update to 1.4 + * Fri Jul 26 2019 Fedora Release Engineering - 1.3.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index ff4a517..d1bf04d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (svgwrite-1.3.1.tar.gz) = a4d2db34194923055c6e92c0af5540eef767cf8481d7c991b357f5bc77fd1874bba65220e7a7ff3a4da4bd30a49663b6ac514adb2b41cb4b087a7bb64053ac0a +SHA512 (svgwrite-1.4.tar.gz) = b722fc51c6b3755064942bb6c7ea199ba5902ee37e426962ed24e0b67659e72e8da36cd2516193e2348a939ab2ccd2c5114349ac72d7b9ea52a7b7d68ad1ce74