dev-python/svgwrite: Remove redundant versions

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2020-07-12 18:45:33 +02:00
parent 7afecef008
commit 4c66258f3f
3 changed files with 0 additions and 67 deletions

View File

@@ -1,2 +1 @@
DIST svgwrite-1.3.1.tar.gz 249712 BLAKE2B 3f03f841d4e1bdf3e8d3d47c86301bcc22f205d71d265902f0ccb5a78710815521f34589ce261a463d7e80c6eeaac60d2090895ae1157ab6f20c0f5c21f5e2e2 SHA512 a4d2db34194923055c6e92c0af5540eef767cf8481d7c991b357f5bc77fd1874bba65220e7a7ff3a4da4bd30a49663b6ac514adb2b41cb4b087a7bb64053ac0a
DIST svgwrite-1.4.tar.gz 251138 BLAKE2B b105fa60ed75628c59b3ad4d0ea32dddf83f618e213ce6974b5db0e93d519e563eb5a9ff5e37012f71c7ce79579ca927acfb8709d2f8e8ad316b04bae8abafcb SHA512 b722fc51c6b3755064942bb6c7ea199ba5902ee37e426962ed24e0b67659e72e8da36cd2516193e2348a939ab2ccd2c5114349ac72d7b9ea52a7b7d68ad1ce74

View File

@@ -1,39 +0,0 @@
From 36ec11ccf3275c6ab9156625d322def9c324e090 Mon Sep 17 00:00:00 2001
From: mozman <me@mozman.at>
Date: Wed, 6 Nov 2019 05:24:45 +0100
Subject: [PATCH] ignore svg tag at pretty print testing
Order of svg attribute of the svg tag has changed in Python 3.8,
ignoring this tag is the easiest way to solve this problem.
---
tests/test_pretty_xml.py | 3 ++-
tox.ini | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/test_pretty_xml.py b/tests/test_pretty_xml.py
index c004626..14a826e 100644
--- a/tests/test_pretty_xml.py
+++ b/tests/test_pretty_xml.py
@@ -16,7 +16,8 @@ class TestPrettyXML(unittest.TestCase):
def test_pretty_print(self):
result = pretty_xml(XML_UGLY).split('\n')
expect = XML_PRETTY.split('\n')
- for e, r in zip(expect, result):
+ # skip svg tag, order of attributes changes often by new Python releases
+ for e, r in zip(expect[1:], result[1:]):
self.assertEqual(e, r)
def test_empty_string(self):
diff --git a/tox.ini b/tox.ini
index 55de9ce..fe450be 100644
--- a/tox.ini
+++ b/tox.ini
@@ -4,7 +4,7 @@
# and then run "tox" from this directory.
[tox]
-envlist = py36, py37, pypy
+envlist = py36, py37, py38, pypy
[testenv]
commands = pytest tests

View File

@@ -1,27 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7,8} )
inherit distutils-r1
DESCRIPTION="Python Package to write SVG files"
HOMEPAGE="https://github.com/mozman/svgwrite"
SRC_URI="https://github.com/mozman/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND=">=dev-python/pyparsing-2.0.1[${PYTHON_USEDEP}]"
DEPEND="${RDEPEND}
test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
PATCHES=(
"${FILESDIR}"/${P}-fix-tests-py38.patch
)
distutils_enable_tests pytest