From 248333025c8435114d05fc5de3dc2a71b6fb589d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Wed, 27 May 2020 22:14:54 +0200 Subject: [PATCH] dev-python/bleach: Port to py39 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/bleach/bleach-3.1.5.ebuild | 6 +++- .../bleach/files/bleach-3.1.5-py39.patch | 36 +++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 dev-python/bleach/files/bleach-3.1.5-py39.patch diff --git a/dev-python/bleach/bleach-3.1.5.ebuild b/dev-python/bleach/bleach-3.1.5.ebuild index 43be3b241c1a..db2a844f98ff 100644 --- a/dev-python/bleach/bleach-3.1.5.ebuild +++ b/dev-python/bleach/bleach-3.1.5.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 ) +PYTHON_COMPAT=( python2_7 python3_{6..9} pypy3 ) inherit distutils-r1 @@ -24,6 +24,10 @@ RDEPEND=" distutils_enable_tests pytest +PATCHES=( + "${FILESDIR}"/${P}-py39.patch +) + src_prepare() { # unbundle unpatched broken html5lib rm -r bleach/_vendor || die diff --git a/dev-python/bleach/files/bleach-3.1.5-py39.patch b/dev-python/bleach/files/bleach-3.1.5-py39.patch new file mode 100644 index 000000000000..ce1296236b6d --- /dev/null +++ b/dev-python/bleach/files/bleach-3.1.5-py39.patch @@ -0,0 +1,36 @@ +diff --git a/tests/test_clean.py b/tests/test_clean.py +index 133cd82..4dcb9f4 100644 +--- a/tests/test_clean.py ++++ b/tests/test_clean.py +@@ -597,31 +597,16 @@ def test_attributes_list(): + {'protocols': ['http']}, + 'valid' + ), +- ( +- 'valid', +- {'protocols': ['http']}, +- 'valid' +- ), + ( + 'valid', + {'protocols': ['http']}, + 'valid' + ), +- ( +- 'valid', +- {'protocols': ['http']}, +- 'valid' +- ), + ( + 'valid', + {'protocols': ['http']}, + 'valid' + ), +- ( +- 'valid', +- {'protocols': ['http']}, +- 'valid' +- ), + + # Disallow implicit http if disallowed + ( -- 2.26.2