Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/bleach/
Date: Thu, 17 Sep 2020 08:34:27
Message-Id: 1600331658.3a6db1a7e376cdf193ad93c8768cdb3e9cbfa182.mgorny@gentoo
1 commit: 3a6db1a7e376cdf193ad93c8768cdb3e9cbfa182
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 17 08:14:00 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 17 08:34:18 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a6db1a7
7
8 dev-python/bleach: Bump to 3.2.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/bleach/Manifest | 1 +
13 dev-python/bleach/bleach-3.2.0.ebuild | 38 +++++++++++++++++++++++++++++++++++
14 2 files changed, 39 insertions(+)
15
16 diff --git a/dev-python/bleach/Manifest b/dev-python/bleach/Manifest
17 index 495386a6fe9..95124802e07 100644
18 --- a/dev-python/bleach/Manifest
19 +++ b/dev-python/bleach/Manifest
20 @@ -1 +1,2 @@
21 DIST bleach-3.1.5.tar.gz 177972 BLAKE2B 6033871f757247f05ee67f66b3596c7a76a9bc5105113206bc8749f9ed103fb6a7c91630540f5f17ddc17e261b24043cc2edcc2562ea7f4cf54774080854de32 SHA512 20db9ab6924a1e884107f30e1059f774b45fd169d3965a61a4ff028e3de17e30be81474d7da89d9275b2173a005c5504a9d11f0e0ca528bf36a9bf08aeed0607
22 +DIST bleach-3.2.0.tar.gz 178910 BLAKE2B e7e97cc367420a656086e5a0e6c1c527348a0edc23c15f5f4b5a40b3079a2fa32b71fd2d99c4db8891e1b2ed06e4ac8ab3d3f0c9a3de77d02499bf32746a9dd7 SHA512 06dd7e22204280a03e37cfc303b4de8fc8776e9ac3f7a4c2451f1ff768b68d97c6b00fa42dc275eb4404dae5e448b9385b4e6ee204fdc7e11f31207cdc3d926a
23
24 diff --git a/dev-python/bleach/bleach-3.2.0.ebuild b/dev-python/bleach/bleach-3.2.0.ebuild
25 new file mode 100644
26 index 00000000000..eab1404c49f
27 --- /dev/null
28 +++ b/dev-python/bleach/bleach-3.2.0.ebuild
29 @@ -0,0 +1,38 @@
30 +# Copyright 1999-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +PYTHON_COMPAT=( python3_{6..9} pypy3 )
35 +
36 +inherit distutils-r1
37 +
38 +DESCRIPTION="an easy whitelist-based HTML-sanitizing tool"
39 +HOMEPAGE="https://github.com/mozilla/bleach https://pypi.org/project/bleach/"
40 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
41 +
42 +LICENSE="Apache-2.0"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
45 +IUSE="test"
46 +
47 +RDEPEND="
48 + dev-python/packaging[${PYTHON_USEDEP}]
49 + >=dev-python/html5lib-1.0.1-r1[${PYTHON_USEDEP}]
50 + dev-python/six[${PYTHON_USEDEP}]
51 + dev-python/webencodings[${PYTHON_USEDEP}]
52 +"
53 +
54 +distutils_enable_tests pytest
55 +
56 +PATCHES=(
57 + "${FILESDIR}"/bleach-3.1.5-py39.patch
58 +)
59 +
60 +src_prepare() {
61 + # unbundle unpatched broken html5lib
62 + rm -r bleach/_vendor || die
63 + sed -i -e 's:bleach\._vendor\.::' \
64 + bleach/html5lib_shim.py tests/test_clean.py || die
65 +
66 + distutils-r1_src_prepare
67 +}